(t *testing.T)
| 24 | ) |
| 25 | |
| 26 | func TestFrequencyPlans(t *testing.T) { |
| 27 | a := assertions.New(t) |
| 28 | |
| 29 | fp := frequencyplans.NewStore(test.FrequencyPlansFetcher) |
| 30 | |
| 31 | euFP, err := fp.GetByID(test.EUFrequencyPlanID) |
| 32 | a.So(err, should.BeNil) |
| 33 | a.So(euFP.BandID, should.Equal, "EU_863_870") |
| 34 | |
| 35 | krFP, err := fp.GetByID(test.KRFrequencyPlanID) |
| 36 | a.So(err, should.BeNil) |
| 37 | a.So(krFP.UplinkChannels[0].Frequency, should.Equal, 922100000) |
| 38 | |
| 39 | _, err = fp.GetByID(test.ExampleFrequencyPlanID) |
| 40 | a.So(err, should.BeNil) |
| 41 | } |