def testisdatafalse3(self): """testisdata should always return false due to p1 is not mylist""" p1 = 1 expectedvalue = False result = mylist.isdata(p1) self.assertEqual(expectedvalue, result)
def testisdatafalse3(self): """testisdata should always return false due to p1 is not mylist""" p1 = 1 expectedvalue = False result = mylist.isdata(p1) self.assertEqual(expectedvalue, result)
def testisdatafalse2(self): """testisdata should always return false due to p1 is mylist but the content is not a list""" p1 = mylist() p1.insert(1) expectedvalue = False result = mylist.isdata(p1) self.assertEqual(expectedvalue, result)
def testisdatafalse5(self): """testisdatafalse should always return false due to p1 is mylist but the length is not equal to 3""" p2 = mylist() expectedvalue = False p2.insert([1, 2, 3, 4]) result = mylist.isdata(p2) self.assertEqual(expectedvalue, result)
def testisdatatrue(self): """testisdatatrue should always return true due to p1 is mylist and the length is 3""" p1 = mylist() p1.insert([2, 3, 4]) expectedvalue = True result = mylist.isdata(p1) self.assertEqual(expectedvalue, result)
def testisdatafalse2(self): """testisdata should always return false due to p1 is mylist but the content is not a list""" p1 = mylist() p1.insert(1) expectedvalue = False result = mylist.isdata(p1) self.assertEqual(expectedvalue, result)
def testisdatafalse5(self): """testisdatafalse should always return false due to p1 is mylist but the length is not equal to 3""" p2 = mylist() expectedvalue = False p2.insert([1, 2, 3, 4]) result = mylist.isdata(p2) self.assertEqual(expectedvalue, result)
def testisdatatrue(self): """testisdatatrue should always return true due to p1 is mylist and the length is 3""" p1 = mylist() p1.insert([2, 3, 4]) expectedvalue = True result = mylist.isdata(p1) self.assertEqual(expectedvalue, result)