def test_serializer_should_create_showtime(self):
        """
        Serializer.save() should create showtime
        :return:
        """
        serializer = TheaterShowtimeSerializer(data=self.json)
        showtime = serializer.save()

        self.assertIsInstance(showtime, Showtime)
    def test_showtime_should_have_theater(self):
        serializer = TheaterShowtimeSerializer(data=self.json)
        showtime = serializer.save()

        cinema = Cinema.objects.get(code=self.json['place']['theater']['code'])
        self.assertEqual(showtime.theater, cinema)