def test_get_pitch(self): ''' function checks if it is possible to get pitch using pitch's id ''' self.new_pitch.save_pitch(self) got_pitches = Pitch.get_pitch(1) self.assertTrue(got_pitches is not None)
def test_get_pitch_by_id(self): ''' method to check if the find function works ''' self.new_pitch.save_pitch() got_pitch = Pitch.get_pitch(1) self.assertTrue(got_pitch is not None)
def test_get_pitch(self): self.new_pitch.save() got_pitch = Pitch.get_pitch(1) self.assertTrue(get_piotch is not None)
def test_get_pitch_by_id(self): self.new_pitch.save_pitch() got_pitches = Pitch.get_pitch(1) self.assertTrue(len(got_pitches) == 1)
def test_get_pitch_by_id(self): self.new_pitch.save_pitch() got_pitch = Pitch.get_pitch(1) self.assertTrue(got_pitch is not None)
def test_get_pitch_by_id(self): got_pitch = Pitch.get_pitch(1) self.assertTrue(got_pitch is not None)
def test_get_pitch(self): self.new_pitch.save_pitch() get_pitches = Pitch.get_pitch(1) self.assertTrue(len(get_pitches) == 1)