示例#1
0
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)
示例#2
0
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)
示例#3
0
 def setUp(self):
     self.client.login(username="******", password="******")
     self.s = Song(user=self.user, song=self.song, state="learn")
     self.s.save()
示例#4
0
 def setUp(self):
     self.client.login(username='******', password='******')
     self.s = Song(user=self.user, song=self.song, state="learn")
     self.s.save()