def test_get_bin_addr_unpadded():
    """get_bin_addr should return unpadded binary address of word address"""
    nose.assert_equal(
        sim.get_bin_addr(180),
        '10110100')
def test_get_bin_addr_padded():
    """get_bin_addr should return padded binary address of word address"""
    nose.assert_equal(
        sim.get_bin_addr(44, num_addr_bits=8),
        '00101100')