Exemple #1
0
 def test_what_is_better3(self):
     self.assertEqual(
         what_is_better('Dog is not better than cat ', self.objA,
                        self.objB), {
                            'winner': self.objB,
                            'marker_cnt': 1
                        })
Exemple #2
0
 def test_what_is_better9(self):
     self.assertEqual(
         what_is_better(
             'This tortoise sculpture is made of hammer formed copper sheet metal and filled solid with concrete.',
             self.objB, self.objA), {
                 'marker_cnt': 0,
                 'winner': self.objA
             })
Exemple #3
0
 def test_what_is_better11(self):
     obj_a = Argument('coca1-cola light')
     obj_b = Argument('pepsi light')
     self.assertEqual(
         what_is_better('Coca1-Cola™ light tastes better than Pepsi™ light',
                        obj_a, obj_b), {
                            'marker_cnt': 1,
                            'winner': obj_a
                        })
Exemple #4
0
 def test_what_is_better8(self):
     self.assertEqual(
         what_is_better('Dog is a cat solid', self.objB, self.objA), {
             'marker_cnt': 0,
             'winner': self.objB
         })
Exemple #5
0
 def test_what_is_better7(self):
     self.assertTrue(
         what_is_better('Dog is worse than cat', self.objB, self.objA))
Exemple #6
0
 def test_what_is_better5(self):
     self.assertEqual(what_is_better('Dog is a cat', self.objA, self.objB),
                      {
                          'winner': self.objB,
                          'marker_cnt': 0
                      })