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)
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)
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)
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)
def __init__(self, process_splits_success=False): SingleStringCollection.__init__(self) self._process_splits_success = process_splits_success
def __init__(self, process_splits_success=False): SingleStringCollection.__init__(self) self._process_splits_success = process_splits_success
def __init__(self): SingleStringCollection.__init__(self) self._sets = {}
def __init__(self): SingleStringCollection.__init__(self)
def __init__(self): SingleStringCollection.__init__(self)