Example #1
0
 def test_deleted(self):
     self.public_app.update(status=amo.STATUS_DELETED)
     eq_(views._my_apps(self.req), [])
Example #2
0
 def test_some(self):
     eq_(views._my_apps(self.req), [self.public_app])
Example #3
0
 def test_anonymous(self):
     del self.req.amo_user
     eq_(views._my_apps(self.req), [])
Example #4
0
 def test_deleted(self):
     self.public_app.update(status=amo.STATUS_DELETED)
     eq_(views._my_apps(self.req), [])
Example #5
0
 def test_some(self):
     eq_(views._my_apps(self.req), [self.public_app])
Example #6
0
 def test_anonymous(self):
     del self.req.amo_user
     eq_(views._my_apps(self.req), [])