Esempio n. 1
0
 def test_removals(self):
     test_hash = 'ABC123'
     removal = Removal()
     removal.hash = test_hash
     removal.group = DEFAULT_GROUP
     removal.validate()
     removal.save()
     resp = self.app.get(
         '/service/v2/remove/1970-01-01T00:00:00', follow_redirects=True)
     assert resp.status_code == 200
     assert resp.content_type == 'application/json'
     assert test_hash in resp.data