Example #1
0
def test_remove_repeated_valid_input():
        assert rfm.remove_repeated(proteins_repeated, repeated_list) == {1:"MVERSSKSEYPGYQLTEDIACSC", 3:"MFKGERTKAYCAQRNAHFAAGVY"}
Example #2
0
def test_dremove_repeated_no_repeat_list_input():
        assert rfm.remove_repeated(proteins_repeated2,[]) == proteins_repeated2
Example #3
0
def test_remove_repeated_sequences_invalid_args(proteins, repeated_ids, expectation):
        """Tests the behaviour of the remove_repeated function with unexpected inputs"""
        with expectation:
                rfm.remove_repeated(proteins, repeated_ids)
Example #4
0
def test_remove_repeated_empty_dict():
   assert rfm.remove_repeated({},[]) == {}
Example #5
0
def test_remove_repeated_empty_str():
   assert rfm.remove_repeated("","") == ""
Example #6
0
def test_remove_repeated_empty_list():
   assert rfm.remove_repeated([],[]) == []
Example #7
0
def test_remove_repeated_no_args():
   with pytest.raises(TypeError):
       rfm.remove_repeated()