Beispiel #1
0
    def test_parse_out_spaces_2(self):
        """Verify parse_out_spaces() removes internal spaces.
        """
        input_string = "phage.Cluster = C"
        expected_output = "phage.Cluster=C"

        output = parsing.parse_out_spaces(input_string)

        self.assertEqual(output, expected_output)
Beispiel #2
0
    def test_parse_out_spaces_3(self):
        """Verify parse_out_spaces() removes terminal spaces.
        """
        input_string = " phage.PhageID=Trixie "
        expected_output = "phage.PhageID=Trixie"

        output = parsing.parse_out_spaces(input_string)

        self.assertEqual(output, expected_output)
Beispiel #3
0
 def test_parse_out_spaces_1(self):
     """Verify parse_out_spaces() raises TypeError from bad input.
     """
     with self.assertRaises(TypeError):
         parsing.parse_out_spaces(None)