
from build_rpm import BuildModelRPM
from nose.tools import *

@raises(TypeError)
def test_fail_with_no_parameters():
    BuildModelRPM(None)

@raises(TypeError)
def test_fail_with_one_parameter():
    BuildModelRPM("hydrotrend")

def test_hydrotrend_version_none():
    BuildModelRPM("hydrotrend", None)

def test_hydrotrend_version_head():
    BuildModelRPM("hydrotrend", "head")

#def test_hydrotrend_tagged_version():
#    BuildModelRPM("hydrotrend", "3.0.2")

def test_cem_version_head():
    BuildModelRPM("cem", "head")

#def test_cem_tagged_version():
#    BuildModelRPM("cem", "0.2")

def test_child_version_head():
    BuildModelRPM("child", "head")

def test_child_version_head():
    BuildModelRPM("sedflux", "head")


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

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

@raises(TypeError)
def test_fail_with_one_parameter():
    BuildRPM("hydrotrend")

def test_hydrotrend_version_none():
    BuildRPM("hydrotrend", None)

def test_hydrotrend_version_head():
    BuildRPM("hydrotrend", "head")

#def test_hydrotrend_tagged_version():
#    BuildRPM("hydrotrend", "3.0.2")

def test_cem_version_head():
    BuildRPM("cem", "head")

#def test_cem_tagged_version():
#    BuildRPM("cem", "0.2")

def test_child_version_head():
    BuildRPM("child", "head")

def test_child_version_head():
    BuildRPM("sedflux", "head")

Update unit tests for packager.rpm.build.py
Update unit tests for packager.rpm.build.py

  
- from build_rpm import BuildModelRPM
+ from packager.rpm.build import BuildRPM
  from nose.tools import *
  
  @raises(TypeError)
  def test_fail_with_no_parameters():
-     BuildModelRPM(None)
+     BuildRPM(None)
  
  @raises(TypeError)
  def test_fail_with_one_parameter():
-     BuildModelRPM("hydrotrend")
+     BuildRPM("hydrotrend")
  
  def test_hydrotrend_version_none():
-     BuildModelRPM("hydrotrend", None)
+     BuildRPM("hydrotrend", None)
  
  def test_hydrotrend_version_head():
-     BuildModelRPM("hydrotrend", "head")
+     BuildRPM("hydrotrend", "head")
  
  #def test_hydrotrend_tagged_version():
- #    BuildModelRPM("hydrotrend", "3.0.2")
+ #    BuildRPM("hydrotrend", "3.0.2")
  
  def test_cem_version_head():
-     BuildModelRPM("cem", "head")
+     BuildRPM("cem", "head")
  
  #def test_cem_tagged_version():
- #    BuildModelRPM("cem", "0.2")
+ #    BuildRPM("cem", "0.2")
  
  def test_child_version_head():
-     BuildModelRPM("child", "head")
+     BuildRPM("child", "head")
  
  def test_child_version_head():
-     BuildModelRPM("sedflux", "head")
+     BuildRPM("sedflux", "head")
  
Update unit tests for packager.rpm.build.py
## Code Before:

from build_rpm import BuildModelRPM
from nose.tools import *

@raises(TypeError)
def test_fail_with_no_parameters():
    BuildModelRPM(None)

@raises(TypeError)
def test_fail_with_one_parameter():
    BuildModelRPM("hydrotrend")

def test_hydrotrend_version_none():
    BuildModelRPM("hydrotrend", None)

def test_hydrotrend_version_head():
    BuildModelRPM("hydrotrend", "head")

#def test_hydrotrend_tagged_version():
#    BuildModelRPM("hydrotrend", "3.0.2")

def test_cem_version_head():
    BuildModelRPM("cem", "head")

#def test_cem_tagged_version():
#    BuildModelRPM("cem", "0.2")

def test_child_version_head():
    BuildModelRPM("child", "head")

def test_child_version_head():
    BuildModelRPM("sedflux", "head")

## Instruction:
Update unit tests for packager.rpm.build.py
## Code After:

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

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

@raises(TypeError)
def test_fail_with_one_parameter():
    BuildRPM("hydrotrend")

def test_hydrotrend_version_none():
    BuildRPM("hydrotrend", None)

def test_hydrotrend_version_head():
    BuildRPM("hydrotrend", "head")

#def test_hydrotrend_tagged_version():
#    BuildRPM("hydrotrend", "3.0.2")

def test_cem_version_head():
    BuildRPM("cem", "head")

#def test_cem_tagged_version():
#    BuildRPM("cem", "0.2")

def test_child_version_head():
    BuildRPM("child", "head")

def test_child_version_head():
    BuildRPM("sedflux", "head")
