Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)
Esempio n. 5
0
 def __init__(self, process_splits_success=False):
     SingleStringCollection.__init__(self)
     self._process_splits_success = process_splits_success
Esempio n. 6
0
 def __init__(self, process_splits_success=False):
     SingleStringCollection.__init__(self)
     self._process_splits_success = process_splits_success
Esempio n. 7
0
 def __init__(self):
     SingleStringCollection.__init__(self)
     self._sets = {}
Esempio n. 8
0
 def __init__(self):
     SingleStringCollection.__init__(self)
Esempio n. 9
0
 def __init__(self):
     SingleStringCollection.__init__(self)