def check_bin(meta, key, bins):
		nonlocal prev_bin_1

		assert("bin_1" in bins)
		lib.obj_spec_is_I1(bins["bin_1"])

		if prev_bin_1 == -1:
			prev_bin_1 = bins["bin_1"]
		else:
			assert(bins["bin_1"] == prev_bin_1)
Beispiel #2
0
 def check_bins_before(b):
     assert (len(b) == 4)
     lib.obj_spec_is_I1(b["testbin"])
     lib.obj_spec_is_I2(b["testbin_2"])
     lib.obj_spec_is_I3(b["testbin_3"])
     lib.obj_spec_is_I4(b["testbin_4"])
	def check_bin(meta, key, bins):
		assert("bin_1" in bins)
		assert("bin_2" in bins)
		lib.obj_spec_is_I1(bins["bin_1"])
		lib.obj_spec_is_I1(bins["bin_2"] - 256)
Beispiel #4
0
 def check_bins(b):
     assert (len(b) == 2)
     lib.obj_spec_is_I1(b["testbin"])
     lib.obj_spec_is_I3(b["testbin_3"])