Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (13 sloc) 0.494 kB
from __future__ import absolute_import
from hdcloud import Profile
from .fakeserver import FakeHDCloud
from .utils import assert_isinstance
hdcloud = FakeHDCloud()
def test_all_profiles():
ps = hdcloud.profiles.all()
hdcloud.assert_called('GET', '/encoding_profiles.json')
[assert_isinstance(p, Profile) for p in ps]
def test_get_store():
p = hdcloud.profiles.get(id=1)
hdcloud.assert_called('GET', '/encoding_profiles/1.json')
assert p.name == 'Example Profile'
Jump to Line
Something went wrong with that request. Please try again.