summaryrefslogtreecommitdiffstats
path: root/test/interface.py
blob: b2075513332abf97bd855dbc1cd3adf603ae4d4c (plain)
1
2
3
4
5
6
7
8
9
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")