~jml/+junk/whip

« back to all changes in this revision

Viewing changes to lpwhip/tests/test_main.py

  • Committer: Jonathan Lange
  • Date: 2010-12-23 13:11:05 UTC
  • Revision ID: jml@canonical.com-20101223131105-zjgfx79yw3khn9dw
Test running infrastructure

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from testtools import TestCase
 
2
from testtools.matchers import (
 
3
    Is,
 
4
    Not,
 
5
    )
 
6
 
 
7
from lpwhip import main
 
8
 
 
9
 
 
10
class TestMain(TestCase):
 
11
 
 
12
    def test_has_run_function(self):
 
13
        self.assertThat(main.run, Not(Is(None)))