def test_equal_1(self): self.assertEqual( get_nth(build_one_two_three(), 0).data, 1, 'First node should be located at index 0.')
def test_equal_3(self): self.assertEqual( get_nth(build_one_two_three(), 2).data, 3, 'Third node should be located at index 2.')
def test_raises_3(self): self.assertRaises(Exception, get_nth, build_one_two_three(), 100)
def test_equal_1(self): self.assertEqual(get_nth(build_one_two_three(), 0).data, 1, 'First node should be located at index 0.')
def test_equal_2(self): self.assertEqual( get_nth(build_one_two_three(), 1).data, 2, 'Second node should be located at index 1.')
def test_equal_3(self): self.assertEqual(get_nth(build_one_two_three(), 2).data, 3, 'Third node should be located at index 2.')
def test_raises_3(self): self.assertRaises(Exception, get_nth, build_one_two_three(), 100)
def test_equal_7(self): self.assertEqual(count(build_one_two_three(), 99), 0)
def test_equal_2(self): self.assertEqual(get_nth(build_one_two_three(), 1).data, 2, 'Second node should be located at index 1.')
def test_equal_6(self): self.assertEqual(count(build_one_two_three(), 3), 1)
def test_equal_3(self): self.assertEqual(length(build_one_two_three()), 3)
def test_is_none_2(self): self.assertIsNone(build_one_two_three().next.next.next)
def test_equal_6(self): self.assertEqual(build_one_two_three().next.next.data, 3)
def test_equal_4(self): self.assertEqual(build_one_two_three().data, 1)