def sample_scene_input(self): artist_ = Artist.objects.create(full_name="Bad Brains") artwork_ = Artwork.objects.create(artist=artist_, title='Banned in D.C.') scene = Scene() scene.description = 'can save a post request' scene.longitude = -122.41575 scene.latitude = 37.749202 scene.artwork = artwork_ return scene
def setUp(self): artist_ = Artist.objects.create(full_name="bad brains") artwork_ = Artwork.objects.create(artist=artist_, title='Banned in D.C.') scene = Scene() scene.description = 'can save a post request', scene.longitude = -122.41575 scene.latitude = 37.749202 scene.artwork = artwork_ scene.save() new_item = Scene.objects.first() self.new_scene_url = '/places/api/' + str(new_item.id)