Skip to content

Commit

Permalink
Update linege unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleknap committed Feb 18, 2015
1 parent 2a02659 commit 9e40bfb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/unit/test_clidriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,9 +748,10 @@ def test_name(self):
self.assertEqual(self.cmd.name, 'bar')

def test_lineage(self):
cmd = CLICommand()
self.assertEqual(self.cmd.lineage, [self.cmd])
self.cmd.lineage = ['foo']
self.assertEqual(self.cmd.lineage, ['foo'])
self.cmd.lineage = [cmd]
self.assertEqual(self.cmd.lineage, [cmd])

def test_lineage_names(self):
self.assertEqual(self.cmd.lineage_names, ['foo'])
Expand All @@ -777,9 +778,10 @@ def test_name(self):
self.assertEqual(self.cmd.name, 'bar')

def test_lineage(self):
cmd = CLICommand()
self.assertEqual(self.cmd.lineage, [self.cmd])
self.cmd.lineage = ['foo']
self.assertEqual(self.cmd.lineage, ['foo'])
self.cmd.lineage = [cmd]
self.assertEqual(self.cmd.lineage, [cmd])

def test_lineage_names(self):
self.assertEqual(self.cmd.lineage_names, ['foo'])
Expand Down

0 comments on commit 9e40bfb

Please sign in to comment.