def test_is_not_sorted(self): compu = CompuTools() self.assertFalse(compu.is_sorted([1,3,2,4]))
def test_is_sorted(self): compu = CompuTools() self.assertTrue(compu.is_sorted([1,2,3,4]))
def test_is_not_sorted(self, list): compu = CompuTools() self.assertFalse(compu.is_sorted(list))
def test_is_sorted(self, list): compu = CompuTools() self.assertTrue(compu.is_sorted(list))
def test_is_not_sorted(self): compu = CompuTools() self.assertFalse(compu.is_sorted([3, 4, 1, 2]))
def test_is_sorted(self, list, result): compu = CompuTools() self.assertEqual(compu.is_sorted(list), result)