summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Kottler <skottler@fedoraproject.org>2013-06-30 14:29:08 -0400
committerSam Kottler <skottler@fedoraproject.org>2013-06-30 14:29:08 -0400
commitbc05f89f650dff904b98e1a5e489ebe069170135 (patch)
tree046980fefe045c6542052c3d1c89bd41957caef4
parentc95abffc7977d598307a6f5781f1bd973c4e5bb9 (diff)
downloadkicker-master.zip
kicker-master.tar.gz
kicker-master.tar.xz
Add some stuff to the gitignore and initial test setupHEADmaster
-rw-r--r--.gitignore1
-rw-r--r--test/interface.py10
2 files changed, 11 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..0d20b64
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*.pyc
diff --git a/test/interface.py b/test/interface.py
new file mode 100644
index 0000000..b207551
--- /dev/null
+++ b/test/interface.py
@@ -0,0 +1,10 @@
+from nose.tools import assert_equal
+
+class Interface(object):
+ @classmethod
+ def setup_klass(klass):
+ pass
+
+ def test_interface_methods(self):
+ interface = Interface("eth0 52:54:00:d8:97:28")
+ assert_equal(interface.get_mac_address(), "52:54:00:d8:97:28")