class MusicianPageTestCase(MusicianBaseViewTestCase): def setUp(self): self.client.login(username="******", password="******") self.s = Song(user=self.user, song=self.song, state="learn") self.s.save() def tearDown(self): self.s.delete() def test_render_musics(self): response = self.client.get("/musician/user/test/") self.assertIn(self.song.name, response.content)
class MusicianPageTestCase(MusicianBaseViewTestCase): def setUp(self): self.client.login(username='******', password='******') self.s = Song(user=self.user, song=self.song, state="learn") self.s.save() def tearDown(self): self.s.delete() def test_render_musics(self): response = self.client.get("/musician/user/test/") self.assertIn(self.song.name, response.content)
def setUp(self): self.client.login(username="******", password="******") self.s = Song(user=self.user, song=self.song, state="learn") self.s.save()
def setUp(self): self.client.login(username='******', password='******') self.s = Song(user=self.user, song=self.song, state="learn") self.s.save()