Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
my $testdb = $ENV{'database'};
my $keyfile = $ENV{'keyfile'};
my $testdb = $ENV{'database'};
my $keyfile = $ENV{'keyfile'};
-use Test::More tests => 10;
+use Test::More tests => 11;
BEGIN { use_ok('Location') };
#########################
BEGIN { use_ok('Location') };
#########################
my $network_flag_anycast = &Location::lookup_network_has_flag($db, $address, "LOC_NETWORK_FLAG_ANYCAST");
ok($network_flag_anycast, "Network has Anycast flag.");
my $network_flag_anycast = &Location::lookup_network_has_flag($db, $address, "LOC_NETWORK_FLAG_ANYCAST");
ok($network_flag_anycast, "Network has Anycast flag.");
+
+my $country_name = &Location::get_country_name($db, "DE");
+ok($country_name eq "Germany", "Test 13 - Got country name: $country_name");