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)
Exemple #2
0
 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)
Exemple #3
0
 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)
Exemple #5
0
 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)
Exemple #6
0
 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)