1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 13:24:52 +00:00

rm synced repos at devices page (#1285)

This commit is contained in:
lian
2016-07-14 13:54:17 +08:00
committed by Daniel Pan
parent fe236eca03
commit b5d9ece164
6 changed files with 27 additions and 96 deletions

View File

@@ -26,6 +26,11 @@ class DevicesTest(BaseTestCase, Fixtures):
assert json_resp[0]['platform'] == self.platform
assert json_resp[0]['device_id'] == self.device_id
def test_can_not_list_if_not_authenticated(self):
resp = self.client.get(reverse('api2-devices'))
self.assertEqual(403, resp.status_code)
def test_can_delete(self):
self.login_as(self.user)
data = 'platform=%s&device_id=%s' % (self.platform, self.device_id)