dff5c2d7fba9981f06bebd91e7424c7e331f7c47,skbio/sequence/tests/test_sequence.py,TestSequence,test_init_from_sequence_object,#TestSequence#,110
Before Change
self.assertEqual(Sequence(seq), seq)
// sequence with metadata should have everything propagated
seq = Sequence("ACGT", id="foo", description="bar baz",
quality=range(4))
self.assertEqual(Sequence(seq), seq)
// should be able to override metadata
self.assertEqual(
After Change
self.assertEqual(SequenceNew(seq), seq)
// sequence with metadata should have everything propagated
seq = SequenceNew("ACGT", metadata={"id":"foo", "description":"bar baz"},
positional_metadata={"quality": range(4)})
self.assertEqual(SequenceNew(seq), seq)
// should be able to override metadata
self.assertEqual(
SequenceNew(seq, metadata={"id":"abc", "description":"123"},
positional_metadata={"quality":[42] * 4}),
SequenceNew("ACGT", metadata={"id":"abc", "description":"123"},
positional_metadata={"quality":[42] * 4}))
// subclasses work too
seq = SequenceSubclassNew("ACGT", metadata={"id":"foo", "description":"bar baz"},
positional_metadata={"quality": range(4)})
self.assertEqual(
SequenceNew(seq),
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: biocore/scikit-bio
Commit Name: dff5c2d7fba9981f06bebd91e7424c7e331f7c47
Time: 2015-05-29
Author: tapitman11@gmail.com
File Name: skbio/sequence/tests/test_sequence.py
Class Name: TestSequence
Method Name: test_init_from_sequence_object
Project Name: biocore/scikit-bio
Commit Name: dff5c2d7fba9981f06bebd91e7424c7e331f7c47
Time: 2015-05-29
Author: tapitman11@gmail.com
File Name: skbio/sequence/tests/test_sequence.py
Class Name: TestSequence
Method Name: test_init_from_sequence_object
Project Name: biocore/scikit-bio
Commit Name: dff5c2d7fba9981f06bebd91e7424c7e331f7c47
Time: 2015-05-29
Author: tapitman11@gmail.com
File Name: skbio/sequence/tests/test_sequence.py
Class Name: TestSequence
Method Name: test_equals_sequences_from_different_sources_compare_equal
Project Name: biocore/scikit-bio
Commit Name: dff5c2d7fba9981f06bebd91e7424c7e331f7c47
Time: 2015-05-29
Author: tapitman11@gmail.com
File Name: skbio/sequence/tests/test_sequence.py
Class Name: TestSequence
Method Name: test_getitem_with_boolean_vector_has_qual