def test_clear_file_name_counts(self):
     line = 'tm = blah blah blah grammar.packed'
     cl = config_line_factory(line, self.args)
     cl = config_line_factory(line, self.args)
     CopyFileConfigLine.clear_file_name_counts()
     cl = config_line_factory(line, self.args)
     self.assertEqual('tm = blah blah blah grammar.packed', cl.result())
Example #2
0
 def test_clear_file_name_counts(self):
     line = 'tm = blah blah blah grammar.packed'
     cl = config_line_factory(line, self.args)
     cl = config_line_factory(line, self.args)
     CopyFileConfigLine.clear_file_name_counts()
     cl = config_line_factory(line, self.args)
     self.assertEqual('tm = blah blah blah grammar.packed', cl.result())
 def test_2_files_same_name__with_filename_extension(self):
     line = 'tm = blah blah blah grammar.packed'
     cl = config_line_factory(line, self.args)
     self.assertEqual('tm = blah blah blah grammar.packed', cl.result())
     # Another file with the same name appears.
     line = 'tm = blah blah blah otherdir/grammar.packed'
     cl = config_line_factory(line, self.args)
     self.assertEqual('tm = blah blah blah grammar-1.packed', cl.result())
 def test_2_files_same_name__without_filename_extension(self):
     line = 'weights-file = weights'
     cl = config_line_factory(line, self.args)
     self.assertEqual('weights-file = weights', cl.result())
     # Another file with the same name appears.
     line = 'weights-file = otherdir/weights'
     cl = config_line_factory(line, self.args)
     self.assertEqual('weights-file = weights-1', cl.result())
Example #5
0
 def test_2_files_same_name__with_filename_extension(self):
     line = 'tm = blah blah blah grammar.packed'
     cl = config_line_factory(line, self.args)
     self.assertEqual('tm = blah blah blah grammar.packed', cl.result())
     # Another file with the same name appears.
     line = 'tm = blah blah blah otherdir/grammar.packed'
     cl = config_line_factory(line, self.args)
     self.assertEqual('tm = blah blah blah grammar-1.packed', cl.result())
Example #6
0
 def test_2_files_same_name__without_filename_extension(self):
     line = 'weights-file = weights'
     cl = config_line_factory(line, self.args)
     self.assertEqual('weights-file = weights', cl.result())
     # Another file with the same name appears.
     line = 'weights-file = otherdir/weights'
     cl = config_line_factory(line, self.args)
     self.assertEqual('weights-file = weights-1', cl.result())
 def test_line_type(self):
     cl_object = config_line_factory(self.line, self.args)
     self.assertIsInstance(cl_object, ConfigLine)
Example #8
0
 def test_line_type(self):
     cl_object = config_line_factory(self.line, self.args)
     self.assertIsInstance(cl_object, ConfigLine)