Skip to content

Commit

Permalink
tests: add a test for using a Ducksboard service with no password
Browse files Browse the repository at this point in the history
  • Loading branch information
wulczer committed Jul 6, 2014
1 parent 8dc85a0 commit 5c06469
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/test_ducksboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ def expect(self, uri, method=None, params=None, subdomain=None):
if params:
self.assertEqual(self.executor.request.params, params)

def test_default_password(self):
s = ducksboard.Ducksboard('apikey')
s.user().get()

self.assertEqual(self.executor.request.headers['Authorization'],
'Basic YXBpa2V5Og==')

def test_dashboard(self):
self.service.dashboards().get()
self.expect('dashboards/', 'GET')
Expand Down

0 comments on commit 5c06469

Please sign in to comment.