def test_get_tag_0_bit():
    """get_tag should return None if no bits are allocated to a tag"""
    nose.assert_is_none(sim.get_tag("10110100", num_tag_bits=0))
def test_get_tag_5_bit():
    """get_tag should return correct 5 tag bits for an address"""
    nose.assert_equal(sim.get_tag("10110100", num_tag_bits=5), "10110")