We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5897aae commit 066a262Copy full SHA for 066a262
pymango/tests/tests_resources.py
@@ -2,6 +2,7 @@
2
PyMango Tests for Resources
3
"""
4
import os
5
+from random import randint
6
7
from nose.tools import eq_, ok_, raises
8
@@ -117,6 +118,14 @@ def test_customers_get():
117
118
ok_(customer.get("uid"))
119
120
121
+def test_customers_update():
122
+ """Should update customer data"""
123
+ sample_name = "test-pymango-{0}".format(randint(1000, 999999))
124
+ customer_uid = mango.Customers.list()[0].get("uid")
125
+ ok_(mango.Customers.update(customer_uid, name=sample_name))
126
+ eq_(sample_name, mango.Customers.get(customer_uid).get("name"))
127
+
128
129
@raises(mango.error.NotFound)
130
def test_customers_delete():
131
"""Should delete a customer"""
0 commit comments