Commit 65fb2a39 authored by Łukasz Nowak's avatar Łukasz Nowak

Check if construct can be called on empty computer.

parent 165f83c1
......@@ -8,6 +8,10 @@ class TestComputer(unittest.TestCase):
computer = slapos.format.Computer('computer')
self.assertEqual(computer.getAddress(), {'netmask': None, 'addr': None})
def test_construct_empty(self):
computer = slapos.format.Computer('computer')
computer.construct()
class FakeConfig:
pass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment