예제 #1
0
 def test_random_tip_from_file_second(self):
     seed = 1
     tips_manager = TipsManager(seed, sys.path[1])
     result = tips_manager.get_random_tip()
     self.assertEqual(
         result,
         'TestTips.txt: Customer collaboration over contract negotiation\n')
예제 #2
0
    def test_random_tip_from_file(self):
        seed = 0

        dirname = os.path.dirname(__file__)
        path = self.fileUtilities.go_up_dirs(dirname, 2) + "\\Tips"
        tips_manager = TipsManager(seed, path)
        result = tips_manager.get_random_tip()
        self.assertEqual(result, 'TestTips2.txt: Words\n')
예제 #3
0
 def test_random_tip_from_file_second(self):
     seed = 1
     dirname = os.path.dirname(__file__)
     path = self.fileUtilities.go_up_dirs(dirname, 2) + "\\Tips"
     tips_manager = TipsManager(seed, path)
     result = tips_manager.get_random_tip()
     self.assertEqual(
         result,
         'TestTips.txt: Customer collaboration over contract negotiation\n')
 def test_random_tip_from_file(self):
     seed = 0
     tips_manager = TipsManager(seed,sys.path[1])
     result = tips_manager.get_random_tip()
     self.assertEqual(result, 'TestTips2.txt: Words\n')
 def test_random_tip_from_file_second(self):
     seed = 1
     tips_manager = TipsManager(seed,sys.path[1])
     result = tips_manager.get_random_tip()
     self.assertEqual(result, 'TestTips.txt: Customer collaboration over contract negotiation\n')
예제 #6
0
 def test_random_tip_from_file(self):
     seed = 0
     tips_manager = TipsManager(seed,sys.argv[1])
     result = tips_manager.get_random_tip()
     self.assertEqual(result, 'TestTips2.txt: Words\n')