2017-03-30 08:03:30 +00:00
|
|
|
from longclaw.tests.utils import LongclawTestCase
|
|
|
|
|
|
|
|
|
2017-03-30 18:53:49 +00:00
|
|
|
class AddressTest(LongclawTestCase):
|
2017-03-30 08:03:30 +00:00
|
|
|
def test_create_address(self):
|
2017-03-30 18:53:49 +00:00
|
|
|
"""
|
|
|
|
Test creating an address object via the api
|
|
|
|
"""
|
2017-03-30 08:03:30 +00:00
|
|
|
data = {
|
2017-03-30 18:53:49 +00:00
|
|
|
'name': 'Bob Testerson',
|
|
|
|
'line_1': 'Bobstreet',
|
|
|
|
'city': 'Bobsville',
|
|
|
|
'postcode': 'BOB22 2BO',
|
|
|
|
'country': 'Bobland'
|
2017-03-30 08:03:30 +00:00
|
|
|
}
|
2017-03-30 18:53:49 +00:00
|
|
|
self.post_test(data, 'longclaw_address_list')
|