Exemplo n.º 1
0
    def test_single_strings_from_file(self):
        singles = SingleStringCollection ()
        self.assertIsNotNone(singles)

        count = singles.load_from_filename(os.path.dirname(__file__) +  os.sep + "test_files/singles.txt")
        self.assertEqual(count, 3)
        self.assertIn("val1", singles.strings)
        self.assertIn("val2", singles.strings)
        self.assertIn("val3", singles.strings)
Exemplo n.º 2
0
    def test_single_strings_from_file(self):
        singles = SingleStringCollection()
        self.assertIsNotNone(singles)

        count = singles.load_from_filename(
            os.path.dirname(__file__) + os.sep + "test_files/singles.txt")
        self.assertEqual(count, 3)
        self.assertIn("val1", singles.strings)
        self.assertIn("val2", singles.strings)
        self.assertIn("val3", singles.strings)
Exemplo n.º 3
0
    def test_single_strings(self):
        singles = SingleStringCollection()
        self.assertIsNotNone(singles)

        count = singles.load_from_text("""
        val1
        val2
        val3
        """)
        self.assertEqual(count, 3)
        self.assertIn("val1", singles.strings)
        self.assertIn("val2", singles.strings)
        self.assertIn("val3", singles.strings)
Exemplo n.º 4
0
    def test_single_strings(self):
        singles = SingleStringCollection ()
        self.assertIsNotNone(singles)

        count = singles.load_from_text("""
        val1
        val2
        val3
        """)
        self.assertEqual(count, 3)
        self.assertIn("val1", singles.strings)
        self.assertIn("val2", singles.strings)
        self.assertIn("val3", singles.strings)
Exemplo n.º 5
0
 def __init__(self, process_splits_success=False):
     SingleStringCollection.__init__(self)
     self._process_splits_success = process_splits_success
Exemplo n.º 6
0
 def __init__(self, process_splits_success=False):
     SingleStringCollection.__init__(self)
     self._process_splits_success = process_splits_success
Exemplo n.º 7
0
 def __init__(self):
     SingleStringCollection.__init__(self)
     self._sets = {}
Exemplo n.º 8
0
 def __init__(self):
     SingleStringCollection.__init__(self)
Exemplo n.º 9
0
 def __init__(self):
     SingleStringCollection.__init__(self)