Mike Steder avatar Mike Steder committed 065801a

Added testing deps

Comments (0)

Files changed (5)

Binary file added.

Add a comment to this file

deps/unittest2-0.3.0.tar.gz

Binary file added.

noir/test/mocks.py

+"""
+"""
+

noir/test/test_commands.py

+"""
+"""
+
+
+import unittest2
+
+from noir import commands
+from noir.test import mocks
+
+
+class TestNICK(unittest2.TestCase):
+    def setUp(self):
+        pass
+
+    def test_set_nick_wo_prefix(self):
+        self.fail("happy path, setting nick")
+
+    def test_set_nick_w_prefix(self):
+        self.fail("happy path, with prefix")
+
+    def test_change_nick(self):
+        self.fail("changed nick successfully")
+
+    def test_attempt_change_nick(self):
+        self.fail("unable to change nick because new nick already taken")
+
+    def test_attempt_set_inuse(self):
+        self.fail("should return appropriate error rpl code")
+
+    def test_nonicknamegiven(self):
+        self.fail("should return no nick name given rpl")
+
+    def test_erroneousNick_tooLong(self):
+        self.fail("Should rpl ERR_ERRONEUSNICKNAME: too long!")
+
+

noir/test/test_parser.py

 """
 """
-import unittest
+import unittest2
 
 from noir import parser
 
 
-class TestParser(unittest.TestCase):
+class TestParser(unittest2.TestCase):
     def test_nick(self):
         message = "NICK steder\r\n"
         m = parser.parse(message)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.