def test_equals(self): self.assertEqual(count_if([1, 3, 5, 3], 3), 2)
def test_equals_8(self): self.assertEqual(count_if([1, 3, 5, 7, 9], 3), 1)
def test_equals_9(self): self.assertEqual(count_if(['John', 'Steve', 'John'], 'John'), 2)
def test_equals_5(self): self.assertEqual(count_if([1, 3, 5, 3.5], '>3'), 2)
def test_equals_7(self): self.assertEqual(count_if([1, 3, 5, 3, 0, -1, -5], '<>1'), 6)
def test_equals_3(self): self.assertEqual(count_if([1, 3, 5, 3], '>=3'), 3)
def test_equals_4(self): self.assertEqual(count_if([1.5, 3, 5, 3, 0, -1, -5], '<=1.5'), 4)
def test_equals(self): self.assertEqual(count_if([1, 3, 5, 3], 3), 2)
def test_equals_2(self): self.assertEqual( count_if(['John', 'Steve', 'Rachel', 'Rebecca', 'John', 'John'], 'John'), 3)
def test_equals_8(self): self.assertEqual(count_if([1, 3, 5, 7, 9], 3), 1)
def test_equals_9(self): self.assertEqual(count_if(['John', 'Steve', 'John'], 'John'), 2)
def test_equals_7(self): self.assertEqual(count_if([1, 3, 5, 3, 0, -1, -5], '<>1'), 6)
def test_equals_5(self): self.assertEqual(count_if([1, 3, 5, 3.5], '>3'), 2)
def test_equals_4(self): self.assertEqual(count_if([1.5, 3, 5, 3, 0, -1, -5], '<=1.5'), 4)
def test_equals_3(self): self.assertEqual(count_if([1, 3, 5, 3], '>=3'), 3)
def test_equals_2(self): self.assertEqual(count_if( ['John', 'Steve', 'Rachel', 'Rebecca', 'John', 'John'], 'John' ), 3 )