def test_yellow_book_4(self): """ func that test dictionary :rtype: object """ result = yellow_book(155328) self.assertEqual(result, 'Invalid')
def test_yellow_book_2(self): """ func that test dictionary :rtype: object """ result = yellow_book('Joly') self.assertEqual(result, '555-7456612')
def test_yellow_book_3(self): """ func that test dictionary :rtype: object """ result = yellow_book('Victor') self.assertEqual(result, None)
def test_yellow_book(self): """ func that test dictionary :rtype: object """ result = yellow_book('Robert') self.assertEqual(result, '555-6564612')
def test_yellow_book2(self): """ func test yellow_book method performance :param self :return: performance yellow_book method """ start = time.clock() val = yellow_book('Joly') proc_time = time.clock() - start self.assertTrue(val) self.assertLessEqual(proc_time, 0.5)
def test_yellow_book3(self): """ func test yellow_book method performance with error condition int input instead of string :param self :return: performance yellow_book method """ start = time.clock() val = yellow_book(151896) proc_time = time.clock() - start self.assertTrue(val) self.assertLessEqual(proc_time, 0.5)
def test_yellow_book3(self): start = time.clock() val = yellow_book(151896) proc_time = time.clock() - start self.assertTrue(val) self.assertLessEqual(proc_time, 0.5)
def test_yellow_book_4(self): result = yellow_book(155328) self.assertEqual(result, 'Invalid')
def test_yellow_book_3(self): result = yellow_book('Victor') self.assertEqual(result, None)
def test_yellow_book_2(self): result = yellow_book('Joly') self.assertEqual(result, '555-7456612')
def test_yellow_book(self): result = yellow_book('Robert') self.assertEqual(result, '555-6564612')