def test_invalid_user_exception(): ''' Check if exception is thrown on invalid username ''' lkd('does-not-exist')
#!/usr/bin/env python from nose.tools import raises from lkd import lkd @raises(Exception) def test_invalid_user_exception(): ''' Check if exception is thrown on invalid username ''' lkd('does-not-exist') l = lkd('karan') def test_about_username(): ''' Check if the username is karan or not ''' assert l.about()['username'] == 'karan' def test_about_id(): ''' Check if the id is 7092 or not ''' assert l.about()['id'] == '7092' def test_get_json_about_added(): ''' Check if the date added is correct or not '''