Skip to content
This repository has been archived by the owner on Nov 10, 2021. It is now read-only.

Commit

Permalink
IRWS first test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffFranklin committed Mar 25, 2015
1 parent 520ce79 commit 083881e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions restclients/test/irws.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from django.test import TestCase, override_settings
from django.conf import settings

from restclients.irws import IRWS

@override_settings(RESTCLIENTS_IRWS_DAO_CLASS='restclients.dao_implementation.irws.File',
RESTCLIENTS_IRWS_SERVICE_NAME='registry-dev')
class IRWSTest(TestCase):

def test_irws(self):
irws = IRWS()
name = irws.get_name_by_netid('javerage')
self.assertEquals(name.display_cname, 'JAMES AVERAGE STUDENT')
2 changes: 2 additions & 0 deletions restclients/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,5 @@
from restclients.test.thread import ThreadsTest
from restclients.test.view import ViewTest
from restclients.test.dao_implementation.mock import TestMock

from restclients.test.irws import IRWSTest

0 comments on commit 083881e

Please sign in to comment.