#! /usr/bin/python

from packager.rpm.build import BuildRPM
from nose.tools import *

model_name = "hydrotrend"

@raises(TypeError)
def test_fail_with_no_parameters():
    BuildRPM()

def test_model_version_none():
    BuildRPM(model_name, None, None, None)

def test_model_version_head():
    BuildRPM(model_name, "head", None, None)

#def test_model_tagged_version():
#    BuildRPM(model_name, "3.0.2")

@@ -177,16 +177,18 @@
 dRPM()%0A%0A
+# 
 def test
@@ -206,24 +206,26 @@
 ion_none():%0A
+# 
     BuildRPM
@@ -248,24 +248,30 @@
 e, None,
+ None,
  None)%0A%0A
 def test
@@ -262,16 +262,18 @@
  None)%0A%0A
+# 
 def test
@@ -291,28 +291,30 @@
 ion_head():%0A
+#
     
+ 
 BuildRPM(mod
@@ -331,24 +331,30 @@
 head%22, None,
+ None,
  None)%0A%0A#def

Update BuildRPM unit tests