Lines Matching full:band
21 self.assertEquals(spec.band, ap_spec.DEFAULT_BAND)
28 """Test setting only the band to 2GHz."""
29 spec = ap_spec.APSpec(band=ap_spec.BAND_2GHZ)
35 """Test setting only the band to 5GHz."""
36 spec = ap_spec.APSpec(band=ap_spec.BAND_5GHZ)
44 self.assertEquals(spec.band, ap_spec.DEFAULT_BAND)
51 self.assertEquals(spec.band, ap_spec.BAND_5GHZ)
58 self.assertEquals(spec.band, ap_spec.DEFAULT_BAND)
65 self.assertEquals(spec.band, ap_spec.BAND_2GHZ)
72 self.assertEquals(spec.band, ap_spec.BAND_5GHZ)
77 """Test setting the band and mode to valid 2GHz values."""
78 spec = ap_spec.APSpec(band=ap_spec.BAND_2GHZ, mode=ap_spec.MODE_G)
83 """Test setting the band and mode to valid 5GHz values."""
84 spec = ap_spec.APSpec(band=ap_spec.BAND_5GHZ, mode=ap_spec.MODE_A)
89 """Test setting the band and channel to valid 2GHz values."""
90 spec = ap_spec.APSpec(band=ap_spec.BAND_2GHZ, mode=ap_spec.MODE_N,
96 """Test setting the band and channel to valid 5GHz value."""
97 spec = ap_spec.APSpec(band=ap_spec.BAND_5GHZ, mode=ap_spec.MODE_N,
107 self.assertEquals(spec.band, ap_spec.DEFAULT_BAND)
118 self.assertEquals(spec.band, ap_spec.DEFAULT_BAND)
125 """Test setting mode and band to non-compatible settings."""
127 band=ap_spec.BAND_2GHZ, mode=ap_spec.MODE_A)
131 """Test setting channel and band to non-compatible settings."""
133 band=ap_spec.BAND_5GHZ, channel=1)
144 self.assertRaises(ValueError, ap_spec.APSpec, band='foo')
167 """Test that band is maintained when setting a mode N spec."""
168 spec = ap_spec.APSpec(band=ap_spec.BAND_5GHZ, mode=ap_spec.MODE_N)
169 self.assertEquals(spec.band, ap_spec.BAND_5GHZ)
171 spec = ap_spec.APSpec(band=ap_spec.BAND_2GHZ, mode=ap_spec.MODE_N)
172 self.assertEquals(spec.band, ap_spec.BAND_2GHZ)