Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 0e39ee4f75
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (13 sloc) 0.481 kb
from __future__ import absolute_import
from hdcloud import Store
from .fakeserver import FakeHDCloud
from .utils import assert_isinstance
hdcloud = FakeHDCloud()
def test_all_stores():
stores = hdcloud.stores.all()
hdcloud.assert_called('GET', '/stores.json')
[assert_isinstance(s, Store) for s in stores]
def test_get_store():
store = hdcloud.stores.get(id=1)
hdcloud.assert_called('GET', '/stores/1.json')
assert store.name == 'Example Store'
Jump to Line
Something went wrong with that request. Please try again.