code stringlengths 2k 1.04M | repo_path stringlengths 5 517 | parsed_code stringlengths 0 1.04M | quality_prob float64 0.02 0.95 | learning_prob float64 0.02 0.93 |
|---|---|---|---|---|
import torch
from pytorchltr.datasets.list_sampler import ListSampler
from pytorchltr.datasets.list_sampler import UniformSampler
from pytorchltr.datasets.list_sampler import BalancedRelevanceSampler
from pytest import approx
def rng(seed=1608637542):
gen = torch.Generator()
gen.manual_seed(seed)
return gen
def test_list_sampler():
sampler = ListSampler(max_list_size=5)
relevance = torch.tensor([0, 0, 1, 0, 0, 0, 2, 1], dtype=torch.long)
idxs = sampler(relevance)
expected = torch.arange(5)
assert idxs.equal(expected)
def test_list_sampler_unlimited():
sampler = ListSampler(max_list_size=None)
relevance = torch.tensor([0, 0, 1, 0, 0, 0, 2, 1], dtype=torch.long)
idxs = sampler(relevance)
expected = torch.arange(8)
assert idxs.equal(expected)
def test_list_sampler_single():
sampler = ListSampler(max_list_size=1)
relevance = torch.tensor([0], dtype=torch.long)
idxs = sampler(relevance)
expected = torch.arange(1)
assert idxs.equal(expected)
def test_uniform_no_generator():
torch.manual_seed(1608637542)
sampler = UniformSampler(max_list_size=5)
relevance = torch.tensor([0, 1, 0, 0, 2, 0, 1, 0, 0, 0], dtype=torch.long)
idxs = sampler(relevance)
assert idxs.shape == (5,)
def test_uniform_single():
sampler = UniformSampler(max_list_size=1, generator=rng())
relevance = torch.tensor([0], dtype=torch.long)
idxs = sampler(relevance)
expected = torch.tensor([0], dtype=torch.long)
assert idxs.equal(expected)
def test_uniform_single_2():
sampler = UniformSampler(max_list_size=1, generator=rng())
relevance = torch.tensor([0, 1, 2, 0, 0, 1, 0, 0, 2], dtype=torch.long)
idxs = sampler(relevance)
assert idxs.shape == (1,)
def test_uniform_multiple():
sampler = UniformSampler(max_list_size=3, generator=rng())
relevance = torch.tensor([0, 0, 0, 1, 0, 0, 2], dtype=torch.long)
idxs = sampler(relevance)
assert idxs.shape == (3,)
def test_uniform_multiple_2():
sampler = UniformSampler(max_list_size=9, generator=rng())
relevance = torch.tensor([0, 1], dtype=torch.long)
idxs = sampler(relevance)
assert idxs.shape == (2,)
def test_uniform_unlimited():
sampler = UniformSampler(max_list_size=None, generator=rng())
relevance = torch.tensor([0, 0, 0, 1, 0, 0, 2, 1, 0, 0, 0, 0, 1],
dtype=torch.long)
idxs = sampler(relevance)
assert idxs.shape == (13,)
def test_uniform_stat():
sampler = UniformSampler(max_list_size=1, generator=rng())
relevance = torch.tensor([0, 0, 1, 0, 0, 0, 2, 1], dtype=torch.long)
n = 1000
hist = torch.zeros(3)
for i in range(n):
idxs = sampler(relevance)
hist[relevance[idxs].item()] += 1
hist /= n
assert hist[0].item() == approx(5.0 / 8.0, abs=0.05)
assert hist[1].item() == approx(2.0 / 8.0, abs=0.05)
assert hist[2].item() == approx(1.0 / 8.0, abs=0.05)
def test_uniform_stat_large():
sampler = UniformSampler(max_list_size=5, generator=rng())
relevance = torch.tensor([0, 0, 1, 0, 0, 0, 2, 1], dtype=torch.long)
n = 1000
for idx in range(5):
hist = torch.zeros(3)
for i in range(n):
idxs = sampler(relevance)
hist[relevance[idxs][idx].item()] += 1
hist /= n
assert hist[0].item() == approx(5.0 / 8.0, abs=0.05)
assert hist[1].item() == approx(2.0 / 8.0, abs=0.05)
assert hist[2].item() == approx(1.0 / 8.0, abs=0.05)
def test_balanced_no_generator():
torch.manual_seed(1608637542)
sampler = BalancedRelevanceSampler(max_list_size=5)
relevance = torch.tensor([0, 1, 0, 0, 2, 0, 1, 0, 0, 0], dtype=torch.long)
idxs = sampler(relevance)
assert idxs.shape == (5,)
def test_balanced_single():
sampler = BalancedRelevanceSampler(max_list_size=1, generator=rng())
relevance = torch.tensor([0], dtype=torch.long)
idxs = sampler(relevance)
expected = torch.tensor([0], dtype=torch.long)
assert idxs.equal(expected)
def test_balanced_single_2():
sampler = BalancedRelevanceSampler(max_list_size=1, generator=rng())
relevance = torch.tensor([0, 1, 2, 0, 0, 1, 0, 0, 2], dtype=torch.long)
idxs = sampler(relevance)
assert idxs.shape == (1,)
def test_balanced_multiple():
sampler = BalancedRelevanceSampler(max_list_size=3, generator=rng())
relevance = torch.tensor([0, 0, 0, 1, 0, 0, 2], dtype=torch.long)
idxs = sampler(relevance)
assert idxs.shape == (3,)
def test_balanced_multiple_2():
sampler = BalancedRelevanceSampler(max_list_size=9, generator=rng())
relevance = torch.tensor([0, 1], dtype=torch.long)
idxs = sampler(relevance)
assert idxs.shape == (2,)
def test_balanced_unlimited():
sampler = BalancedRelevanceSampler(max_list_size=None, generator=rng())
relevance = torch.tensor([0, 0, 0, 1, 0, 0, 2, 1, 0, 0, 0, 0, 1],
dtype=torch.long)
idxs = sampler(relevance)
assert idxs.shape == (13,)
def test_balanced_stat():
sampler = BalancedRelevanceSampler(max_list_size=1, generator=rng())
relevance = torch.tensor([0, 0, 1, 0, 0, 0, 2, 1], dtype=torch.long)
n = 1000
hist = torch.zeros(3)
for i in range(n):
idxs = sampler(relevance)
hist[relevance[idxs].item()] += 1
hist /= n
assert hist[0].item() == approx(1.0 / 3.0, abs=0.05)
assert hist[1].item() == approx(1.0 / 3.0, abs=0.05)
assert hist[2].item() == approx(1.0 / 3.0, abs=0.05)
def test_balanced_stat_large():
sampler = BalancedRelevanceSampler(max_list_size=7, generator=rng())
relevance = torch.tensor([0, 0, 1, 0, 0, 0, 2, 1, 0, 0, 0],
dtype=torch.long)
n = 1000
expected = torch.tensor([
[1.0 / 3.0, 1.0 / 3.0, 1.0 / 3.0],
[1.0 / 3.0, 1.0 / 3.0, 1.0 / 3.0],
[1.0 / 3.0, 1.0 / 3.0, 1.0 / 3.0],
[1.0 / 2.0, 1.0 / 2.0, 0.0],
[1.0 / 2.0, 1.0 / 2.0, 0.0],
[1.0, 0.0, 0.0],
[1.0, 0.0, 0.0],
])
for idx in range(7):
hist = torch.zeros(3)
for i in range(n):
idxs = sampler(relevance)
hist[relevance[idxs][idx].item()] += 1
hist /= n
assert hist[0].item() == approx(expected[idx, 0].item(), abs=0.05)
assert hist[1].item() == approx(expected[idx, 1].item(), abs=0.05)
assert hist[2].item() == approx(expected[idx, 2].item(), abs=0.05) | tests/datasets/test_list_sampler.py | import torch
from pytorchltr.datasets.list_sampler import ListSampler
from pytorchltr.datasets.list_sampler import UniformSampler
from pytorchltr.datasets.list_sampler import BalancedRelevanceSampler
from pytest import approx
def rng(seed=1608637542):
gen = torch.Generator()
gen.manual_seed(seed)
return gen
def test_list_sampler():
sampler = ListSampler(max_list_size=5)
relevance = torch.tensor([0, 0, 1, 0, 0, 0, 2, 1], dtype=torch.long)
idxs = sampler(relevance)
expected = torch.arange(5)
assert idxs.equal(expected)
def test_list_sampler_unlimited():
sampler = ListSampler(max_list_size=None)
relevance = torch.tensor([0, 0, 1, 0, 0, 0, 2, 1], dtype=torch.long)
idxs = sampler(relevance)
expected = torch.arange(8)
assert idxs.equal(expected)
def test_list_sampler_single():
sampler = ListSampler(max_list_size=1)
relevance = torch.tensor([0], dtype=torch.long)
idxs = sampler(relevance)
expected = torch.arange(1)
assert idxs.equal(expected)
def test_uniform_no_generator():
torch.manual_seed(1608637542)
sampler = UniformSampler(max_list_size=5)
relevance = torch.tensor([0, 1, 0, 0, 2, 0, 1, 0, 0, 0], dtype=torch.long)
idxs = sampler(relevance)
assert idxs.shape == (5,)
def test_uniform_single():
sampler = UniformSampler(max_list_size=1, generator=rng())
relevance = torch.tensor([0], dtype=torch.long)
idxs = sampler(relevance)
expected = torch.tensor([0], dtype=torch.long)
assert idxs.equal(expected)
def test_uniform_single_2():
sampler = UniformSampler(max_list_size=1, generator=rng())
relevance = torch.tensor([0, 1, 2, 0, 0, 1, 0, 0, 2], dtype=torch.long)
idxs = sampler(relevance)
assert idxs.shape == (1,)
def test_uniform_multiple():
sampler = UniformSampler(max_list_size=3, generator=rng())
relevance = torch.tensor([0, 0, 0, 1, 0, 0, 2], dtype=torch.long)
idxs = sampler(relevance)
assert idxs.shape == (3,)
def test_uniform_multiple_2():
sampler = UniformSampler(max_list_size=9, generator=rng())
relevance = torch.tensor([0, 1], dtype=torch.long)
idxs = sampler(relevance)
assert idxs.shape == (2,)
def test_uniform_unlimited():
sampler = UniformSampler(max_list_size=None, generator=rng())
relevance = torch.tensor([0, 0, 0, 1, 0, 0, 2, 1, 0, 0, 0, 0, 1],
dtype=torch.long)
idxs = sampler(relevance)
assert idxs.shape == (13,)
def test_uniform_stat():
sampler = UniformSampler(max_list_size=1, generator=rng())
relevance = torch.tensor([0, 0, 1, 0, 0, 0, 2, 1], dtype=torch.long)
n = 1000
hist = torch.zeros(3)
for i in range(n):
idxs = sampler(relevance)
hist[relevance[idxs].item()] += 1
hist /= n
assert hist[0].item() == approx(5.0 / 8.0, abs=0.05)
assert hist[1].item() == approx(2.0 / 8.0, abs=0.05)
assert hist[2].item() == approx(1.0 / 8.0, abs=0.05)
def test_uniform_stat_large():
sampler = UniformSampler(max_list_size=5, generator=rng())
relevance = torch.tensor([0, 0, 1, 0, 0, 0, 2, 1], dtype=torch.long)
n = 1000
for idx in range(5):
hist = torch.zeros(3)
for i in range(n):
idxs = sampler(relevance)
hist[relevance[idxs][idx].item()] += 1
hist /= n
assert hist[0].item() == approx(5.0 / 8.0, abs=0.05)
assert hist[1].item() == approx(2.0 / 8.0, abs=0.05)
assert hist[2].item() == approx(1.0 / 8.0, abs=0.05)
def test_balanced_no_generator():
torch.manual_seed(1608637542)
sampler = BalancedRelevanceSampler(max_list_size=5)
relevance = torch.tensor([0, 1, 0, 0, 2, 0, 1, 0, 0, 0], dtype=torch.long)
idxs = sampler(relevance)
assert idxs.shape == (5,)
def test_balanced_single():
sampler = BalancedRelevanceSampler(max_list_size=1, generator=rng())
relevance = torch.tensor([0], dtype=torch.long)
idxs = sampler(relevance)
expected = torch.tensor([0], dtype=torch.long)
assert idxs.equal(expected)
def test_balanced_single_2():
sampler = BalancedRelevanceSampler(max_list_size=1, generator=rng())
relevance = torch.tensor([0, 1, 2, 0, 0, 1, 0, 0, 2], dtype=torch.long)
idxs = sampler(relevance)
assert idxs.shape == (1,)
def test_balanced_multiple():
sampler = BalancedRelevanceSampler(max_list_size=3, generator=rng())
relevance = torch.tensor([0, 0, 0, 1, 0, 0, 2], dtype=torch.long)
idxs = sampler(relevance)
assert idxs.shape == (3,)
def test_balanced_multiple_2():
sampler = BalancedRelevanceSampler(max_list_size=9, generator=rng())
relevance = torch.tensor([0, 1], dtype=torch.long)
idxs = sampler(relevance)
assert idxs.shape == (2,)
def test_balanced_unlimited():
sampler = BalancedRelevanceSampler(max_list_size=None, generator=rng())
relevance = torch.tensor([0, 0, 0, 1, 0, 0, 2, 1, 0, 0, 0, 0, 1],
dtype=torch.long)
idxs = sampler(relevance)
assert idxs.shape == (13,)
def test_balanced_stat():
sampler = BalancedRelevanceSampler(max_list_size=1, generator=rng())
relevance = torch.tensor([0, 0, 1, 0, 0, 0, 2, 1], dtype=torch.long)
n = 1000
hist = torch.zeros(3)
for i in range(n):
idxs = sampler(relevance)
hist[relevance[idxs].item()] += 1
hist /= n
assert hist[0].item() == approx(1.0 / 3.0, abs=0.05)
assert hist[1].item() == approx(1.0 / 3.0, abs=0.05)
assert hist[2].item() == approx(1.0 / 3.0, abs=0.05)
def test_balanced_stat_large():
sampler = BalancedRelevanceSampler(max_list_size=7, generator=rng())
relevance = torch.tensor([0, 0, 1, 0, 0, 0, 2, 1, 0, 0, 0],
dtype=torch.long)
n = 1000
expected = torch.tensor([
[1.0 / 3.0, 1.0 / 3.0, 1.0 / 3.0],
[1.0 / 3.0, 1.0 / 3.0, 1.0 / 3.0],
[1.0 / 3.0, 1.0 / 3.0, 1.0 / 3.0],
[1.0 / 2.0, 1.0 / 2.0, 0.0],
[1.0 / 2.0, 1.0 / 2.0, 0.0],
[1.0, 0.0, 0.0],
[1.0, 0.0, 0.0],
])
for idx in range(7):
hist = torch.zeros(3)
for i in range(n):
idxs = sampler(relevance)
hist[relevance[idxs][idx].item()] += 1
hist /= n
assert hist[0].item() == approx(expected[idx, 0].item(), abs=0.05)
assert hist[1].item() == approx(expected[idx, 1].item(), abs=0.05)
assert hist[2].item() == approx(expected[idx, 2].item(), abs=0.05) | 0.710427 | 0.836154 |
import argparse
import getpass
import colorama as clr
import neo4j_queries
from neo4j_connection import FlightsConnection
exit = False
info_queries = """Available queries:
1.- Information about every airline and their country.
2.- Top 10 airlines that provide the biggest amount of flights.
3.- Flights from Madrid to London ordered by departure date.
4.- Number of flights that depart from every airport each day.
5.- Flights from Spain to the US ordered by departure date.
6.- Number of flights that depart from and arrive to every airport each day.
7.- Flights from New York to Los Angeles the 8th of November, as well as the
airline that provides each flight.
8.- Paths to go from Gatwick (London) to Incheon (Seoul) the 9th of November
doing 2 flights at most.
9.- Which of the paths from query '8' arrives earlier?
10.- Shortest path from Madrid to Seoul."""
def print_help():
print("In order to make a query you have to introduce the number of the "
"query that you want to make.\nIf you type 'queries' you can "
"see every query available.\nYou can also type 'exit' to stop "
"the application, and 'help' to show this message again.")
def print_queries():
print(info_queries)
def process_user_input(user_input, conn):
"""
This function checks if the user input is a int. If it is,
it calls the corresponding function from neo4j_queries.
If it isn't an int it will parse the string.
"""
try:
int(user_input)
method = getattr(neo4j_queries, 'query' + user_input)
method(conn.session)
except ValueError:
if user_input == 'queries':
print_queries()
elif user_input == 'exit':
global exit
exit = True
elif user_input == 'help':
print_help()
else:
print("Unrecognized input.")
print_help()
except Exception:
print("Invalid query number.")
def main():
clr.init()
parser = argparse.ArgumentParser()
parser.add_argument('--port', type=str,
help='port where bolt is enabled', default='7687')
args = parser.parse_args()
username = input("Introduce your neo4j username: ")
password = getpass.getpass("Introduce your password: ")
with FlightsConnection(args.port, username, password) as conn:
print_queries()
print_help()
while not exit:
user_input = input(">> ")
process_user_input(user_input, conn)
if __name__ == '__main__':
main() | simple_demo/scripts/main.py |
import argparse
import getpass
import colorama as clr
import neo4j_queries
from neo4j_connection import FlightsConnection
exit = False
info_queries = """Available queries:
1.- Information about every airline and their country.
2.- Top 10 airlines that provide the biggest amount of flights.
3.- Flights from Madrid to London ordered by departure date.
4.- Number of flights that depart from every airport each day.
5.- Flights from Spain to the US ordered by departure date.
6.- Number of flights that depart from and arrive to every airport each day.
7.- Flights from New York to Los Angeles the 8th of November, as well as the
airline that provides each flight.
8.- Paths to go from Gatwick (London) to Incheon (Seoul) the 9th of November
doing 2 flights at most.
9.- Which of the paths from query '8' arrives earlier?
10.- Shortest path from Madrid to Seoul."""
def print_help():
print("In order to make a query you have to introduce the number of the "
"query that you want to make.\nIf you type 'queries' you can "
"see every query available.\nYou can also type 'exit' to stop "
"the application, and 'help' to show this message again.")
def print_queries():
print(info_queries)
def process_user_input(user_input, conn):
"""
This function checks if the user input is a int. If it is,
it calls the corresponding function from neo4j_queries.
If it isn't an int it will parse the string.
"""
try:
int(user_input)
method = getattr(neo4j_queries, 'query' + user_input)
method(conn.session)
except ValueError:
if user_input == 'queries':
print_queries()
elif user_input == 'exit':
global exit
exit = True
elif user_input == 'help':
print_help()
else:
print("Unrecognized input.")
print_help()
except Exception:
print("Invalid query number.")
def main():
clr.init()
parser = argparse.ArgumentParser()
parser.add_argument('--port', type=str,
help='port where bolt is enabled', default='7687')
args = parser.parse_args()
username = input("Introduce your neo4j username: ")
password = getpass.getpass("Introduce your password: ")
with FlightsConnection(args.port, username, password) as conn:
print_queries()
print_help()
while not exit:
user_input = input(">> ")
process_user_input(user_input, conn)
if __name__ == '__main__':
main() | 0.439026 | 0.418994 |
import unittest
from passlocker import passlocker
import Pyperclip
class Testpasslockers(unittest.TestCase):
def setup(self):
"""
setup before running test
"""
self.new_passlocker = ("millywayne", "<PASSWORD>" "github" "<EMAIL>")
def test_init(self):
"""
clear list
"""
passlocker.pass_list = []
"""
check initialization
"""
self.assertEqual(self.new_pass.user_name, "millywayne")
self.assertEqual(self.new_pass.passlock, "<PASSWORD>")
self.assertEqual(self.new_pass.account, "github")
self.assertEqual(self.new_pass.email, "<EMAIL>")
def test_save_passlocker(self):
"""
check if objects can be saved in the passlockers list
"""
self.new_pass.save_pass()
self.assertEqual(len(passlocker.pass_list),1)
def test_saving_multiple_pass(self):
"""
checking if multiple passlock can be saved
"""
self.new_pass.save_pass()
test_pass = passlocker("Facebook", "<PASSWORD>", "passlock")
test_pass.save_pass()
self.assertEqual(len(passlocker.pass_pass_list),2)
def test_delete_passlockers(self):
"""
testing if objects can be deleted
"""
self.new_pass.save__pass
test_pass = passlocker("Facebook", "<PASSWORD>", "pass<PASSWORD>")
test_pass.save_pass()
self.new_pass.delete_pass()
self.assertEqual(len(passlocker.pass_list),1)
def test_search_for_pass(self):
"""
checking if object search is possible
"""
self.new_save_pass()
test_pass = passlocker("Facebook", "<PASSWORD>", "passlock")
test_pass.save_pass()
find_pass = passlocker.find_account("Facebook")
self.assertEqual(find_pass.account, test_pass.account)
def test_confirm_pass_exists(self):
"""
confirm the existance of objects
"""
self.new_pass.save_pass()
test_pass = passlocker("Facebook", "<PASSWORD>", "<PASSWORD>")
test_pass.save_pass()
pass_exists = passlocker.pass_exists("Facebook")
self.assertTrue(pass_exists)
def test_display_passlock(self):
"""
checking if objects can be displayed
"""
self.assertEqual(passlocker.display_pass(), passlocker.pass_list)
def test_copy_passlock(self):
"""
checking if passlock can be copied
"""
self.new_pass.save_pass()
passlocker.copy_password("<PASSWORD>")
self.assertEqual(self.new_pass.password,
Pyperclip.paste()) | passlocker__test.py | import unittest
from passlocker import passlocker
import Pyperclip
class Testpasslockers(unittest.TestCase):
def setup(self):
"""
setup before running test
"""
self.new_passlocker = ("millywayne", "<PASSWORD>" "github" "<EMAIL>")
def test_init(self):
"""
clear list
"""
passlocker.pass_list = []
"""
check initialization
"""
self.assertEqual(self.new_pass.user_name, "millywayne")
self.assertEqual(self.new_pass.passlock, "<PASSWORD>")
self.assertEqual(self.new_pass.account, "github")
self.assertEqual(self.new_pass.email, "<EMAIL>")
def test_save_passlocker(self):
"""
check if objects can be saved in the passlockers list
"""
self.new_pass.save_pass()
self.assertEqual(len(passlocker.pass_list),1)
def test_saving_multiple_pass(self):
"""
checking if multiple passlock can be saved
"""
self.new_pass.save_pass()
test_pass = passlocker("Facebook", "<PASSWORD>", "passlock")
test_pass.save_pass()
self.assertEqual(len(passlocker.pass_pass_list),2)
def test_delete_passlockers(self):
"""
testing if objects can be deleted
"""
self.new_pass.save__pass
test_pass = passlocker("Facebook", "<PASSWORD>", "pass<PASSWORD>")
test_pass.save_pass()
self.new_pass.delete_pass()
self.assertEqual(len(passlocker.pass_list),1)
def test_search_for_pass(self):
"""
checking if object search is possible
"""
self.new_save_pass()
test_pass = passlocker("Facebook", "<PASSWORD>", "passlock")
test_pass.save_pass()
find_pass = passlocker.find_account("Facebook")
self.assertEqual(find_pass.account, test_pass.account)
def test_confirm_pass_exists(self):
"""
confirm the existance of objects
"""
self.new_pass.save_pass()
test_pass = passlocker("Facebook", "<PASSWORD>", "<PASSWORD>")
test_pass.save_pass()
pass_exists = passlocker.pass_exists("Facebook")
self.assertTrue(pass_exists)
def test_display_passlock(self):
"""
checking if objects can be displayed
"""
self.assertEqual(passlocker.display_pass(), passlocker.pass_list)
def test_copy_passlock(self):
"""
checking if passlock can be copied
"""
self.new_pass.save_pass()
passlocker.copy_password("<PASSWORD>")
self.assertEqual(self.new_pass.password,
Pyperclip.paste()) | 0.44553 | 0.19475 |
import torch
from omegaconf import DictConfig
from torch import nn
from code2seq.model.modules import PathEncoder
class TypedPathEncoder(PathEncoder):
def __init__(
self,
config: DictConfig,
n_tokens: int,
token_pad_id: int,
n_nodes: int,
node_pad_id: int,
n_types: int,
type_pad_id: int,
):
super().__init__(config, n_tokens, token_pad_id, n_nodes, node_pad_id)
self.type_embedding = nn.Embedding(n_types, config.embedding_size, padding_idx=type_pad_id)
@staticmethod
def _calculate_concat_size(embedding_size: int, rnn_size: int, num_directions: int) -> int:
return embedding_size * 4 + rnn_size * num_directions
def _type_embedding(self, types: torch.Tensor) -> torch.Tensor:
return self.type_embedding(types).sum(0)
def forward( # type: ignore
self,
from_type: torch.Tensor,
from_token: torch.Tensor,
path_nodes: torch.Tensor,
to_token: torch.Tensor,
to_type: torch.Tensor,
) -> torch.Tensor:
"""Encode each path context into the vector
:param from_type: [n contexts; max type parts] types of start tokens
:param from_token: [n contexts; max token parts] start tokens
:param path_nodes: [n contexts; path nodes] path nodes
:param to_token: [n contexts; max tokens parts] end tokens
:param to_type: [n contexts; max types parts] types of end tokens
:return: [n contexts; encoder size]
"""
# [total paths; embedding size]
encoded_from_tokens = self._token_embedding(from_token)
encoded_to_tokens = self._token_embedding(to_token)
# [total paths; embeddings size]
encoded_from_types = self._type_embedding(from_type)
encoded_to_types = self._type_embedding(to_type)
# [total_paths; rnn size * num directions]
encoded_paths = self._path_nodes_embedding(path_nodes)
# [total_paths; output size]
output = self._concat_with_linear(
[encoded_from_types, encoded_from_tokens, encoded_paths, encoded_to_tokens, encoded_to_types]
)
return output | code2seq/model/modules/typed_path_encoder.py | import torch
from omegaconf import DictConfig
from torch import nn
from code2seq.model.modules import PathEncoder
class TypedPathEncoder(PathEncoder):
def __init__(
self,
config: DictConfig,
n_tokens: int,
token_pad_id: int,
n_nodes: int,
node_pad_id: int,
n_types: int,
type_pad_id: int,
):
super().__init__(config, n_tokens, token_pad_id, n_nodes, node_pad_id)
self.type_embedding = nn.Embedding(n_types, config.embedding_size, padding_idx=type_pad_id)
@staticmethod
def _calculate_concat_size(embedding_size: int, rnn_size: int, num_directions: int) -> int:
return embedding_size * 4 + rnn_size * num_directions
def _type_embedding(self, types: torch.Tensor) -> torch.Tensor:
return self.type_embedding(types).sum(0)
def forward( # type: ignore
self,
from_type: torch.Tensor,
from_token: torch.Tensor,
path_nodes: torch.Tensor,
to_token: torch.Tensor,
to_type: torch.Tensor,
) -> torch.Tensor:
"""Encode each path context into the vector
:param from_type: [n contexts; max type parts] types of start tokens
:param from_token: [n contexts; max token parts] start tokens
:param path_nodes: [n contexts; path nodes] path nodes
:param to_token: [n contexts; max tokens parts] end tokens
:param to_type: [n contexts; max types parts] types of end tokens
:return: [n contexts; encoder size]
"""
# [total paths; embedding size]
encoded_from_tokens = self._token_embedding(from_token)
encoded_to_tokens = self._token_embedding(to_token)
# [total paths; embeddings size]
encoded_from_types = self._type_embedding(from_type)
encoded_to_types = self._type_embedding(to_type)
# [total_paths; rnn size * num directions]
encoded_paths = self._path_nodes_embedding(path_nodes)
# [total_paths; output size]
output = self._concat_with_linear(
[encoded_from_types, encoded_from_tokens, encoded_paths, encoded_to_tokens, encoded_to_types]
)
return output | 0.932253 | 0.322199 |
import os
import numpy as np
import torch
import torch.nn as nn
from torch.nn import Module
import neural_renderer as nr
from pose.manopth.manopth.manolayer import ManoLayer
from .theta_regressor import ThetaRegressor
class EncEncoder(nn.Module):
def __init__(self, inp_ch, out_ch, name='enc'):
super(EncEncoder, self).__init__()
self.name=name
self.inp_ch = inp_ch
self.out_ch = out_ch
self.encenc = nn.Sequential()
# (64x64 -> 1x1)
ds_reslu = [
32,
16,
8,
4,
2,
1,
]
for reslu in ds_reslu:
if reslu == 4 or reslu == 2:
mid_ch = inp_ch * 2
elif reslu == 1:
mid_ch = self.out_ch
else:
mid_ch = inp_ch
kernel_size = 3
self.encenc.add_module(
name = self.name + '_conv_{}'.format(reslu),
module = nn.Conv2d(
inp_ch,
mid_ch,
kernel_size=kernel_size,
stride=2,
padding=(kernel_size-1)//2,
bias=True
)
)
if reslu != 1:
self.encenc.add_module(
name = self.name + '_bn_{}'.format(reslu),
module = nn.BatchNorm2d(mid_ch)
)
self.encenc.add_module(
name = self.name + '_relu_{}'.format(reslu),
module = nn.LeakyReLU(inplace=True)
)
inp_ch = mid_ch
def forward(self, x):
batch_size = x.shape[0]
return self.encenc(x).reshape(batch_size, -1) #(B, 2048)
class ManoRender(nn.Module):
def __init__(
self,
fill_back=True,
):
super(ManoRender, self).__init__()
self.fill_back=fill_back
''' Render Depth '''
def forward(
self,
vertices,
faces,
Ks=None,
Rs=None,
ts=None,
dist_coeffs=None,
bbxs=None,
image_size=64,
orig_size=64,
anti_aliasing=False,
far = 100.0,
):
# batch_size = vertices.shape(0)
if self.fill_back:
faces = torch.cat(
(
faces,
faces[:, :, list(reversed(range(faces.shape[-1])))]
),
dim=1,
).to(vertices.device).detach()
if Ks is None:
print("K must not None if render depthmap")
raise Exception()
if Rs is None:
Rs = torch.Tensor(
[
[1,0,0],
[0,1,0],
[0,0,1],
]
).view((1,3,3)).to(vertices.device)
if ts is None:
ts = torch.Tensor([0,0,0]).view((1,3)).to(vertices.device)
if dist_coeffs is None:
dist_coeffs = torch.Tensor([[0., 0., 0., 0., 0.]]).to(vertices.device)
''' xyz -> uvd '''
vertices = self.projection(
vertices, Ks, Rs, ts, dist_coeffs, orig_size, bbxs=bbxs
)
faces = nr.vertices_to_faces(vertices, faces)
# rasteriation
rast = nr.rasterize_depth(faces, image_size, anti_aliasing, far=far)
# normalize to 0~1
rend = self.normalize_depth(rast, far=far)
return rend
def normalize_depth(self, img, far):
img_inf = torch.eq(img, far * torch.ones_like(img)).type(torch.float32) #Bool Tensor
img_ok = 1-img_inf #Bool Tensor
img_no_back = img_ok * img #Float Tensor
img_max = img_no_back.max(dim=1,keepdim=True)[0] #batch of max value
img_max = img_max.max(dim=2,keepdim=True)[0]
img_min = img.min(dim=1,keepdim = True)[0] #batch of min values
img_min = img_min.min(dim=2,keepdim = True)[0]
new_depth = (img_max - img)/(img_max - img_min)
new_depth = torch.max(new_depth, torch.zeros_like(new_depth))
new_depth = torch.min(new_depth, torch.ones_like(new_depth))
return new_depth
def projection(
self,
vertices,
Ks,
Rs,
ts,
dist_coeffs,
orig_size,
bbxs=None,
eps=1e-9,
):
'''
Calculate projective transformation of vertices given a projection matrix
Input parameters:
K: batch_size * 3 * 3 intrinsic camera matrix
R, t: batch_size * 3 * 3, batch_size * 1 * 3 extrinsic calibration parameters
dist_coeffs: vector of distortion coefficients
orig_size: original size of image captured by the camera
Returns: For each point [X,Y,Z] in world coordinates [u,v,z]
where u,v are the coordinates of the projection in
pixels and z is the depth
Modified by <NAME>: add bbx
'''
# instead of P*x we compute x'*P'
vertices = torch.matmul(vertices, Rs.transpose(2,1)) + ts
x, y, z = vertices[:, :, 0], vertices[:, :, 1], vertices[:, :, 2]
x_ = x / (z + eps)
y_ = y / (z + eps)
# Get distortion coefficients from vector
k1 = dist_coeffs[:, None, 0]
k2 = dist_coeffs[:, None, 1]
p1 = dist_coeffs[:, None, 2]
p2 = dist_coeffs[:, None, 3]
k3 = dist_coeffs[:, None, 4]
# we use x_ for x' and x__ for x'' etc.
r = torch.sqrt(x_ ** 2 + y_ ** 2)
x__ = x_*(1 + k1*(r**2) + k2*(r**4) + k3*(r**6)) + 2*p1*x_*y_ + p2*(r**2 + 2*x_**2)
y__ = y_*(1 + k1*(r**2) + k2*(r**4) + k3 *(r**6)) + p1*(r**2 + 2*y_**2) + 2*p2*x_*y_
vertices = torch.stack([x__, y__, torch.ones_like(z)], dim=-1)
vertices = torch.matmul(vertices, Ks.transpose(1,2))
u, v = vertices[:, :, 0], vertices[:, :, 1]
if bbxs is not None:
u = (u - bbxs[:,0:1])/bbxs[:,2:3] * orig_size
v = (v - bbxs[:,1:2])/bbxs[:,3:4] * orig_size
# map u,v from [0, img_size] to [-1, 1] to use by the renderer
v = orig_size - v
u = 2 * (u - orig_size / 2.) / orig_size
v = 2 * (v - orig_size / 2.) / orig_size
vertices = torch.stack([u, v, z], dim=-1)
return vertices
class NetMano(nn.Module):
def __init__(
self,
mano_ncomps=6,
mano_root_idx=0,
mano_flat_hand_mean=True,
mano_hand_side='right',
mano_template_root='mano/models',
mano_scale_milimeter=False,
reg_inp_encs=['hm','dep'],
reg_inp_enc_res=64,
reg_niter=10,
reg_nfeats=2048,
njoints=21,
):
super(NetMano, self).__init__()
self.reg_inp_encs = reg_inp_encs
self.ncomps = mano_ncomps
self.render_res = reg_inp_enc_res
self.reg_ntheta = 3 + mano_ncomps + 10 # 3 rots, 6 ncomps, 10 betas = 19
enc_ch = len(reg_inp_encs) * 256
self.enc_conv = nn.Conv2d(enc_ch, 256, kernel_size=1, stride=1, bias=True)
self.enc_encoder = EncEncoder(inp_ch=256, out_ch=reg_nfeats, name='encenc')
self.pred_ch = njoints + 1 # njoints heatmap + 1 depth
self.pred_conv = nn.Conv2d(self.pred_ch, 256, kernel_size=1, stride=1, bias=True)
self.pred_encoder = EncEncoder(inp_ch=256, out_ch=reg_nfeats, name='predenc')
self.leaky_relu = nn.LeakyReLU(inplace=True)
self.bn = nn.BatchNorm2d(256)
fc_layers = [
reg_nfeats + self.reg_ntheta, # 2048 + 19
1024,
1024,
self.reg_ntheta # 19
]
use_dropout = [True, True, False]
drop_prob = [0.3, 0.3, 0.3]
self.regressor = ThetaRegressor(
fc_layers=fc_layers,
use_dropout=use_dropout,
drop_prob=drop_prob,
ncomps=mano_ncomps,
iterations=reg_niter,
)
self.manolayer = ManoLayer(
root_idx=mano_root_idx,
flat_hand_mean=mano_flat_hand_mean,
ncomps=mano_ncomps,
hand_side=mano_hand_side,
template_root=mano_template_root,
scale_milimeter=mano_scale_milimeter,
)
template_pth = os.path.join(mano_template_root, 'HAND_TEMPLATE_RIGHT.obj')
self.template = nr.Mesh.fromobj(template_pth)
self.manorender = ManoRender()
def forward(self, encodings, hms, deps, poses_root, Ks, bbxs):
### prepare encodings
batch_size = hms.shape[0]
enc_list = []
for key in self.reg_inp_encs:
enc_list.append(encodings[key])
enc = torch.cat(enc_list, dim=1) #(B, 256x2, 64, 64)
enc = self.enc_conv(enc) #(B, 256, 64, 64)
enc = self.bn(enc)
enc = self.leaky_relu(enc)
enc = self.enc_encoder(enc) #(B, 2048)
x = torch.cat((hms, deps), dim=1) #(B, 22, 64, 64)
x = self.pred_conv(x) #(B, 256, 64, 64)
x = self.bn(x)
x = self.leaky_relu(x)
x = self.pred_encoder(x) #(B, 2048)
x = x + enc
thetas = self.regressor(x)
theta = thetas[-1]
th_pose_coeffs = theta[:, :(3+self.ncomps)] #(B, 0:9)
th_betas = theta[:, (3+self.ncomps):] #(B, 9:19)
verts, joints = self.manolayer(th_pose_coeffs, th_betas, poses_root)
faces = self.template.faces.unsqueeze(0).repeat((batch_size, 1, 1))
rendered = self.manorender(
vertices=verts,
faces=faces,
Ks=Ks,
bbxs=bbxs,
far=100.0,
image_size=self.render_res,
orig_size=self.render_res,
)
return verts, joints, rendered | mano/net_mano.py | import os
import numpy as np
import torch
import torch.nn as nn
from torch.nn import Module
import neural_renderer as nr
from pose.manopth.manopth.manolayer import ManoLayer
from .theta_regressor import ThetaRegressor
class EncEncoder(nn.Module):
def __init__(self, inp_ch, out_ch, name='enc'):
super(EncEncoder, self).__init__()
self.name=name
self.inp_ch = inp_ch
self.out_ch = out_ch
self.encenc = nn.Sequential()
# (64x64 -> 1x1)
ds_reslu = [
32,
16,
8,
4,
2,
1,
]
for reslu in ds_reslu:
if reslu == 4 or reslu == 2:
mid_ch = inp_ch * 2
elif reslu == 1:
mid_ch = self.out_ch
else:
mid_ch = inp_ch
kernel_size = 3
self.encenc.add_module(
name = self.name + '_conv_{}'.format(reslu),
module = nn.Conv2d(
inp_ch,
mid_ch,
kernel_size=kernel_size,
stride=2,
padding=(kernel_size-1)//2,
bias=True
)
)
if reslu != 1:
self.encenc.add_module(
name = self.name + '_bn_{}'.format(reslu),
module = nn.BatchNorm2d(mid_ch)
)
self.encenc.add_module(
name = self.name + '_relu_{}'.format(reslu),
module = nn.LeakyReLU(inplace=True)
)
inp_ch = mid_ch
def forward(self, x):
batch_size = x.shape[0]
return self.encenc(x).reshape(batch_size, -1) #(B, 2048)
class ManoRender(nn.Module):
def __init__(
self,
fill_back=True,
):
super(ManoRender, self).__init__()
self.fill_back=fill_back
''' Render Depth '''
def forward(
self,
vertices,
faces,
Ks=None,
Rs=None,
ts=None,
dist_coeffs=None,
bbxs=None,
image_size=64,
orig_size=64,
anti_aliasing=False,
far = 100.0,
):
# batch_size = vertices.shape(0)
if self.fill_back:
faces = torch.cat(
(
faces,
faces[:, :, list(reversed(range(faces.shape[-1])))]
),
dim=1,
).to(vertices.device).detach()
if Ks is None:
print("K must not None if render depthmap")
raise Exception()
if Rs is None:
Rs = torch.Tensor(
[
[1,0,0],
[0,1,0],
[0,0,1],
]
).view((1,3,3)).to(vertices.device)
if ts is None:
ts = torch.Tensor([0,0,0]).view((1,3)).to(vertices.device)
if dist_coeffs is None:
dist_coeffs = torch.Tensor([[0., 0., 0., 0., 0.]]).to(vertices.device)
''' xyz -> uvd '''
vertices = self.projection(
vertices, Ks, Rs, ts, dist_coeffs, orig_size, bbxs=bbxs
)
faces = nr.vertices_to_faces(vertices, faces)
# rasteriation
rast = nr.rasterize_depth(faces, image_size, anti_aliasing, far=far)
# normalize to 0~1
rend = self.normalize_depth(rast, far=far)
return rend
def normalize_depth(self, img, far):
img_inf = torch.eq(img, far * torch.ones_like(img)).type(torch.float32) #Bool Tensor
img_ok = 1-img_inf #Bool Tensor
img_no_back = img_ok * img #Float Tensor
img_max = img_no_back.max(dim=1,keepdim=True)[0] #batch of max value
img_max = img_max.max(dim=2,keepdim=True)[0]
img_min = img.min(dim=1,keepdim = True)[0] #batch of min values
img_min = img_min.min(dim=2,keepdim = True)[0]
new_depth = (img_max - img)/(img_max - img_min)
new_depth = torch.max(new_depth, torch.zeros_like(new_depth))
new_depth = torch.min(new_depth, torch.ones_like(new_depth))
return new_depth
def projection(
self,
vertices,
Ks,
Rs,
ts,
dist_coeffs,
orig_size,
bbxs=None,
eps=1e-9,
):
'''
Calculate projective transformation of vertices given a projection matrix
Input parameters:
K: batch_size * 3 * 3 intrinsic camera matrix
R, t: batch_size * 3 * 3, batch_size * 1 * 3 extrinsic calibration parameters
dist_coeffs: vector of distortion coefficients
orig_size: original size of image captured by the camera
Returns: For each point [X,Y,Z] in world coordinates [u,v,z]
where u,v are the coordinates of the projection in
pixels and z is the depth
Modified by <NAME>: add bbx
'''
# instead of P*x we compute x'*P'
vertices = torch.matmul(vertices, Rs.transpose(2,1)) + ts
x, y, z = vertices[:, :, 0], vertices[:, :, 1], vertices[:, :, 2]
x_ = x / (z + eps)
y_ = y / (z + eps)
# Get distortion coefficients from vector
k1 = dist_coeffs[:, None, 0]
k2 = dist_coeffs[:, None, 1]
p1 = dist_coeffs[:, None, 2]
p2 = dist_coeffs[:, None, 3]
k3 = dist_coeffs[:, None, 4]
# we use x_ for x' and x__ for x'' etc.
r = torch.sqrt(x_ ** 2 + y_ ** 2)
x__ = x_*(1 + k1*(r**2) + k2*(r**4) + k3*(r**6)) + 2*p1*x_*y_ + p2*(r**2 + 2*x_**2)
y__ = y_*(1 + k1*(r**2) + k2*(r**4) + k3 *(r**6)) + p1*(r**2 + 2*y_**2) + 2*p2*x_*y_
vertices = torch.stack([x__, y__, torch.ones_like(z)], dim=-1)
vertices = torch.matmul(vertices, Ks.transpose(1,2))
u, v = vertices[:, :, 0], vertices[:, :, 1]
if bbxs is not None:
u = (u - bbxs[:,0:1])/bbxs[:,2:3] * orig_size
v = (v - bbxs[:,1:2])/bbxs[:,3:4] * orig_size
# map u,v from [0, img_size] to [-1, 1] to use by the renderer
v = orig_size - v
u = 2 * (u - orig_size / 2.) / orig_size
v = 2 * (v - orig_size / 2.) / orig_size
vertices = torch.stack([u, v, z], dim=-1)
return vertices
class NetMano(nn.Module):
def __init__(
self,
mano_ncomps=6,
mano_root_idx=0,
mano_flat_hand_mean=True,
mano_hand_side='right',
mano_template_root='mano/models',
mano_scale_milimeter=False,
reg_inp_encs=['hm','dep'],
reg_inp_enc_res=64,
reg_niter=10,
reg_nfeats=2048,
njoints=21,
):
super(NetMano, self).__init__()
self.reg_inp_encs = reg_inp_encs
self.ncomps = mano_ncomps
self.render_res = reg_inp_enc_res
self.reg_ntheta = 3 + mano_ncomps + 10 # 3 rots, 6 ncomps, 10 betas = 19
enc_ch = len(reg_inp_encs) * 256
self.enc_conv = nn.Conv2d(enc_ch, 256, kernel_size=1, stride=1, bias=True)
self.enc_encoder = EncEncoder(inp_ch=256, out_ch=reg_nfeats, name='encenc')
self.pred_ch = njoints + 1 # njoints heatmap + 1 depth
self.pred_conv = nn.Conv2d(self.pred_ch, 256, kernel_size=1, stride=1, bias=True)
self.pred_encoder = EncEncoder(inp_ch=256, out_ch=reg_nfeats, name='predenc')
self.leaky_relu = nn.LeakyReLU(inplace=True)
self.bn = nn.BatchNorm2d(256)
fc_layers = [
reg_nfeats + self.reg_ntheta, # 2048 + 19
1024,
1024,
self.reg_ntheta # 19
]
use_dropout = [True, True, False]
drop_prob = [0.3, 0.3, 0.3]
self.regressor = ThetaRegressor(
fc_layers=fc_layers,
use_dropout=use_dropout,
drop_prob=drop_prob,
ncomps=mano_ncomps,
iterations=reg_niter,
)
self.manolayer = ManoLayer(
root_idx=mano_root_idx,
flat_hand_mean=mano_flat_hand_mean,
ncomps=mano_ncomps,
hand_side=mano_hand_side,
template_root=mano_template_root,
scale_milimeter=mano_scale_milimeter,
)
template_pth = os.path.join(mano_template_root, 'HAND_TEMPLATE_RIGHT.obj')
self.template = nr.Mesh.fromobj(template_pth)
self.manorender = ManoRender()
def forward(self, encodings, hms, deps, poses_root, Ks, bbxs):
### prepare encodings
batch_size = hms.shape[0]
enc_list = []
for key in self.reg_inp_encs:
enc_list.append(encodings[key])
enc = torch.cat(enc_list, dim=1) #(B, 256x2, 64, 64)
enc = self.enc_conv(enc) #(B, 256, 64, 64)
enc = self.bn(enc)
enc = self.leaky_relu(enc)
enc = self.enc_encoder(enc) #(B, 2048)
x = torch.cat((hms, deps), dim=1) #(B, 22, 64, 64)
x = self.pred_conv(x) #(B, 256, 64, 64)
x = self.bn(x)
x = self.leaky_relu(x)
x = self.pred_encoder(x) #(B, 2048)
x = x + enc
thetas = self.regressor(x)
theta = thetas[-1]
th_pose_coeffs = theta[:, :(3+self.ncomps)] #(B, 0:9)
th_betas = theta[:, (3+self.ncomps):] #(B, 9:19)
verts, joints = self.manolayer(th_pose_coeffs, th_betas, poses_root)
faces = self.template.faces.unsqueeze(0).repeat((batch_size, 1, 1))
rendered = self.manorender(
vertices=verts,
faces=faces,
Ks=Ks,
bbxs=bbxs,
far=100.0,
image_size=self.render_res,
orig_size=self.render_res,
)
return verts, joints, rendered | 0.905331 | 0.400749 |
from wtforms import DateTimeField, Form, IntegerField, StringField
from wtforms.validators import DataRequired, Length, ValidationError
def valid_hours(form, field):
"""Ensures the minutes are in a 30-minute interval."""
if field.data.minute % 30 != 0:
raise ValidationError(
'Reservations can be made at 30-minute increments only')
class ReservationForm(Form):
resource_id = IntegerField(validators=[DataRequired()])
starts_at = DateTimeField(
format='%Y-%m-%dT%H:%M', validators=[DataRequired(), valid_hours])
ends_at = DateTimeField(
format='%Y-%m-%dT%H:%M', validators=[DataRequired(), valid_hours])
reserved_by = StringField(validators=[DataRequired()])
title = StringField(
validators=[DataRequired(), Length(max=255)])
description = StringField(validators=[Length(max=1024 * 8)])
# FIXME: Not sure why zero value causes validation errors
recurring_frequency = IntegerField(validators=[])
recurring_count = IntegerField(validators=[])
def validate(self):
validators = [
super(Form, self).validate,
self.validate_datetimes,
self.validate_recurring_info,
]
return all([v() for v in validators])
def validate_datetimes(self):
if self.starts_at.errors:
return False
if self.ends_at.errors:
return False
if self.starts_at.data >= self.ends_at.data:
self.starts_at.errors.append(
'The start datetime must be earlier than the end datetime')
return False
return True
def validate_recurring_info(self):
if self.recurring_frequency.errors:
return False
if self.recurring_frequency.data > 0:
if self.recurring_count.errors:
return False
if self.recurring_count.data < 2:
self.recurring_count.errors.append(
'Must be at least two')
return False
return True | koob/forms.py | from wtforms import DateTimeField, Form, IntegerField, StringField
from wtforms.validators import DataRequired, Length, ValidationError
def valid_hours(form, field):
"""Ensures the minutes are in a 30-minute interval."""
if field.data.minute % 30 != 0:
raise ValidationError(
'Reservations can be made at 30-minute increments only')
class ReservationForm(Form):
resource_id = IntegerField(validators=[DataRequired()])
starts_at = DateTimeField(
format='%Y-%m-%dT%H:%M', validators=[DataRequired(), valid_hours])
ends_at = DateTimeField(
format='%Y-%m-%dT%H:%M', validators=[DataRequired(), valid_hours])
reserved_by = StringField(validators=[DataRequired()])
title = StringField(
validators=[DataRequired(), Length(max=255)])
description = StringField(validators=[Length(max=1024 * 8)])
# FIXME: Not sure why zero value causes validation errors
recurring_frequency = IntegerField(validators=[])
recurring_count = IntegerField(validators=[])
def validate(self):
validators = [
super(Form, self).validate,
self.validate_datetimes,
self.validate_recurring_info,
]
return all([v() for v in validators])
def validate_datetimes(self):
if self.starts_at.errors:
return False
if self.ends_at.errors:
return False
if self.starts_at.data >= self.ends_at.data:
self.starts_at.errors.append(
'The start datetime must be earlier than the end datetime')
return False
return True
def validate_recurring_info(self):
if self.recurring_frequency.errors:
return False
if self.recurring_frequency.data > 0:
if self.recurring_count.errors:
return False
if self.recurring_count.data < 2:
self.recurring_count.errors.append(
'Must be at least two')
return False
return True | 0.719876 | 0.302211 |
import sys
import types
class Inspector:
"""
Inspect frames and produces snapshots with the state.
"""
def __init__(self):
"""
Initialize the inspector and the ordered id generators.
"""
self.ordered_id_count = 0
self.ordered_ids = {}
self.previous_ordered_ids = {}
# types that can be converted to a JSON string
STRING_LIKE_TYPES = (bool, complex, str, type(None))
# types that can be converted to a JSON number (within javascript's restriction of +-2^53 - 1)
NUMBER_LIKE_TYPES = (int, float)
def inspect(self, frame: types.FrameType, event: str, args, exec_frame: types.FrameType):
"""
Inspect the frame and its event to build a snapshot with state.
- frame: `FrameType`: frame where the state data will be extracted from
- event: `str`: frame event type, one of: call, line, exception or return
- args: `any | any[t]`: return object if event is return or exception data if event is exception
- exec_frame: `FrameType`: frame of the exec() call, it is used to know which frame is the base frame
- return `dict`: the snapshot
"""
self.previous_ordered_ids = self.ordered_ids
self.ordered_ids = {}
frames = self._collect_frames(frame, exec_frame)
stack = self._create_stack(frames)
heap = self._create_heap(stack, frames, event, args)
return {'event': event, 'stack': stack, 'heap': heap}
def _collect_frames(self, frame: types.FrameType, stop_frame: types.FrameType):
"""
Collect all frames of the same file until a stop frame is found.
- frame: `FrameType`: frame to start collecting parents
- stop_frame: `FrameType`: stops the collecting frame if stop_frame is found
- return `FrameType[]`: collected frames
"""
filename = frame.f_code.co_filename
frames = []
while frame is not None and frame != stop_frame:
if frame.f_code.co_filename == filename:
frames.append(frame)
frame = frame.f_back
frames.reverse()
return frames
def _create_stack(self, frames: list):
"""
Creates a list of dicts with the names and first lines of the the received frames
- frames `FrameType[]` collected frames
- return `dict`: collected stack data
"""
return [{'line': frame.f_lineno - 1, 'name': frame.f_code.co_name} for frame in frames]
def _create_heap(self, stack: list, frames: list, event: str, args):
"""
Create and populate the heap, and also set the members of stack scopes.
- stack `dict`: collected stack data from frames
- frames `FrameType[]` collected frames
- event: `str`: frame event type, one of: call, line, exception or return
- args: `any | any[t]`: return object if event is return or exception data if event is exception
- return `dict`: heap containing objects
"""
heap = {}
module = frames[-1].f_globals['__name__']
classes = set()
for scope, frame in zip(stack, frames):
variables = frame.f_locals
scope['members'] = [
{'key': key, 'value': self._inspect_object(heap, variables[key], classes, module)}
for key, value in variables.items() if not key.startswith('_')
]
if event == 'return' and len(stack) > 1:
stack[-1]['members'].append({'key': '#return#', 'value': self._inspect_object(heap, args, classes, module)})
elif event == 'exception':
stack[-1]['members'].append({'key': '#exception#', 'value': repr(args[1])})
return heap
def _inspect_object(self, heap: dict, obj, classes: set, module: str):
"""
Recursively inspect objects in the heap.
String and Number like objects are transformed in str or int.
Complex objects are transformed in dictionaries that contain information of their type and members and added to
the snapshot, then their references are returned as a list.
- heap: `dict`: heap dict to be filled with obj information
- obj: `*any`: object to be processed
- classes: `set<str>`: set of user defined classes, which is used to known which objects shall be analyzed
- module: main module name, used to only save classes that where declared in it
- return `int | float | str | [str]`: the transformed value
"""
if isinstance(obj, Inspector.STRING_LIKE_TYPES):
return str(obj)
elif isinstance(obj, Inspector.NUMBER_LIKE_TYPES):
return obj if abs(obj) < 2 ** 53 else str(obj)
elif isinstance(obj, type):
if obj.__module__ == module:
classes.add(obj)
return str(obj)
id_ = str(id(obj))
if id_ in self.ordered_ids:
ordered_id = self.ordered_ids[id_]
elif id_ in self.previous_ordered_ids:
ordered_id = self.ordered_ids[id_] = self.previous_ordered_ids[id_]
else:
ordered_id = self.ordered_ids[id_] = self.ordered_id_count
self.ordered_id_count += 1
if ordered_id in heap:
return [ordered_id]
type_ = type(obj).__name__
category = 'other'
members = None
if isinstance(obj, (tuple, list, set)):
category = 'list' if not isinstance(obj, set) else 'set'
members = [*enumerate(obj)]
elif isinstance(obj, dict):
category = 'map'
members = [*obj.items()]
elif isinstance(obj, (*classes,)):
category = 'map'
members = [(key, value) for key, value in vars(obj).items() if not key.startswith('_')]
if members is not None: # known object type
# add object id to the heap before further inspections to avoid stack overflows
obj = heap[ordered_id] = {}
obj['id'] = ordered_id
obj['category'] = category
obj['type'] = type_
obj['members'] = [
{
'key': self._inspect_object(heap, key, classes, module),
'value': self._inspect_object(heap, value, classes, module)
}
for key, value in members
]
return [ordered_id]
else: # unknown object type
# instead of inspecting unknown objects, inspect their type only
return self._inspect_object(heap, type(obj), classes, module) | tracers/python/tracer/inspector.py | import sys
import types
class Inspector:
"""
Inspect frames and produces snapshots with the state.
"""
def __init__(self):
"""
Initialize the inspector and the ordered id generators.
"""
self.ordered_id_count = 0
self.ordered_ids = {}
self.previous_ordered_ids = {}
# types that can be converted to a JSON string
STRING_LIKE_TYPES = (bool, complex, str, type(None))
# types that can be converted to a JSON number (within javascript's restriction of +-2^53 - 1)
NUMBER_LIKE_TYPES = (int, float)
def inspect(self, frame: types.FrameType, event: str, args, exec_frame: types.FrameType):
"""
Inspect the frame and its event to build a snapshot with state.
- frame: `FrameType`: frame where the state data will be extracted from
- event: `str`: frame event type, one of: call, line, exception or return
- args: `any | any[t]`: return object if event is return or exception data if event is exception
- exec_frame: `FrameType`: frame of the exec() call, it is used to know which frame is the base frame
- return `dict`: the snapshot
"""
self.previous_ordered_ids = self.ordered_ids
self.ordered_ids = {}
frames = self._collect_frames(frame, exec_frame)
stack = self._create_stack(frames)
heap = self._create_heap(stack, frames, event, args)
return {'event': event, 'stack': stack, 'heap': heap}
def _collect_frames(self, frame: types.FrameType, stop_frame: types.FrameType):
"""
Collect all frames of the same file until a stop frame is found.
- frame: `FrameType`: frame to start collecting parents
- stop_frame: `FrameType`: stops the collecting frame if stop_frame is found
- return `FrameType[]`: collected frames
"""
filename = frame.f_code.co_filename
frames = []
while frame is not None and frame != stop_frame:
if frame.f_code.co_filename == filename:
frames.append(frame)
frame = frame.f_back
frames.reverse()
return frames
def _create_stack(self, frames: list):
"""
Creates a list of dicts with the names and first lines of the the received frames
- frames `FrameType[]` collected frames
- return `dict`: collected stack data
"""
return [{'line': frame.f_lineno - 1, 'name': frame.f_code.co_name} for frame in frames]
def _create_heap(self, stack: list, frames: list, event: str, args):
"""
Create and populate the heap, and also set the members of stack scopes.
- stack `dict`: collected stack data from frames
- frames `FrameType[]` collected frames
- event: `str`: frame event type, one of: call, line, exception or return
- args: `any | any[t]`: return object if event is return or exception data if event is exception
- return `dict`: heap containing objects
"""
heap = {}
module = frames[-1].f_globals['__name__']
classes = set()
for scope, frame in zip(stack, frames):
variables = frame.f_locals
scope['members'] = [
{'key': key, 'value': self._inspect_object(heap, variables[key], classes, module)}
for key, value in variables.items() if not key.startswith('_')
]
if event == 'return' and len(stack) > 1:
stack[-1]['members'].append({'key': '#return#', 'value': self._inspect_object(heap, args, classes, module)})
elif event == 'exception':
stack[-1]['members'].append({'key': '#exception#', 'value': repr(args[1])})
return heap
def _inspect_object(self, heap: dict, obj, classes: set, module: str):
"""
Recursively inspect objects in the heap.
String and Number like objects are transformed in str or int.
Complex objects are transformed in dictionaries that contain information of their type and members and added to
the snapshot, then their references are returned as a list.
- heap: `dict`: heap dict to be filled with obj information
- obj: `*any`: object to be processed
- classes: `set<str>`: set of user defined classes, which is used to known which objects shall be analyzed
- module: main module name, used to only save classes that where declared in it
- return `int | float | str | [str]`: the transformed value
"""
if isinstance(obj, Inspector.STRING_LIKE_TYPES):
return str(obj)
elif isinstance(obj, Inspector.NUMBER_LIKE_TYPES):
return obj if abs(obj) < 2 ** 53 else str(obj)
elif isinstance(obj, type):
if obj.__module__ == module:
classes.add(obj)
return str(obj)
id_ = str(id(obj))
if id_ in self.ordered_ids:
ordered_id = self.ordered_ids[id_]
elif id_ in self.previous_ordered_ids:
ordered_id = self.ordered_ids[id_] = self.previous_ordered_ids[id_]
else:
ordered_id = self.ordered_ids[id_] = self.ordered_id_count
self.ordered_id_count += 1
if ordered_id in heap:
return [ordered_id]
type_ = type(obj).__name__
category = 'other'
members = None
if isinstance(obj, (tuple, list, set)):
category = 'list' if not isinstance(obj, set) else 'set'
members = [*enumerate(obj)]
elif isinstance(obj, dict):
category = 'map'
members = [*obj.items()]
elif isinstance(obj, (*classes,)):
category = 'map'
members = [(key, value) for key, value in vars(obj).items() if not key.startswith('_')]
if members is not None: # known object type
# add object id to the heap before further inspections to avoid stack overflows
obj = heap[ordered_id] = {}
obj['id'] = ordered_id
obj['category'] = category
obj['type'] = type_
obj['members'] = [
{
'key': self._inspect_object(heap, key, classes, module),
'value': self._inspect_object(heap, value, classes, module)
}
for key, value in members
]
return [ordered_id]
else: # unknown object type
# instead of inspecting unknown objects, inspect their type only
return self._inspect_object(heap, type(obj), classes, module) | 0.646349 | 0.542197 |
from ....lo.ui.dialogs.address_book_source_pilot import AddressBookSourcePilot as AddressBookSourcePilot
from ....lo.ui.dialogs.common_file_picker_element_ids import CommonFilePickerElementIds as CommonFilePickerElementIds
from ....lo.ui.dialogs.control_actions import ControlActions as ControlActions
from ....lo.ui.dialogs.dialog_closed_event import DialogClosedEvent as DialogClosedEvent
from ....lo.ui.dialogs.executable_dialog_exception import ExecutableDialogException as ExecutableDialogException
from ....lo.ui.dialogs.executable_dialog_results import ExecutableDialogResults as ExecutableDialogResults
from ....lo.ui.dialogs.extended_file_picker_element_ids import ExtendedFilePickerElementIds as ExtendedFilePickerElementIds
from ....lo.ui.dialogs.file_picker import FilePicker as FilePicker
from ....lo.ui.dialogs.file_picker_event import FilePickerEvent as FilePickerEvent
from ....lo.ui.dialogs.file_preview_image_formats import FilePreviewImageFormats as FilePreviewImageFormats
from ....lo.ui.dialogs.filter_options_dialog import FilterOptionsDialog as FilterOptionsDialog
from ....lo.ui.dialogs.folder_picker import FolderPicker as FolderPicker
from ....lo.ui.dialogs.listbox_control_actions import ListboxControlActions as ListboxControlActions
from ....lo.ui.dialogs.template_description import TemplateDescription as TemplateDescription
from ....lo.ui.dialogs.wizard import Wizard as Wizard
from ....lo.ui.dialogs.wizard_button import WizardButton as WizardButton
from ....lo.ui.dialogs.wizard_travel_type import WizardTravelType as WizardTravelType
from ....lo.ui.dialogs.x_asynchronous_executable_dialog import XAsynchronousExecutableDialog as XAsynchronousExecutableDialog
from ....lo.ui.dialogs.x_control_access import XControlAccess as XControlAccess
from ....lo.ui.dialogs.x_control_information import XControlInformation as XControlInformation
from ....lo.ui.dialogs.x_dialog_closed_listener import XDialogClosedListener as XDialogClosedListener
from ....lo.ui.dialogs.x_executable_dialog import XExecutableDialog as XExecutableDialog
from ....lo.ui.dialogs.x_file_picker import XFilePicker as XFilePicker
from ....lo.ui.dialogs.x_file_picker2 import XFilePicker2 as XFilePicker2
from ....lo.ui.dialogs.x_file_picker3 import XFilePicker3 as XFilePicker3
from ....lo.ui.dialogs.x_file_picker_control_access import XFilePickerControlAccess as XFilePickerControlAccess
from ....lo.ui.dialogs.x_file_picker_listener import XFilePickerListener as XFilePickerListener
from ....lo.ui.dialogs.x_file_picker_notifier import XFilePickerNotifier as XFilePickerNotifier
from ....lo.ui.dialogs.x_file_preview import XFilePreview as XFilePreview
from ....lo.ui.dialogs.x_filter_group_manager import XFilterGroupManager as XFilterGroupManager
from ....lo.ui.dialogs.x_filter_manager import XFilterManager as XFilterManager
from ....lo.ui.dialogs.x_folder_picker import XFolderPicker as XFolderPicker
from ....lo.ui.dialogs.x_folder_picker2 import XFolderPicker2 as XFolderPicker2
from ....lo.ui.dialogs.xslt_filter_dialog import XSLTFilterDialog as XSLTFilterDialog
from ....lo.ui.dialogs.x_wizard import XWizard as XWizard
from ....lo.ui.dialogs.x_wizard_controller import XWizardController as XWizardController
from ....lo.ui.dialogs.x_wizard_page import XWizardPage as XWizardPage | ooobuild/csslo/ui/dialogs/__init__.py | from ....lo.ui.dialogs.address_book_source_pilot import AddressBookSourcePilot as AddressBookSourcePilot
from ....lo.ui.dialogs.common_file_picker_element_ids import CommonFilePickerElementIds as CommonFilePickerElementIds
from ....lo.ui.dialogs.control_actions import ControlActions as ControlActions
from ....lo.ui.dialogs.dialog_closed_event import DialogClosedEvent as DialogClosedEvent
from ....lo.ui.dialogs.executable_dialog_exception import ExecutableDialogException as ExecutableDialogException
from ....lo.ui.dialogs.executable_dialog_results import ExecutableDialogResults as ExecutableDialogResults
from ....lo.ui.dialogs.extended_file_picker_element_ids import ExtendedFilePickerElementIds as ExtendedFilePickerElementIds
from ....lo.ui.dialogs.file_picker import FilePicker as FilePicker
from ....lo.ui.dialogs.file_picker_event import FilePickerEvent as FilePickerEvent
from ....lo.ui.dialogs.file_preview_image_formats import FilePreviewImageFormats as FilePreviewImageFormats
from ....lo.ui.dialogs.filter_options_dialog import FilterOptionsDialog as FilterOptionsDialog
from ....lo.ui.dialogs.folder_picker import FolderPicker as FolderPicker
from ....lo.ui.dialogs.listbox_control_actions import ListboxControlActions as ListboxControlActions
from ....lo.ui.dialogs.template_description import TemplateDescription as TemplateDescription
from ....lo.ui.dialogs.wizard import Wizard as Wizard
from ....lo.ui.dialogs.wizard_button import WizardButton as WizardButton
from ....lo.ui.dialogs.wizard_travel_type import WizardTravelType as WizardTravelType
from ....lo.ui.dialogs.x_asynchronous_executable_dialog import XAsynchronousExecutableDialog as XAsynchronousExecutableDialog
from ....lo.ui.dialogs.x_control_access import XControlAccess as XControlAccess
from ....lo.ui.dialogs.x_control_information import XControlInformation as XControlInformation
from ....lo.ui.dialogs.x_dialog_closed_listener import XDialogClosedListener as XDialogClosedListener
from ....lo.ui.dialogs.x_executable_dialog import XExecutableDialog as XExecutableDialog
from ....lo.ui.dialogs.x_file_picker import XFilePicker as XFilePicker
from ....lo.ui.dialogs.x_file_picker2 import XFilePicker2 as XFilePicker2
from ....lo.ui.dialogs.x_file_picker3 import XFilePicker3 as XFilePicker3
from ....lo.ui.dialogs.x_file_picker_control_access import XFilePickerControlAccess as XFilePickerControlAccess
from ....lo.ui.dialogs.x_file_picker_listener import XFilePickerListener as XFilePickerListener
from ....lo.ui.dialogs.x_file_picker_notifier import XFilePickerNotifier as XFilePickerNotifier
from ....lo.ui.dialogs.x_file_preview import XFilePreview as XFilePreview
from ....lo.ui.dialogs.x_filter_group_manager import XFilterGroupManager as XFilterGroupManager
from ....lo.ui.dialogs.x_filter_manager import XFilterManager as XFilterManager
from ....lo.ui.dialogs.x_folder_picker import XFolderPicker as XFolderPicker
from ....lo.ui.dialogs.x_folder_picker2 import XFolderPicker2 as XFolderPicker2
from ....lo.ui.dialogs.xslt_filter_dialog import XSLTFilterDialog as XSLTFilterDialog
from ....lo.ui.dialogs.x_wizard import XWizard as XWizard
from ....lo.ui.dialogs.x_wizard_controller import XWizardController as XWizardController
from ....lo.ui.dialogs.x_wizard_page import XWizardPage as XWizardPage | 0.294519 | 0.031889 |
import numpy
from ..baseclass import Dist
from .. import evaluation, approximation
class Arctan(Dist):
"""
Arc-Tangent.
Args:
dist (Dist): Distribution to perform transformation on.
Example:
>>> distribution = chaospy.Arctan(chaospy.Uniform(-0.5, 0.5))
>>> print(distribution)
Arctan(Uniform(lower=-0.5, upper=0.5))
>>> q = numpy.linspace(0, 1, 6)[1:-1]
>>> print(numpy.around(distribution.inv(q), 4))
[-0.2915 -0.0997 0.0997 0.2915]
>>> print(numpy.around(distribution.fwd(distribution.inv(q)), 4))
[0.2 0.4 0.6 0.8]
>>> print(numpy.around(distribution.pdf(distribution.inv(q)), 4))
[1.09 1.01 1.01 1.09]
>>> print(numpy.around(distribution.sample(4), 4))
[ 0.1524 -0.3675 0.4231 -0.0178]
>>> print(numpy.around(distribution.mom(2), 4))
0.076
"""
def __init__(self, dist):
assert isinstance(dist, Dist)
Dist.__init__(self, dist=dist)
def _pdf(self, x, dist, cache):
return evaluation.evaluate_density(
dist, numpy.tan(x), cache=cache)*(1+numpy.tan(x)**2)
def _cdf(self, x, dist, cache):
return evaluation.evaluate_forward(dist, numpy.tan(x), cache=cache)
def _ppf(self, q, dist, cache):
return numpy.arctan(evaluation.evaluate_inverse(dist, q, cache=cache))
def _bnd(self, x, dist, cache):
return numpy.arctan(evaluation.evaluate_bound(
dist, numpy.tan(x), cache=cache))
def _mom(self, x, dist, cache):
return approximation.approximate_moment(self, x)
def __len__(self):
return len(self.prm["dist"])
def __str__(self):
return self.__class__.__name__ + "(" + str(self.prm["dist"]) + ")"
def _fwd_cache(self, cache):
dist = evaluation.get_forward_cache(self.prm["dist"], cache)
if not isinstance(dist, Dist):
return numpy.arctan(dist)
return self
def _inv_cache(self, cache):
dist = evaluation.get_forward_cache(self.prm["dist"], cache)
if not isinstance(dist, Dist):
return numpy.tan(dist)
return self | chaospy/distributions/operators/arctan.py | import numpy
from ..baseclass import Dist
from .. import evaluation, approximation
class Arctan(Dist):
"""
Arc-Tangent.
Args:
dist (Dist): Distribution to perform transformation on.
Example:
>>> distribution = chaospy.Arctan(chaospy.Uniform(-0.5, 0.5))
>>> print(distribution)
Arctan(Uniform(lower=-0.5, upper=0.5))
>>> q = numpy.linspace(0, 1, 6)[1:-1]
>>> print(numpy.around(distribution.inv(q), 4))
[-0.2915 -0.0997 0.0997 0.2915]
>>> print(numpy.around(distribution.fwd(distribution.inv(q)), 4))
[0.2 0.4 0.6 0.8]
>>> print(numpy.around(distribution.pdf(distribution.inv(q)), 4))
[1.09 1.01 1.01 1.09]
>>> print(numpy.around(distribution.sample(4), 4))
[ 0.1524 -0.3675 0.4231 -0.0178]
>>> print(numpy.around(distribution.mom(2), 4))
0.076
"""
def __init__(self, dist):
assert isinstance(dist, Dist)
Dist.__init__(self, dist=dist)
def _pdf(self, x, dist, cache):
return evaluation.evaluate_density(
dist, numpy.tan(x), cache=cache)*(1+numpy.tan(x)**2)
def _cdf(self, x, dist, cache):
return evaluation.evaluate_forward(dist, numpy.tan(x), cache=cache)
def _ppf(self, q, dist, cache):
return numpy.arctan(evaluation.evaluate_inverse(dist, q, cache=cache))
def _bnd(self, x, dist, cache):
return numpy.arctan(evaluation.evaluate_bound(
dist, numpy.tan(x), cache=cache))
def _mom(self, x, dist, cache):
return approximation.approximate_moment(self, x)
def __len__(self):
return len(self.prm["dist"])
def __str__(self):
return self.__class__.__name__ + "(" + str(self.prm["dist"]) + ")"
def _fwd_cache(self, cache):
dist = evaluation.get_forward_cache(self.prm["dist"], cache)
if not isinstance(dist, Dist):
return numpy.arctan(dist)
return self
def _inv_cache(self, cache):
dist = evaluation.get_forward_cache(self.prm["dist"], cache)
if not isinstance(dist, Dist):
return numpy.tan(dist)
return self | 0.805058 | 0.459319 |
from typing import List
from adventofcode.util.helpers import solution_timer
from adventofcode.util.input_helpers import get_input_for_day
def is_abba_sequence(sequence):
for i in range(len(sequence) - 3):
if sequence[i] == sequence[i + 3] and sequence[i + 1] == sequence[i + 2] and sequence[i] != sequence[i + 1]:
return True
return False
def does_support_tls(ip):
abba_count = 0
inside_brackets = False
for i in range(len(ip)):
if ip[i] == "[":
inside_brackets = True
elif ip[i] == "]":
inside_brackets = False
else:
if is_abba_sequence(ip[i : i + 4]):
if inside_brackets:
return False
abba_count += 1
return abba_count > 0
def get_aba_sequences(sequence):
aba_sequences = []
bab_sequences = []
inside_brackets = False
for i in range(len(sequence) - 2):
if sequence[i] == "[" or sequence[i + 1] == "[" or sequence[i + 2] == "[":
inside_brackets = True
continue
if sequence[i] == "]" or sequence[i + 1] == "]" or sequence[i + 2] == "]":
inside_brackets = False
continue
if sequence[i] == sequence[i + 2] and sequence[i] != sequence[i + 1]:
if inside_brackets:
bab_sequences.append(sequence[i : i + 3])
else:
aba_sequences.append(sequence[i : i + 3])
return aba_sequences, bab_sequences
def does_support_ssl(ip):
aba_sequences, bab_sequences = get_aba_sequences(ip)
for aba in aba_sequences:
for bab in bab_sequences:
if aba[0] == bab[1] and aba[1] == bab[0]:
return True
return False
@solution_timer(2016, 7, 1)
def part_one(input_data: List[str]):
tls_count = 0
for ip in input_data:
if does_support_tls(ip):
tls_count += 1
return tls_count
@solution_timer(2016, 7, 2)
def part_two(input_data: List[str]):
ssl_count = 0
for ip in input_data:
if does_support_ssl(ip):
ssl_count += 1
return ssl_count
if __name__ == "__main__":
data = get_input_for_day(2016, 7)
part_one(data)
part_two(data) | src/adventofcode/year_2016/day_07_2016.py | from typing import List
from adventofcode.util.helpers import solution_timer
from adventofcode.util.input_helpers import get_input_for_day
def is_abba_sequence(sequence):
for i in range(len(sequence) - 3):
if sequence[i] == sequence[i + 3] and sequence[i + 1] == sequence[i + 2] and sequence[i] != sequence[i + 1]:
return True
return False
def does_support_tls(ip):
abba_count = 0
inside_brackets = False
for i in range(len(ip)):
if ip[i] == "[":
inside_brackets = True
elif ip[i] == "]":
inside_brackets = False
else:
if is_abba_sequence(ip[i : i + 4]):
if inside_brackets:
return False
abba_count += 1
return abba_count > 0
def get_aba_sequences(sequence):
aba_sequences = []
bab_sequences = []
inside_brackets = False
for i in range(len(sequence) - 2):
if sequence[i] == "[" or sequence[i + 1] == "[" or sequence[i + 2] == "[":
inside_brackets = True
continue
if sequence[i] == "]" or sequence[i + 1] == "]" or sequence[i + 2] == "]":
inside_brackets = False
continue
if sequence[i] == sequence[i + 2] and sequence[i] != sequence[i + 1]:
if inside_brackets:
bab_sequences.append(sequence[i : i + 3])
else:
aba_sequences.append(sequence[i : i + 3])
return aba_sequences, bab_sequences
def does_support_ssl(ip):
aba_sequences, bab_sequences = get_aba_sequences(ip)
for aba in aba_sequences:
for bab in bab_sequences:
if aba[0] == bab[1] and aba[1] == bab[0]:
return True
return False
@solution_timer(2016, 7, 1)
def part_one(input_data: List[str]):
tls_count = 0
for ip in input_data:
if does_support_tls(ip):
tls_count += 1
return tls_count
@solution_timer(2016, 7, 2)
def part_two(input_data: List[str]):
ssl_count = 0
for ip in input_data:
if does_support_ssl(ip):
ssl_count += 1
return ssl_count
if __name__ == "__main__":
data = get_input_for_day(2016, 7)
part_one(data)
part_two(data) | 0.471467 | 0.396535 |
from abc import ABC, abstractmethod
from flask import render_template
import re
import bleach
class Element(ABC):
template_options = {}
def __init__(self, key, text):
self.key = key
self.text = text
super().__init__()
@property
@abstractmethod
def html_template(self):
pass
def render_html(self):
return render_template(self.html_template, **self.template_options)
@abstractmethod
def parse(self):
pass
class HeadElement(Element):
@property
@abstractmethod
def head(self):
pass
class BlockElement(HeadElement):
def __init__(self, key, text):
self.elements = []
self.elements.append(text)
super().__init__(key, text)
@property
@abstractmethod
def foot(self):
pass
def add_element(self, text):
self.elements.append(text)
def strip_tags(self):
self.elements[0] = self.elements[0].replace(self.head + "\n", "", 1)
self.elements[-1] = "".join(self.elements[-1].rsplit("\n" + self.foot, 1))
class Geþeodan(Element):
html_template = "getheodan.html"
def parse(self):
regex = re.compile("\[GEÞEODAN :: (.*?)\]")
geþeodan_string = regex.search(self.text.strip()).group(1)
if "::" in geþeodan_string:
geþeodan_uri, geþeodan_text = geþeodan_string.split("::")
else:
geþeodan_uri = geþeodan_string
geþeodan_text = geþeodan_string
self.template_options = {
"uri": geþeodan_uri.strip(),
"text": geþeodan_text.strip(),
}
@staticmethod
def match(text):
regex = re.compile("\[GEÞEODAN :: (.*?)\]")
if regex.search(str(text)):
return True
return False
class Frætwe(Element):
html_template = "fraetwe.html"
def parse(self):
decorators = ["BRÆSNA", "GEAP", "GÁST", "REGOL", "HEAFOD"]
regex = re.compile("\[FRÆTWE :: (.*? :: .*?)\]")
decorator, text = map(
str.strip, regex.search(self.text.strip()).group(1).split("::")
)
if decorator in decorators:
self.template_options = {"decorator": decorator, "text": text.strip()}
@staticmethod
def match(text):
regex = re.compile("\[FRÆTWE :: (.*? :: .*?)\]")
if regex.search(str(text)):
return True
return False
class Biliþ(HeadElement):
html_template = "bilith.html"
head = "[BILIÞ]"
def parse(self):
regex = "\[(.*?)\]"
image_definition = self.text.split("\n")[1]
image_definition = re.search(regex, image_definition).group(1)
image_uri = ""
image_alt = ""
if "::" in image_definition:
image_uri, image_alt = image_definition.split("::")
else:
image_uri = image_definition
self.template_options = {
"lim_key": self.key,
"image_uri": image_uri.strip(),
"image_alt": image_alt.strip(),
}
class Cunnungarc(HeadElement):
html_template = "cunnungarc.html"
head = "[CUNNUNGARC]"
def parse(self):
def create_element_list(cunnungarc_string):
regex = "\[(.*?)\]$"
element_list = (
re.match(regex, cunnungarc_string.strip()).group(1).split("|")
)
return list(map(lambda x: bleach.clean(x.strip()), element_list))
# Discard the header tag
cunnungarc_rows = self.text.split("\n")
cunnungarc_rows.pop(0)
cunnungarc_rows = list(filter(lambda x: x != "", cunnungarc_rows))
cunnungarc_head = cunnungarc_rows.pop(0)
headers = create_element_list(cunnungarc_head)
rows = list(map(lambda x: create_element_list(x), cunnungarc_rows))
self.template_options = {"headers": headers, "rows": rows}
class Gewissung(BlockElement):
html_template = "gewissung.html"
head = "[GEWISSUNG]"
foot = "[GEWISSUNGENDE]"
def parse(self):
self.strip_tags()
self.template_options = {"elements": self.elements}
class Færeld(Element):
html_template = "faereld_statistic.html"
def parse(self):
regex = re.compile("\[FÆRELD :: (.*?) :: (.*?)\]")
scope = regex.search(self.text.strip()).group(1)
desired_statistic = regex.search(self.text.strip()).group(2)
if scope == "lim":
statistic = faereldSummary.get_lim_statistic(
self.key, desired_statistic.strip()
)
else:
statistic = faereldSummary.get_global_statistic(desired_statistic.strip())
self.template_options = {"statistic": statistic}
@staticmethod
def match(text):
regex = re.compile("\[FÆRELD :: (.*?)\]")
if regex.search(str(text)):
return True
return False
class Paragraph(Element):
html_template = "paragraph.html"
def parse(self):
element = bleach.clean(self.text)
regex = re.compile(
"(\[GEÞEODAN :: .*?\]|\[FRÆTWE :: .*? :: .*?\]|\[FÆRELD :: .*?\])"
)
paragraph_elements = re.split(regex, element)
paragraph = []
for paragraph_element in paragraph_elements:
if Geþeodan.match(paragraph_element):
geþeodan = Geþeodan(self.key, paragraph_element)
geþeodan.parse()
paragraph.append(geþeodan)
elif Frætwe.match(paragraph_element):
frætwe = Frætwe(self.key, paragraph_element)
frætwe.parse()
paragraph.append(frætwe)
elif Færeld.match(paragraph_element):
færeld = Færeld(self.key, paragraph_element)
færeld.parse()
paragraph.append(færeld)
else:
paragraph.append(paragraph_element)
self.template_options = {"paragraph": paragraph}
def render_html(self):
rendered_paragraph = ""
for paragraph_element in self.template_options["paragraph"]:
if isinstance(paragraph_element, Element):
rendered_paragraph += paragraph_element.render_html()
elif paragraph_element is not None:
rendered_paragraph += paragraph_element
self.template_options["paragraph"] = rendered_paragraph
return super().render_html()
class Parser(object):
def __init__(self, key, text, faereld):
self.key = key
self.text = text
global faereldSummary
faereldSummary = faereld
def parse(self):
elements = self.text.split("\n\n")
parsed_elements = []
gewissung_mode = False
gewissung_block = None
for element in elements:
ele_head = self._get_element_head(element)
if gewissung_mode:
ele_foot = self._get_element_foot(element)
if ele_foot.strip() == Gewissung.foot:
gewissung_block = "{0}\n\n{1}".format(
gewissung_block, element.replace(ele_foot, "")
)
gewissung = Gewissung(self.key, gewissung_block)
gewissung.parse()
parsed_elements.append(gewissung)
gewissung_mode = False
gewissung_block = None
else:
gewissung_block = "{0}\n\n{1}".format(gewissung_block, element)
else:
if ele_head.strip() == Biliþ.head:
biliþ = Biliþ(self.key, element)
biliþ.parse()
parsed_elements.append(biliþ)
elif ele_head.strip() == Cunnungarc.head:
cunnungarc = Cunnungarc(self.key, element)
cunnungarc.parse()
parsed_elements.append(cunnungarc)
elif ele_head.strip() == Gewissung.head:
gewissung_mode = True
gewissung_block = element.replace("{}\n".format(ele_head), "")
else:
paragraph = Paragraph(self.key, element)
paragraph.parse()
parsed_elements.append(paragraph)
return parsed_elements
def render_html(self):
html_elements = []
parsed_elements = self.parse()
for element in parsed_elements:
html_elements.append(element.render_html())
return "\n\n".join(html_elements)
def _get_element_head(self, element):
element_lines = element.strip().split("\n")
return element_lines[0]
def _get_element_foot(self, element):
element_lines = element.strip().split("\n")
return element_lines[-1] | hraew/parser.py | from abc import ABC, abstractmethod
from flask import render_template
import re
import bleach
class Element(ABC):
template_options = {}
def __init__(self, key, text):
self.key = key
self.text = text
super().__init__()
@property
@abstractmethod
def html_template(self):
pass
def render_html(self):
return render_template(self.html_template, **self.template_options)
@abstractmethod
def parse(self):
pass
class HeadElement(Element):
@property
@abstractmethod
def head(self):
pass
class BlockElement(HeadElement):
def __init__(self, key, text):
self.elements = []
self.elements.append(text)
super().__init__(key, text)
@property
@abstractmethod
def foot(self):
pass
def add_element(self, text):
self.elements.append(text)
def strip_tags(self):
self.elements[0] = self.elements[0].replace(self.head + "\n", "", 1)
self.elements[-1] = "".join(self.elements[-1].rsplit("\n" + self.foot, 1))
class Geþeodan(Element):
html_template = "getheodan.html"
def parse(self):
regex = re.compile("\[GEÞEODAN :: (.*?)\]")
geþeodan_string = regex.search(self.text.strip()).group(1)
if "::" in geþeodan_string:
geþeodan_uri, geþeodan_text = geþeodan_string.split("::")
else:
geþeodan_uri = geþeodan_string
geþeodan_text = geþeodan_string
self.template_options = {
"uri": geþeodan_uri.strip(),
"text": geþeodan_text.strip(),
}
@staticmethod
def match(text):
regex = re.compile("\[GEÞEODAN :: (.*?)\]")
if regex.search(str(text)):
return True
return False
class Frætwe(Element):
html_template = "fraetwe.html"
def parse(self):
decorators = ["BRÆSNA", "GEAP", "GÁST", "REGOL", "HEAFOD"]
regex = re.compile("\[FRÆTWE :: (.*? :: .*?)\]")
decorator, text = map(
str.strip, regex.search(self.text.strip()).group(1).split("::")
)
if decorator in decorators:
self.template_options = {"decorator": decorator, "text": text.strip()}
@staticmethod
def match(text):
regex = re.compile("\[FRÆTWE :: (.*? :: .*?)\]")
if regex.search(str(text)):
return True
return False
class Biliþ(HeadElement):
html_template = "bilith.html"
head = "[BILIÞ]"
def parse(self):
regex = "\[(.*?)\]"
image_definition = self.text.split("\n")[1]
image_definition = re.search(regex, image_definition).group(1)
image_uri = ""
image_alt = ""
if "::" in image_definition:
image_uri, image_alt = image_definition.split("::")
else:
image_uri = image_definition
self.template_options = {
"lim_key": self.key,
"image_uri": image_uri.strip(),
"image_alt": image_alt.strip(),
}
class Cunnungarc(HeadElement):
html_template = "cunnungarc.html"
head = "[CUNNUNGARC]"
def parse(self):
def create_element_list(cunnungarc_string):
regex = "\[(.*?)\]$"
element_list = (
re.match(regex, cunnungarc_string.strip()).group(1).split("|")
)
return list(map(lambda x: bleach.clean(x.strip()), element_list))
# Discard the header tag
cunnungarc_rows = self.text.split("\n")
cunnungarc_rows.pop(0)
cunnungarc_rows = list(filter(lambda x: x != "", cunnungarc_rows))
cunnungarc_head = cunnungarc_rows.pop(0)
headers = create_element_list(cunnungarc_head)
rows = list(map(lambda x: create_element_list(x), cunnungarc_rows))
self.template_options = {"headers": headers, "rows": rows}
class Gewissung(BlockElement):
html_template = "gewissung.html"
head = "[GEWISSUNG]"
foot = "[GEWISSUNGENDE]"
def parse(self):
self.strip_tags()
self.template_options = {"elements": self.elements}
class Færeld(Element):
html_template = "faereld_statistic.html"
def parse(self):
regex = re.compile("\[FÆRELD :: (.*?) :: (.*?)\]")
scope = regex.search(self.text.strip()).group(1)
desired_statistic = regex.search(self.text.strip()).group(2)
if scope == "lim":
statistic = faereldSummary.get_lim_statistic(
self.key, desired_statistic.strip()
)
else:
statistic = faereldSummary.get_global_statistic(desired_statistic.strip())
self.template_options = {"statistic": statistic}
@staticmethod
def match(text):
regex = re.compile("\[FÆRELD :: (.*?)\]")
if regex.search(str(text)):
return True
return False
class Paragraph(Element):
html_template = "paragraph.html"
def parse(self):
element = bleach.clean(self.text)
regex = re.compile(
"(\[GEÞEODAN :: .*?\]|\[FRÆTWE :: .*? :: .*?\]|\[FÆRELD :: .*?\])"
)
paragraph_elements = re.split(regex, element)
paragraph = []
for paragraph_element in paragraph_elements:
if Geþeodan.match(paragraph_element):
geþeodan = Geþeodan(self.key, paragraph_element)
geþeodan.parse()
paragraph.append(geþeodan)
elif Frætwe.match(paragraph_element):
frætwe = Frætwe(self.key, paragraph_element)
frætwe.parse()
paragraph.append(frætwe)
elif Færeld.match(paragraph_element):
færeld = Færeld(self.key, paragraph_element)
færeld.parse()
paragraph.append(færeld)
else:
paragraph.append(paragraph_element)
self.template_options = {"paragraph": paragraph}
def render_html(self):
rendered_paragraph = ""
for paragraph_element in self.template_options["paragraph"]:
if isinstance(paragraph_element, Element):
rendered_paragraph += paragraph_element.render_html()
elif paragraph_element is not None:
rendered_paragraph += paragraph_element
self.template_options["paragraph"] = rendered_paragraph
return super().render_html()
class Parser(object):
def __init__(self, key, text, faereld):
self.key = key
self.text = text
global faereldSummary
faereldSummary = faereld
def parse(self):
elements = self.text.split("\n\n")
parsed_elements = []
gewissung_mode = False
gewissung_block = None
for element in elements:
ele_head = self._get_element_head(element)
if gewissung_mode:
ele_foot = self._get_element_foot(element)
if ele_foot.strip() == Gewissung.foot:
gewissung_block = "{0}\n\n{1}".format(
gewissung_block, element.replace(ele_foot, "")
)
gewissung = Gewissung(self.key, gewissung_block)
gewissung.parse()
parsed_elements.append(gewissung)
gewissung_mode = False
gewissung_block = None
else:
gewissung_block = "{0}\n\n{1}".format(gewissung_block, element)
else:
if ele_head.strip() == Biliþ.head:
biliþ = Biliþ(self.key, element)
biliþ.parse()
parsed_elements.append(biliþ)
elif ele_head.strip() == Cunnungarc.head:
cunnungarc = Cunnungarc(self.key, element)
cunnungarc.parse()
parsed_elements.append(cunnungarc)
elif ele_head.strip() == Gewissung.head:
gewissung_mode = True
gewissung_block = element.replace("{}\n".format(ele_head), "")
else:
paragraph = Paragraph(self.key, element)
paragraph.parse()
parsed_elements.append(paragraph)
return parsed_elements
def render_html(self):
html_elements = []
parsed_elements = self.parse()
for element in parsed_elements:
html_elements.append(element.render_html())
return "\n\n".join(html_elements)
def _get_element_head(self, element):
element_lines = element.strip().split("\n")
return element_lines[0]
def _get_element_foot(self, element):
element_lines = element.strip().split("\n")
return element_lines[-1] | 0.693161 | 0.214527 |
from django import http
from django.template import RequestContext, loader
from django.http import HttpResponse
from django.conf import settings
from django.http import Http404
from what_apps.meta.alerts import local_red_alert
class ServerErrorMiddleware(object):
def get_most_recent_line_in_traceback_from_what_codebase(self, traceback_string):
traceback_lines = traceback_string.split('\n')
for line in traceback_lines:
if line is not None: #Tracebacks with no detail will be None. We don't care about those.
if len(line.split(settings.PROJECT_ROOT)) > 1: #See if we can split the string by the project root directory.
#...if so, this is the winner.
return line
def get_useful_info_from_traceback_line(self, line):
if line is not None: #Tracebacks with no detail will be None. We don't care about those.
remainder_of_the_line = line.split(settings.PROJECT_ROOT)[1] #The part of the line that comes after PROJECT ROOT
file = remainder_of_the_line.split('"')[0]
other_useful_info = remainder_of_the_line.split('"')[1][2:]
return file, other_useful_info
def process_exception(self, request, exception):
if not settings.DEBUG and not exception.__class__ is Http404:
traceback = self._get_traceback()
line = self.get_most_recent_line_in_traceback_from_what_codebase(traceback)
if line is None:
message = "A critical error has occured in production. No further information is available."
else:
file, other_useful_info = self.get_useful_info_from_traceback_line(line)
#Now we have the useful info. We need to tell the world.
message = "A critical error has occurred in production. %s. Likely culprit: %s on or near %s" % (str(exception), file, other_useful_info)
local_red_alert(message) #Raise the alarm!
return None #Use default exception handling.
def _get_traceback(self):
"""
Helper function to return the traceback as a string
From django snippet 638 by kcarnold
"""
import traceback
import sys
return '\n'.join(traceback.format_exception(*(sys.exc_info())))
def page_not_found(request):
t = loader.get_template('errors/404.html')
return http.HttpResponseNotFound(t.render(RequestContext(request, {'request_path': request.path})))
def server_error(request):
pass
return HttpResponse('Llamas') | what_apps/meta/errors.py | from django import http
from django.template import RequestContext, loader
from django.http import HttpResponse
from django.conf import settings
from django.http import Http404
from what_apps.meta.alerts import local_red_alert
class ServerErrorMiddleware(object):
def get_most_recent_line_in_traceback_from_what_codebase(self, traceback_string):
traceback_lines = traceback_string.split('\n')
for line in traceback_lines:
if line is not None: #Tracebacks with no detail will be None. We don't care about those.
if len(line.split(settings.PROJECT_ROOT)) > 1: #See if we can split the string by the project root directory.
#...if so, this is the winner.
return line
def get_useful_info_from_traceback_line(self, line):
if line is not None: #Tracebacks with no detail will be None. We don't care about those.
remainder_of_the_line = line.split(settings.PROJECT_ROOT)[1] #The part of the line that comes after PROJECT ROOT
file = remainder_of_the_line.split('"')[0]
other_useful_info = remainder_of_the_line.split('"')[1][2:]
return file, other_useful_info
def process_exception(self, request, exception):
if not settings.DEBUG and not exception.__class__ is Http404:
traceback = self._get_traceback()
line = self.get_most_recent_line_in_traceback_from_what_codebase(traceback)
if line is None:
message = "A critical error has occured in production. No further information is available."
else:
file, other_useful_info = self.get_useful_info_from_traceback_line(line)
#Now we have the useful info. We need to tell the world.
message = "A critical error has occurred in production. %s. Likely culprit: %s on or near %s" % (str(exception), file, other_useful_info)
local_red_alert(message) #Raise the alarm!
return None #Use default exception handling.
def _get_traceback(self):
"""
Helper function to return the traceback as a string
From django snippet 638 by kcarnold
"""
import traceback
import sys
return '\n'.join(traceback.format_exception(*(sys.exc_info())))
def page_not_found(request):
t = loader.get_template('errors/404.html')
return http.HttpResponseNotFound(t.render(RequestContext(request, {'request_path': request.path})))
def server_error(request):
pass
return HttpResponse('Llamas') | 0.263789 | 0.046812 |
import time
import tensorflow as tf
import kaggle_mnist_input as loader
import os
import csv
FLAGS = tf.app.flags.FLAGS
tf.app.flags.DEFINE_integer('training_epoch', 30, "training epoch")
tf.app.flags.DEFINE_integer('batch_size', 128, "batch size")
tf.app.flags.DEFINE_integer('validation_interval', 100, "validation interval")
tf.app.flags.DEFINE_float('dropout_keep_prob', 0.5, "dropout keep prob")
tf.app.flags.DEFINE_float('learning_rate', 0.001, "learning rate")
tf.app.flags.DEFINE_float('rms_decay', 0.9, "rms optimizer decay")
tf.app.flags.DEFINE_float('weight_decay', 0.0005, "l2 regularization weight decay")
tf.app.flags.DEFINE_string('train_path', '/tmp/train.csv', "path to download training data")
tf.app.flags.DEFINE_string('test_path', '/tmp/test.csv', "path to download test data")
tf.app.flags.DEFINE_integer('validation_size', 2000, "validation size in training data")
tf.app.flags.DEFINE_string('save_name', os.getcwd() + '/var.ckpt', "path to save variables")
tf.app.flags.DEFINE_boolean('is_train', True, "True for train, False for test")
tf.app.flags.DEFINE_string('test_result', 'result.csv', "test file path")
image_size = 28
image_channel = 1
label_cnt = 10
inputs = tf.placeholder("float", [None, image_size, image_size, image_channel])
labels = tf.placeholder("float", [None, label_cnt])
dropout_keep_prob = tf.placeholder("float", None)
learning_rate_ph = tf.placeholder("float", None)
# conv layer 1
conv1_weights = tf.Variable(tf.random_normal([7, 7, image_channel, 96], dtype=tf.float32, stddev=0.01))
conv1_biases = tf.Variable(tf.constant(0.0, shape=[96], dtype=tf.float32))
conv1 = tf.nn.conv2d(inputs, conv1_weights, [1, 3, 3, 1], padding='SAME')
conv1 = tf.nn.bias_add(conv1, conv1_biases)
conv1_relu = tf.nn.relu(conv1)
conv1_norm = tf.nn.local_response_normalization(conv1_relu, depth_radius=2, alpha=0.0001, beta=0.75, bias=1.0)
conv1_pool = tf.nn.max_pool(conv1_norm, ksize=[1, 2, 2, 1], strides=[1, 1, 1, 1], padding='VALID')
# conv layer 2
conv2_weights = tf.Variable(tf.random_normal([5, 5, 96, 256], dtype=tf.float32, stddev=0.01))
conv2_biases = tf.Variable(tf.constant(1.0, shape=[256], dtype=tf.float32))
conv2 = tf.nn.conv2d(conv1_pool, conv2_weights, [1, 1, 1, 1], padding='SAME')
conv2 = tf.nn.bias_add(conv2, conv2_biases)
conv2_relu = tf.nn.relu(conv2)
conv2_norm = tf.nn.local_response_normalization(conv2_relu)
conv2_pool = tf.nn.max_pool(conv2_norm, ksize=[1, 2, 2, 1], strides=[1, 1, 1, 1], padding='VALID')
# conv layer 3
conv3_weights = tf.Variable(tf.random_normal([3, 3, 256, 384], dtype=tf.float32, stddev=0.01))
conv3_biases = tf.Variable(tf.constant(0.0, shape=[384], dtype=tf.float32))
conv3 = tf.nn.conv2d(conv2_pool, conv3_weights, [1, 1, 1, 1], padding='SAME')
conv3 = tf.nn.bias_add(conv3, conv3_biases)
conv3_relu = tf.nn.relu(conv3)
# conv layer 4
conv4_weights = tf.Variable(tf.random_normal([3, 3, 384, 384], dtype=tf.float32, stddev=0.01))
conv4_biases = tf.Variable(tf.constant(1.0, shape=[384], dtype=tf.float32))
conv4 = tf.nn.conv2d(conv3_relu, conv4_weights, [1, 1, 1, 1], padding='SAME')
conv4 = tf.nn.bias_add(conv4, conv4_biases)
conv4_relu = tf.nn.relu(conv4)
# conv layer 5
conv5_weights = tf.Variable(tf.random_normal([3, 3, 384, 256], dtype=tf.float32, stddev=0.01))
conv5_biases = tf.Variable(tf.constant(1.0, shape=[256], dtype=tf.float32))
conv5 = tf.nn.conv2d(conv4_relu, conv5_weights, [1, 1, 1, 1], padding='SAME')
conv5 = tf.nn.bias_add(conv5, conv5_biases)
conv5_relu = tf.nn.relu(conv5)
conv5_pool = tf.nn.max_pool(conv5_relu, ksize=[1, 3, 3, 1], strides=[1, 2, 2, 1], padding='VALID')
# fc layer 1
fc1_weights = tf.Variable(tf.random_normal([256 * 3 * 3, 4096], dtype=tf.float32, stddev=0.01))
fc1_biases = tf.Variable(tf.constant(1.0, shape=[4096], dtype=tf.float32))
conv5_reshape = tf.reshape(conv5_pool, [-1, fc1_weights.get_shape().as_list()[0]])
fc1 = tf.matmul(conv5_reshape, fc1_weights)
fc1 = tf.nn.bias_add(fc1, fc1_biases)
fc1_relu = tf.nn.relu(fc1)
fc1_drop = tf.nn.dropout(fc1_relu, dropout_keep_prob)
# fc layer 2
fc2_weights = tf.Variable(tf.random_normal([4096, 4096], dtype=tf.float32, stddev=0.01))
fc2_biases = tf.Variable(tf.constant(1.0, shape=[4096], dtype=tf.float32))
fc2 = tf.matmul(fc1_drop, fc2_weights)
fc2 = tf.nn.bias_add(fc2, fc2_biases)
fc2_relu = tf.nn.relu(fc2)
fc2_drop = tf.nn.dropout(fc2_relu, dropout_keep_prob)
# fc layer 3 - output
fc3_weights = tf.Variable(tf.random_normal([4096, label_cnt], dtype=tf.float32, stddev=0.01))
fc3_biases = tf.Variable(tf.constant(1.0, shape=[label_cnt], dtype=tf.float32))
fc3 = tf.matmul(fc2_drop, fc3_weights)
logits = tf.nn.bias_add(fc3, fc3_biases)
# loss
loss = tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(logits, labels))
# l2 regularization
regularizers = (tf.nn.l2_loss(conv1_weights) + tf.nn.l2_loss(conv1_biases) +
tf.nn.l2_loss(conv2_weights) + tf.nn.l2_loss(conv2_biases) +
tf.nn.l2_loss(conv3_weights) + tf.nn.l2_loss(conv3_biases) +
tf.nn.l2_loss(conv4_weights) + tf.nn.l2_loss(conv4_biases) +
tf.nn.l2_loss(conv5_weights) + tf.nn.l2_loss(conv5_biases) +
tf.nn.l2_loss(fc1_weights) + tf.nn.l2_loss(fc1_biases) +
tf.nn.l2_loss(fc2_weights) + tf.nn.l2_loss(fc2_biases) +
tf.nn.l2_loss(fc3_weights) + tf.nn.l2_loss(fc3_biases))
loss += FLAGS.weight_decay * regularizers
# accuracy
predict = tf.argmax(logits, 1)
accuracy = tf.reduce_mean(tf.cast(tf.equal(predict, tf.argmax(labels, 1)), tf.float32))
# train
train = tf.train.RMSPropOptimizer(learning_rate_ph, FLAGS.rms_decay).minimize(loss)
# train = tf.train.MomentumOptimizer(learning_rate_ph, FLAGS.momentum).minimize(loss)
# session
init = tf.initialize_all_variables()
sess = tf.Session()
sess.run(init)
# tf saver
saver = tf.train.Saver()
if os.path.isfile(FLAGS.save_name):
saver.restore(sess, FLAGS.save_name)
total_start_time = time.time()
# begin training
if FLAGS.is_train:
# load mnist data
train_images, train_labels, train_range, validation_images, validation_labels, validation_indices = loader.load_mnist_train(
FLAGS.validation_size, FLAGS.batch_size)
total_train_len = len(train_images)
i = 0
learning_rate = FLAGS.learning_rate
for epoch in range(FLAGS.training_epoch):
if epoch % 10 == 0 and epoch > 0:
learning_rate /= 10
epoch_start_time = time.time()
for start, end in train_range:
batch_start_time = time.time()
trainX = train_images[start:end]
trainY = train_labels[start:end]
_, loss_result = sess.run([train, loss], feed_dict={inputs: trainX, labels: trainY,
dropout_keep_prob: FLAGS.dropout_keep_prob,
learning_rate_ph: learning_rate})
print('[%s][training][epoch %d, step %d exec %.2f seconds] [file: %5d ~ %5d / %5d] loss : %3.10f' % (
time.strftime("%Y-%m-%d %H:%M:%S"), epoch, i, (time.time() - batch_start_time), start, end,
total_train_len, loss_result))
if i % FLAGS.validation_interval == 0 and i > 0:
validation_start_time = time.time()
shuffle_indices = loader.shuffle_validation(validation_indices, FLAGS.batch_size)
validationX = validation_images[shuffle_indices]
validationY = validation_labels[shuffle_indices]
accuracy_result, loss_result = sess.run([accuracy, loss],
feed_dict={inputs: validationX, labels: validationY,
dropout_keep_prob: 1.0})
print('[%s][validation][epoch %d, step %d exec %.2f seconds] accuracy : %1.3f, loss : %3.10f' % (
time.strftime("%Y-%m-%d %H:%M:%S"), epoch, i, (time.time() - validation_start_time),
accuracy_result, loss_result))
i += 1
print("[%s][epoch exec %s seconds] epoch : %d" % (
time.strftime("%Y-%m-%d %H:%M:%S"), (time.time() - epoch_start_time), epoch))
saver.save(sess, FLAGS.save_name)
# begin test
else:
i = 1
test_images, test_ranges = loader.load_mnist_test(FLAGS.batch_size)
test_result_file = open(FLAGS.test_result, 'wb')
csv_writer = csv.writer(test_result_file)
csv_writer.writerow(['ImageId', 'Label'])
for file_start, file_end in test_ranges:
testX = test_images[file_start:file_end]
predict_label = sess.run(predict, feed_dict={inputs: testX, dropout_keep_prob: 1.0})
for cur_predict in predict_label:
csv_writer.writerow([i, cur_predict])
print('[Result %s: %s]' % (i, cur_predict))
i += 1
print("[%s][total exec %s seconds" % (time.strftime("%Y-%m-%d %H:%M:%S"), (time.time() - total_start_time))) | simple_kaggle_mnist_alexnet.py | import time
import tensorflow as tf
import kaggle_mnist_input as loader
import os
import csv
FLAGS = tf.app.flags.FLAGS
tf.app.flags.DEFINE_integer('training_epoch', 30, "training epoch")
tf.app.flags.DEFINE_integer('batch_size', 128, "batch size")
tf.app.flags.DEFINE_integer('validation_interval', 100, "validation interval")
tf.app.flags.DEFINE_float('dropout_keep_prob', 0.5, "dropout keep prob")
tf.app.flags.DEFINE_float('learning_rate', 0.001, "learning rate")
tf.app.flags.DEFINE_float('rms_decay', 0.9, "rms optimizer decay")
tf.app.flags.DEFINE_float('weight_decay', 0.0005, "l2 regularization weight decay")
tf.app.flags.DEFINE_string('train_path', '/tmp/train.csv', "path to download training data")
tf.app.flags.DEFINE_string('test_path', '/tmp/test.csv', "path to download test data")
tf.app.flags.DEFINE_integer('validation_size', 2000, "validation size in training data")
tf.app.flags.DEFINE_string('save_name', os.getcwd() + '/var.ckpt', "path to save variables")
tf.app.flags.DEFINE_boolean('is_train', True, "True for train, False for test")
tf.app.flags.DEFINE_string('test_result', 'result.csv', "test file path")
image_size = 28
image_channel = 1
label_cnt = 10
inputs = tf.placeholder("float", [None, image_size, image_size, image_channel])
labels = tf.placeholder("float", [None, label_cnt])
dropout_keep_prob = tf.placeholder("float", None)
learning_rate_ph = tf.placeholder("float", None)
# conv layer 1
conv1_weights = tf.Variable(tf.random_normal([7, 7, image_channel, 96], dtype=tf.float32, stddev=0.01))
conv1_biases = tf.Variable(tf.constant(0.0, shape=[96], dtype=tf.float32))
conv1 = tf.nn.conv2d(inputs, conv1_weights, [1, 3, 3, 1], padding='SAME')
conv1 = tf.nn.bias_add(conv1, conv1_biases)
conv1_relu = tf.nn.relu(conv1)
conv1_norm = tf.nn.local_response_normalization(conv1_relu, depth_radius=2, alpha=0.0001, beta=0.75, bias=1.0)
conv1_pool = tf.nn.max_pool(conv1_norm, ksize=[1, 2, 2, 1], strides=[1, 1, 1, 1], padding='VALID')
# conv layer 2
conv2_weights = tf.Variable(tf.random_normal([5, 5, 96, 256], dtype=tf.float32, stddev=0.01))
conv2_biases = tf.Variable(tf.constant(1.0, shape=[256], dtype=tf.float32))
conv2 = tf.nn.conv2d(conv1_pool, conv2_weights, [1, 1, 1, 1], padding='SAME')
conv2 = tf.nn.bias_add(conv2, conv2_biases)
conv2_relu = tf.nn.relu(conv2)
conv2_norm = tf.nn.local_response_normalization(conv2_relu)
conv2_pool = tf.nn.max_pool(conv2_norm, ksize=[1, 2, 2, 1], strides=[1, 1, 1, 1], padding='VALID')
# conv layer 3
conv3_weights = tf.Variable(tf.random_normal([3, 3, 256, 384], dtype=tf.float32, stddev=0.01))
conv3_biases = tf.Variable(tf.constant(0.0, shape=[384], dtype=tf.float32))
conv3 = tf.nn.conv2d(conv2_pool, conv3_weights, [1, 1, 1, 1], padding='SAME')
conv3 = tf.nn.bias_add(conv3, conv3_biases)
conv3_relu = tf.nn.relu(conv3)
# conv layer 4
conv4_weights = tf.Variable(tf.random_normal([3, 3, 384, 384], dtype=tf.float32, stddev=0.01))
conv4_biases = tf.Variable(tf.constant(1.0, shape=[384], dtype=tf.float32))
conv4 = tf.nn.conv2d(conv3_relu, conv4_weights, [1, 1, 1, 1], padding='SAME')
conv4 = tf.nn.bias_add(conv4, conv4_biases)
conv4_relu = tf.nn.relu(conv4)
# conv layer 5
conv5_weights = tf.Variable(tf.random_normal([3, 3, 384, 256], dtype=tf.float32, stddev=0.01))
conv5_biases = tf.Variable(tf.constant(1.0, shape=[256], dtype=tf.float32))
conv5 = tf.nn.conv2d(conv4_relu, conv5_weights, [1, 1, 1, 1], padding='SAME')
conv5 = tf.nn.bias_add(conv5, conv5_biases)
conv5_relu = tf.nn.relu(conv5)
conv5_pool = tf.nn.max_pool(conv5_relu, ksize=[1, 3, 3, 1], strides=[1, 2, 2, 1], padding='VALID')
# fc layer 1
fc1_weights = tf.Variable(tf.random_normal([256 * 3 * 3, 4096], dtype=tf.float32, stddev=0.01))
fc1_biases = tf.Variable(tf.constant(1.0, shape=[4096], dtype=tf.float32))
conv5_reshape = tf.reshape(conv5_pool, [-1, fc1_weights.get_shape().as_list()[0]])
fc1 = tf.matmul(conv5_reshape, fc1_weights)
fc1 = tf.nn.bias_add(fc1, fc1_biases)
fc1_relu = tf.nn.relu(fc1)
fc1_drop = tf.nn.dropout(fc1_relu, dropout_keep_prob)
# fc layer 2
fc2_weights = tf.Variable(tf.random_normal([4096, 4096], dtype=tf.float32, stddev=0.01))
fc2_biases = tf.Variable(tf.constant(1.0, shape=[4096], dtype=tf.float32))
fc2 = tf.matmul(fc1_drop, fc2_weights)
fc2 = tf.nn.bias_add(fc2, fc2_biases)
fc2_relu = tf.nn.relu(fc2)
fc2_drop = tf.nn.dropout(fc2_relu, dropout_keep_prob)
# fc layer 3 - output
fc3_weights = tf.Variable(tf.random_normal([4096, label_cnt], dtype=tf.float32, stddev=0.01))
fc3_biases = tf.Variable(tf.constant(1.0, shape=[label_cnt], dtype=tf.float32))
fc3 = tf.matmul(fc2_drop, fc3_weights)
logits = tf.nn.bias_add(fc3, fc3_biases)
# loss
loss = tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(logits, labels))
# l2 regularization
regularizers = (tf.nn.l2_loss(conv1_weights) + tf.nn.l2_loss(conv1_biases) +
tf.nn.l2_loss(conv2_weights) + tf.nn.l2_loss(conv2_biases) +
tf.nn.l2_loss(conv3_weights) + tf.nn.l2_loss(conv3_biases) +
tf.nn.l2_loss(conv4_weights) + tf.nn.l2_loss(conv4_biases) +
tf.nn.l2_loss(conv5_weights) + tf.nn.l2_loss(conv5_biases) +
tf.nn.l2_loss(fc1_weights) + tf.nn.l2_loss(fc1_biases) +
tf.nn.l2_loss(fc2_weights) + tf.nn.l2_loss(fc2_biases) +
tf.nn.l2_loss(fc3_weights) + tf.nn.l2_loss(fc3_biases))
loss += FLAGS.weight_decay * regularizers
# accuracy
predict = tf.argmax(logits, 1)
accuracy = tf.reduce_mean(tf.cast(tf.equal(predict, tf.argmax(labels, 1)), tf.float32))
# train
train = tf.train.RMSPropOptimizer(learning_rate_ph, FLAGS.rms_decay).minimize(loss)
# train = tf.train.MomentumOptimizer(learning_rate_ph, FLAGS.momentum).minimize(loss)
# session
init = tf.initialize_all_variables()
sess = tf.Session()
sess.run(init)
# tf saver
saver = tf.train.Saver()
if os.path.isfile(FLAGS.save_name):
saver.restore(sess, FLAGS.save_name)
total_start_time = time.time()
# begin training
if FLAGS.is_train:
# load mnist data
train_images, train_labels, train_range, validation_images, validation_labels, validation_indices = loader.load_mnist_train(
FLAGS.validation_size, FLAGS.batch_size)
total_train_len = len(train_images)
i = 0
learning_rate = FLAGS.learning_rate
for epoch in range(FLAGS.training_epoch):
if epoch % 10 == 0 and epoch > 0:
learning_rate /= 10
epoch_start_time = time.time()
for start, end in train_range:
batch_start_time = time.time()
trainX = train_images[start:end]
trainY = train_labels[start:end]
_, loss_result = sess.run([train, loss], feed_dict={inputs: trainX, labels: trainY,
dropout_keep_prob: FLAGS.dropout_keep_prob,
learning_rate_ph: learning_rate})
print('[%s][training][epoch %d, step %d exec %.2f seconds] [file: %5d ~ %5d / %5d] loss : %3.10f' % (
time.strftime("%Y-%m-%d %H:%M:%S"), epoch, i, (time.time() - batch_start_time), start, end,
total_train_len, loss_result))
if i % FLAGS.validation_interval == 0 and i > 0:
validation_start_time = time.time()
shuffle_indices = loader.shuffle_validation(validation_indices, FLAGS.batch_size)
validationX = validation_images[shuffle_indices]
validationY = validation_labels[shuffle_indices]
accuracy_result, loss_result = sess.run([accuracy, loss],
feed_dict={inputs: validationX, labels: validationY,
dropout_keep_prob: 1.0})
print('[%s][validation][epoch %d, step %d exec %.2f seconds] accuracy : %1.3f, loss : %3.10f' % (
time.strftime("%Y-%m-%d %H:%M:%S"), epoch, i, (time.time() - validation_start_time),
accuracy_result, loss_result))
i += 1
print("[%s][epoch exec %s seconds] epoch : %d" % (
time.strftime("%Y-%m-%d %H:%M:%S"), (time.time() - epoch_start_time), epoch))
saver.save(sess, FLAGS.save_name)
# begin test
else:
i = 1
test_images, test_ranges = loader.load_mnist_test(FLAGS.batch_size)
test_result_file = open(FLAGS.test_result, 'wb')
csv_writer = csv.writer(test_result_file)
csv_writer.writerow(['ImageId', 'Label'])
for file_start, file_end in test_ranges:
testX = test_images[file_start:file_end]
predict_label = sess.run(predict, feed_dict={inputs: testX, dropout_keep_prob: 1.0})
for cur_predict in predict_label:
csv_writer.writerow([i, cur_predict])
print('[Result %s: %s]' % (i, cur_predict))
i += 1
print("[%s][total exec %s seconds" % (time.strftime("%Y-%m-%d %H:%M:%S"), (time.time() - total_start_time))) | 0.557845 | 0.315011 |
from torch import nn
""" A classifier model for Fashion MNIST Image
We creat this module by sub classing nn.Module, a Module can contain other modules
The common use modules:
- nn.Flatten: The nn.Flatten layer is commonly used to convert multi-dimension input tensor to a one-dimension tensor.
As a result, it's often used as input layer. In this example, the flatten layer transform a 2D 28x28
image into a contiguous array of 784 pixel values.
- nn.Linear: The linear layer is a module that applies a linear transformation on the input by using the stored
weights and biases of the layer.
- nn.ReLU: This module use a Non-linear activations which can create the complex mappings between the model's inputs
and outputs. They are applied after linear transformations to introduce non-linearity, helping neural
networks learn a wide variety of phenomena.
- nn.Sequential: nn.Sequential is an ordered container of modules. The data is passed through all the modules in the
same order as defined. You can use sequential containers to put together a network of modules.
- nn.Softmax: This module is used to normalize raw values in [-infty, infty] to values in [0, 1]. As a result, this
module is often used as output layer for multiple class classification. The outputs of this layer
represents the model's predicted probabilities for each class. The 'dim' parameter indicates the
dimension along which the values must sum to 1. It means the output possibility values for each class
are dependent of this dimension, and the sum is 1. For example:
input values: -0.5, 1.2, -0.1, 2.4
SoftMax output values: 0.04, 0.21, 0.05, 0.70
The sum is 1
- nn.Sigmoid: This module also normalize raw values in [-infty, infty] to values in [0, 1] or [-1,1]. This module is
often used as output layer for binary class classification. The output possibility values for each class
are independent, and the sum can be any value. For example:
input value: -0.5, 1.2, -0.1, 2.4
Sigmoid output values: 0.37, 0.77, 0.48, 0.91
The sum is 2.53
In this model, we use nn.ReLU between our linear layers, but there's other activations to introduce non-linearity in
your model.
"""
class FashionMNISTImageClassifier(nn.Module):
def __init__(self):
super(FashionMNISTImageClassifier, self).__init__()
self.flatten = nn.Flatten()
self.linear_relu_stack = nn.Sequential(
nn.Linear(28 * 28, 512),
nn.ReLU(),
nn.Linear(512, 512),
nn.ReLU(),
nn.Linear(512, 10),
nn.ReLU()
)
def forward(self, x):
x = self.flatten(x)
logits = self.linear_relu_stack(x)
return logits | basics/source/FashionMNISTImageClassifier.py | from torch import nn
""" A classifier model for Fashion MNIST Image
We creat this module by sub classing nn.Module, a Module can contain other modules
The common use modules:
- nn.Flatten: The nn.Flatten layer is commonly used to convert multi-dimension input tensor to a one-dimension tensor.
As a result, it's often used as input layer. In this example, the flatten layer transform a 2D 28x28
image into a contiguous array of 784 pixel values.
- nn.Linear: The linear layer is a module that applies a linear transformation on the input by using the stored
weights and biases of the layer.
- nn.ReLU: This module use a Non-linear activations which can create the complex mappings between the model's inputs
and outputs. They are applied after linear transformations to introduce non-linearity, helping neural
networks learn a wide variety of phenomena.
- nn.Sequential: nn.Sequential is an ordered container of modules. The data is passed through all the modules in the
same order as defined. You can use sequential containers to put together a network of modules.
- nn.Softmax: This module is used to normalize raw values in [-infty, infty] to values in [0, 1]. As a result, this
module is often used as output layer for multiple class classification. The outputs of this layer
represents the model's predicted probabilities for each class. The 'dim' parameter indicates the
dimension along which the values must sum to 1. It means the output possibility values for each class
are dependent of this dimension, and the sum is 1. For example:
input values: -0.5, 1.2, -0.1, 2.4
SoftMax output values: 0.04, 0.21, 0.05, 0.70
The sum is 1
- nn.Sigmoid: This module also normalize raw values in [-infty, infty] to values in [0, 1] or [-1,1]. This module is
often used as output layer for binary class classification. The output possibility values for each class
are independent, and the sum can be any value. For example:
input value: -0.5, 1.2, -0.1, 2.4
Sigmoid output values: 0.37, 0.77, 0.48, 0.91
The sum is 2.53
In this model, we use nn.ReLU between our linear layers, but there's other activations to introduce non-linearity in
your model.
"""
class FashionMNISTImageClassifier(nn.Module):
def __init__(self):
super(FashionMNISTImageClassifier, self).__init__()
self.flatten = nn.Flatten()
self.linear_relu_stack = nn.Sequential(
nn.Linear(28 * 28, 512),
nn.ReLU(),
nn.Linear(512, 512),
nn.ReLU(),
nn.Linear(512, 10),
nn.ReLU()
)
def forward(self, x):
x = self.flatten(x)
logits = self.linear_relu_stack(x)
return logits | 0.967869 | 0.963678 |
import logging
from warnings import warn
from typing import List, Dict, Optional
from ._config import Config
from ._entity import BaseEntity, Entity, _ORMType
from ._routing import BaseRouting, RoutingMixin
from ._authentication import BaseAuthentication, Authentication
from .oauth2.google import Google
from .oauth2._base import BaseOAuth, TestBaseOAuth
from .oauth2.http_requests import HttpRequests
from .oauth2._urls import GOOGLE_OAUTH_URL
# pylint:disable=invalid-name
logger = logging.getLogger()
EXPIRE_DEFAULT = 30
class BaseJwtRoutes:
"""
If there app is None then self.init_app(app=None, **kwargs) need to be called
inside the Flask app factory pattern.
:param app: Flask application instance
:param kwargs: entity_model
"""
#: Logging.
logger = logging
#: The Flask application instance.
app = None
#: A list of entity models
entity_models: List[_ORMType]
#: Low level expire member. See :class:`~flask_jwt_router._config` & set with JWT_EXPIRE_DAYS
#: or use :class:`~flask_jwt_router.set_exp`.
exp: int
#: The class that is used to create Config objects. See :class:`~flask_jwt_router._config`
#: for more information.
config: Config
#: The class that provides algorithms to :class:`~flask_jwt_router._jwt_routes`.
# See :class:`~flask_jwt_router._authentication` for more information.
auth: BaseAuthentication
#: The class that is used to create Entity objects. See :class:`~flask_jwt_router._entity`
#: for more information.
entity: BaseEntity
#: The class that is used to create Routing objects. See :class:`~flask_jwt_router._routing`
#: for more information.
routing: BaseRouting
#: Optional Google OAuth 2.0 Single Sign On. See :class:`~flask_jwt_router.oauth2.google``
#: for more information.
# google: BaseOAuth TODO remove
#: Optional. See :class:`~flask_jwt_router.oauth2.google`
google_oauth: Dict # TODO needs to be a list
#: Optional. A Lust of strategies to be implement in the routing
strategies: List[BaseOAuth]
#: List of instantiated strategies
strategy_dict: Dict[str, BaseOAuth] = {}
def __init__(self, app=None, **kwargs):
self.entity_models = kwargs.get("entity_models")
self.google_oauth = kwargs.get("google_oauth")
self.strategies = kwargs.get("strategies")
self.config = Config()
self.auth = Authentication()
self.app = app
if app:
self.init_app(app, entity_models=self.entity_models)
def init_app(self, app=None, **kwargs):
"""
You can use this to set up your config at runtime
:param app: Flask application instance
:return:
"""
self.app = app if app else self.app
entity_models = self.entity_models or kwargs.get("entity_models")
self.google_oauth = self.google_oauth or kwargs.get("google_oauth")
self.strategies = self.strategies or kwargs.get("strategies") or []
app_config = self.get_app_config(self.app)
if len(self.strategies):
for S in self.strategies:
strategy = S(HttpRequests(GOOGLE_OAUTH_URL))
strategy.init(**self.google_oauth)
self.strategy_dict[strategy.__class__.__name__] = strategy
self.config.init_config(app_config, entity_models=entity_models, google_oauth=self.google_oauth)
self.entity = Entity(self.config)
self.routing.init(self.app, self.config, self.entity, self.strategy_dict)
self.app.before_request(self.routing.before_middleware)
if self.config.expire_days:
self.exp = self.config.expire_days
else:
self.exp = EXPIRE_DEFAULT
# pylint:disable=no-self-use
def get_app_config(self, app):
"""
:param app: Flask Application Instance
:return: Dict[str, Any]
"""
config = getattr(app, "config", {})
return config
# pylint:disable=no-self-use
def get_entity_id(self, **kwargs):
"""
:param kwargs: Dict[str, int]
:return: str
"""
try:
return kwargs['entity_id']
except KeyError as _:
return None
# pylint:disable=no-self-use
def set_exp(self, **kwargs) -> None:
"""
:param kwargs: Dict[str, int]
- expire_days: The expire time for the JWT in days
:return: None
"""
try:
self.exp = kwargs['expire_days']
except KeyError as _:
self.exp = EXPIRE_DEFAULT
def create_token(self, **kwargs) -> str:
"""
:param kwargs:
:return: str
"""
if 'entity_type' in kwargs:
warn(("'entity_type' argument name has been deprecated and will be replaced"
"in the next release. Use 'table_name' instead"))
kwargs['table_name'] = kwargs['entity_type']
if 'table_name' not in kwargs:
raise KeyError("create_token() missing 1 required argument: table_name")
table_name = kwargs.get("table_name")
self.config.entity_key = self.entity.get_attr_name(table_name)
return self.auth.create_token(self.config, self.exp, **kwargs)
def update_token(self, **kwargs) -> str:
"""
:param kwargs:
:return: str
"""
self.config.entity_key = self.entity.get_attr_name()
table_name = self.entity.get_entity_from_ext().__tablename__
return self.auth.update_token(self.config, self.exp, table_name, **kwargs)
def encode_token(self, entity_id) -> str:
"""
:param entity_id:
:return:
"""
self.config.entity_key = self.entity.get_attr_name()
table_name = self.entity.get_entity_from_ext().__tablename__
return self.auth.encode_token(self.config, entity_id, self.exp, table_name)
def get_strategy(self, name: str) -> Optional[BaseOAuth]:
"""
:param name: The name of the strategy
:return:
"""
try:
return self.strategy_dict[name]
except KeyError:
return None
class JwtRoutes(RoutingMixin, BaseJwtRoutes):
pass | flask_jwt_router/_jwt_routes.py | import logging
from warnings import warn
from typing import List, Dict, Optional
from ._config import Config
from ._entity import BaseEntity, Entity, _ORMType
from ._routing import BaseRouting, RoutingMixin
from ._authentication import BaseAuthentication, Authentication
from .oauth2.google import Google
from .oauth2._base import BaseOAuth, TestBaseOAuth
from .oauth2.http_requests import HttpRequests
from .oauth2._urls import GOOGLE_OAUTH_URL
# pylint:disable=invalid-name
logger = logging.getLogger()
EXPIRE_DEFAULT = 30
class BaseJwtRoutes:
"""
If there app is None then self.init_app(app=None, **kwargs) need to be called
inside the Flask app factory pattern.
:param app: Flask application instance
:param kwargs: entity_model
"""
#: Logging.
logger = logging
#: The Flask application instance.
app = None
#: A list of entity models
entity_models: List[_ORMType]
#: Low level expire member. See :class:`~flask_jwt_router._config` & set with JWT_EXPIRE_DAYS
#: or use :class:`~flask_jwt_router.set_exp`.
exp: int
#: The class that is used to create Config objects. See :class:`~flask_jwt_router._config`
#: for more information.
config: Config
#: The class that provides algorithms to :class:`~flask_jwt_router._jwt_routes`.
# See :class:`~flask_jwt_router._authentication` for more information.
auth: BaseAuthentication
#: The class that is used to create Entity objects. See :class:`~flask_jwt_router._entity`
#: for more information.
entity: BaseEntity
#: The class that is used to create Routing objects. See :class:`~flask_jwt_router._routing`
#: for more information.
routing: BaseRouting
#: Optional Google OAuth 2.0 Single Sign On. See :class:`~flask_jwt_router.oauth2.google``
#: for more information.
# google: BaseOAuth TODO remove
#: Optional. See :class:`~flask_jwt_router.oauth2.google`
google_oauth: Dict # TODO needs to be a list
#: Optional. A Lust of strategies to be implement in the routing
strategies: List[BaseOAuth]
#: List of instantiated strategies
strategy_dict: Dict[str, BaseOAuth] = {}
def __init__(self, app=None, **kwargs):
self.entity_models = kwargs.get("entity_models")
self.google_oauth = kwargs.get("google_oauth")
self.strategies = kwargs.get("strategies")
self.config = Config()
self.auth = Authentication()
self.app = app
if app:
self.init_app(app, entity_models=self.entity_models)
def init_app(self, app=None, **kwargs):
"""
You can use this to set up your config at runtime
:param app: Flask application instance
:return:
"""
self.app = app if app else self.app
entity_models = self.entity_models or kwargs.get("entity_models")
self.google_oauth = self.google_oauth or kwargs.get("google_oauth")
self.strategies = self.strategies or kwargs.get("strategies") or []
app_config = self.get_app_config(self.app)
if len(self.strategies):
for S in self.strategies:
strategy = S(HttpRequests(GOOGLE_OAUTH_URL))
strategy.init(**self.google_oauth)
self.strategy_dict[strategy.__class__.__name__] = strategy
self.config.init_config(app_config, entity_models=entity_models, google_oauth=self.google_oauth)
self.entity = Entity(self.config)
self.routing.init(self.app, self.config, self.entity, self.strategy_dict)
self.app.before_request(self.routing.before_middleware)
if self.config.expire_days:
self.exp = self.config.expire_days
else:
self.exp = EXPIRE_DEFAULT
# pylint:disable=no-self-use
def get_app_config(self, app):
"""
:param app: Flask Application Instance
:return: Dict[str, Any]
"""
config = getattr(app, "config", {})
return config
# pylint:disable=no-self-use
def get_entity_id(self, **kwargs):
"""
:param kwargs: Dict[str, int]
:return: str
"""
try:
return kwargs['entity_id']
except KeyError as _:
return None
# pylint:disable=no-self-use
def set_exp(self, **kwargs) -> None:
"""
:param kwargs: Dict[str, int]
- expire_days: The expire time for the JWT in days
:return: None
"""
try:
self.exp = kwargs['expire_days']
except KeyError as _:
self.exp = EXPIRE_DEFAULT
def create_token(self, **kwargs) -> str:
"""
:param kwargs:
:return: str
"""
if 'entity_type' in kwargs:
warn(("'entity_type' argument name has been deprecated and will be replaced"
"in the next release. Use 'table_name' instead"))
kwargs['table_name'] = kwargs['entity_type']
if 'table_name' not in kwargs:
raise KeyError("create_token() missing 1 required argument: table_name")
table_name = kwargs.get("table_name")
self.config.entity_key = self.entity.get_attr_name(table_name)
return self.auth.create_token(self.config, self.exp, **kwargs)
def update_token(self, **kwargs) -> str:
"""
:param kwargs:
:return: str
"""
self.config.entity_key = self.entity.get_attr_name()
table_name = self.entity.get_entity_from_ext().__tablename__
return self.auth.update_token(self.config, self.exp, table_name, **kwargs)
def encode_token(self, entity_id) -> str:
"""
:param entity_id:
:return:
"""
self.config.entity_key = self.entity.get_attr_name()
table_name = self.entity.get_entity_from_ext().__tablename__
return self.auth.encode_token(self.config, entity_id, self.exp, table_name)
def get_strategy(self, name: str) -> Optional[BaseOAuth]:
"""
:param name: The name of the strategy
:return:
"""
try:
return self.strategy_dict[name]
except KeyError:
return None
class JwtRoutes(RoutingMixin, BaseJwtRoutes):
pass | 0.638159 | 0.088229 |
import numpy as np
def animate_with_periodic_gp(d, num_frames, base_measure_sample=None, endpoint=False):
"""Animate samples from a standard Normal distribution by drawing samples from a
periodic Gaussian process.
Parameters
----------
d :
Dimension of the underlying multivariate Normal distribution of which samples shall be animated.
num_frames :
Number of steps to be taken. This can be thought of the number of frames
in the final animation.
base_measure_sample:
**Shape (num_steps, d).**
I.i.d. samples from a standard Normal distribution.
endpoint
Whether the final state should be equal to the first state. Optional. Default is False.
Returns
-------
np.ndarray
**Shape (num_steps, d).**
N steps that traverse the sphere along a (d-1)-dimensional subspace.
Examples
--------
>>> import numpy as np
>>> np.random.seed(42)
>>> dim, num_frames = 2, 10
>>> states = animate_with_periodic_gp(dim, num_frames)
>>> print(np.round(states, 1))
[[ 0.5 -0.5]
[ 0.3 -0.7]
[ 0.6 -0.3]
[ 1.6 -1.3]
[ 1.1 -1.8]
[ 0.5 -0.5]
[ 0.3 -0.7]
[ 0.6 -0.3]
[ 1.6 -1.3]
[ 1.1 -1.8]]
"""
def k(t1, t2):
"""Periodic covariance kernel."""
return np.exp(-np.sin(np.abs(t1 - t2)) ** 2)
unit_sample = (
base_measure_sample
if base_measure_sample is not None
else np.random.randn(num_frames, d)
)
equispaced_distances = np.linspace(0, 2 * np.pi, num_frames, endpoint=endpoint)
m = np.zeros(len(equispaced_distances))
K = k(equispaced_distances[:, None], equispaced_distances[None, :])
# Transform "from the right", because unit_sample is shape (d, num_steps)
damping_factor = 1e-12
KS = np.linalg.cholesky(K + damping_factor * np.eye(len(K)))
samples = m[:, None] + KS @ unit_sample
return samples
def animate_with_great_circle_of_unitsphere(
d, num_frames, initial_sample=None, initial_direction=None, endpoint=False
):
"""Animate samples from a standard Normal distribution by drawing a great circle on
a unitsphere uniformly at random.
Based on the MATLAB implementation in [1]_.
This can be used to "make a sample from a GP move around in the sample space".
In this case, d is the number of time-grid points
(which amounts to the dimension of the underlying multivariate Normal distribution),
and num_steps is the number of frames that shall be shown in the animation.
Parameters
----------
d :
Dimension of the sphere. This can be thought of as the dimension of the
underlying multivariate Normal distribution of which samples shall be animated.
num_frames :
Number of steps to be taken. This can be thought of the number of frames
in the final animation.
initial_sample:
**Shape (d,).**
Initial sample on the sphere. Will be normalized to length 1 internally. Optional.
If not provided, sampled from a standard Normal distribution.
initial_direction:
**Shape (d,).**
Initial direction on the tangent space of the initial sample. Will be orthonormalized internally.
Optional. If not provided, sampled from a standard Normal distribution.
endpoint
Whether the final state should be equal to the first state. Optional. Default is False.
Returns
-------
np.ndarray
**Shape (num_steps, d).**
N steps that traverse the sphere along a (d-1)-dimensional subspace.
References
----------
.. [1]
<NAME>. Animating Samples from Gaussian Distributions.
Technical Report No. 8 of the Max Planck Institute for Intelligent Systems. September 2013
Examples
--------
>>> import numpy as np
>>> np.random.seed(42)
>>> dim, num_frames = 2, 10
>>> states = animate_with_random_great_circle_of_unitsphere(dim, num_frames)
>>> print(np.round(states, 1))
[[ 0.5 -0.1]
[ 0.5 0.2]
[ 0.3 0.4]
[-0. 0.5]
[-0.3 0.4]
[-0.5 0.1]
[-0.5 -0.2]
[-0.3 -0.4]
[ 0. -0.5]
[ 0.3 -0.4]]
"""
# Read inputs
state = initial_sample if initial_sample is not None else np.random.randn(d)
direction = (
initial_direction if initial_direction is not None else np.random.randn(d)
)
# Normalize and orthogonalize
scale = np.linalg.norm(state)
normalized_state = state / scale
orthogonal_direction = (
direction - (direction.T @ normalized_state) * normalized_state
)
orthonormal_direction = orthogonal_direction / np.linalg.norm(orthogonal_direction)
# Compute great circle
equispaced_distances = np.linspace(0, 2.0 * np.pi, num_frames, endpoint=endpoint)
states = np.array(
[
scale * geodesic_sphere(normalized_state, orthonormal_direction * delta)
for delta in equispaced_distances
]
)
return states
def geodesic_sphere(point, velocity):
r"""Compute the geodesic on the sphere.
It is given by the exponential map starting at a point :math:`p` and initial velocity `v t`,
.. math:: \gamma(t) := \text{Exp}_p(v t) = \cos(\|v\| t) p + \sin(\|v\| t) \frac{v}{\|v\|}
and can be used to compute a great circle on a sphere.
The dimension of the sphere is read off the sizes of point and velocity.
"""
# Decompose the velocity into magnitude * direction
magnitude = np.linalg.norm(velocity)
# Early exit if no proper direction is given
if magnitude == 0.0:
return point
direction = velocity / magnitude
geodesic = np.cos(magnitude) * point + np.sin(magnitude) * direction
return geodesic | src/probnumeval/visual/_animate_samples.py |
import numpy as np
def animate_with_periodic_gp(d, num_frames, base_measure_sample=None, endpoint=False):
"""Animate samples from a standard Normal distribution by drawing samples from a
periodic Gaussian process.
Parameters
----------
d :
Dimension of the underlying multivariate Normal distribution of which samples shall be animated.
num_frames :
Number of steps to be taken. This can be thought of the number of frames
in the final animation.
base_measure_sample:
**Shape (num_steps, d).**
I.i.d. samples from a standard Normal distribution.
endpoint
Whether the final state should be equal to the first state. Optional. Default is False.
Returns
-------
np.ndarray
**Shape (num_steps, d).**
N steps that traverse the sphere along a (d-1)-dimensional subspace.
Examples
--------
>>> import numpy as np
>>> np.random.seed(42)
>>> dim, num_frames = 2, 10
>>> states = animate_with_periodic_gp(dim, num_frames)
>>> print(np.round(states, 1))
[[ 0.5 -0.5]
[ 0.3 -0.7]
[ 0.6 -0.3]
[ 1.6 -1.3]
[ 1.1 -1.8]
[ 0.5 -0.5]
[ 0.3 -0.7]
[ 0.6 -0.3]
[ 1.6 -1.3]
[ 1.1 -1.8]]
"""
def k(t1, t2):
"""Periodic covariance kernel."""
return np.exp(-np.sin(np.abs(t1 - t2)) ** 2)
unit_sample = (
base_measure_sample
if base_measure_sample is not None
else np.random.randn(num_frames, d)
)
equispaced_distances = np.linspace(0, 2 * np.pi, num_frames, endpoint=endpoint)
m = np.zeros(len(equispaced_distances))
K = k(equispaced_distances[:, None], equispaced_distances[None, :])
# Transform "from the right", because unit_sample is shape (d, num_steps)
damping_factor = 1e-12
KS = np.linalg.cholesky(K + damping_factor * np.eye(len(K)))
samples = m[:, None] + KS @ unit_sample
return samples
def animate_with_great_circle_of_unitsphere(
d, num_frames, initial_sample=None, initial_direction=None, endpoint=False
):
"""Animate samples from a standard Normal distribution by drawing a great circle on
a unitsphere uniformly at random.
Based on the MATLAB implementation in [1]_.
This can be used to "make a sample from a GP move around in the sample space".
In this case, d is the number of time-grid points
(which amounts to the dimension of the underlying multivariate Normal distribution),
and num_steps is the number of frames that shall be shown in the animation.
Parameters
----------
d :
Dimension of the sphere. This can be thought of as the dimension of the
underlying multivariate Normal distribution of which samples shall be animated.
num_frames :
Number of steps to be taken. This can be thought of the number of frames
in the final animation.
initial_sample:
**Shape (d,).**
Initial sample on the sphere. Will be normalized to length 1 internally. Optional.
If not provided, sampled from a standard Normal distribution.
initial_direction:
**Shape (d,).**
Initial direction on the tangent space of the initial sample. Will be orthonormalized internally.
Optional. If not provided, sampled from a standard Normal distribution.
endpoint
Whether the final state should be equal to the first state. Optional. Default is False.
Returns
-------
np.ndarray
**Shape (num_steps, d).**
N steps that traverse the sphere along a (d-1)-dimensional subspace.
References
----------
.. [1]
<NAME>. Animating Samples from Gaussian Distributions.
Technical Report No. 8 of the Max Planck Institute for Intelligent Systems. September 2013
Examples
--------
>>> import numpy as np
>>> np.random.seed(42)
>>> dim, num_frames = 2, 10
>>> states = animate_with_random_great_circle_of_unitsphere(dim, num_frames)
>>> print(np.round(states, 1))
[[ 0.5 -0.1]
[ 0.5 0.2]
[ 0.3 0.4]
[-0. 0.5]
[-0.3 0.4]
[-0.5 0.1]
[-0.5 -0.2]
[-0.3 -0.4]
[ 0. -0.5]
[ 0.3 -0.4]]
"""
# Read inputs
state = initial_sample if initial_sample is not None else np.random.randn(d)
direction = (
initial_direction if initial_direction is not None else np.random.randn(d)
)
# Normalize and orthogonalize
scale = np.linalg.norm(state)
normalized_state = state / scale
orthogonal_direction = (
direction - (direction.T @ normalized_state) * normalized_state
)
orthonormal_direction = orthogonal_direction / np.linalg.norm(orthogonal_direction)
# Compute great circle
equispaced_distances = np.linspace(0, 2.0 * np.pi, num_frames, endpoint=endpoint)
states = np.array(
[
scale * geodesic_sphere(normalized_state, orthonormal_direction * delta)
for delta in equispaced_distances
]
)
return states
def geodesic_sphere(point, velocity):
r"""Compute the geodesic on the sphere.
It is given by the exponential map starting at a point :math:`p` and initial velocity `v t`,
.. math:: \gamma(t) := \text{Exp}_p(v t) = \cos(\|v\| t) p + \sin(\|v\| t) \frac{v}{\|v\|}
and can be used to compute a great circle on a sphere.
The dimension of the sphere is read off the sizes of point and velocity.
"""
# Decompose the velocity into magnitude * direction
magnitude = np.linalg.norm(velocity)
# Early exit if no proper direction is given
if magnitude == 0.0:
return point
direction = velocity / magnitude
geodesic = np.cos(magnitude) * point + np.sin(magnitude) * direction
return geodesic | 0.95773 | 0.78785 |
from calamities import (
TextView,
SpacerView,
MultiSingleChoiceInputView,
)
from ..pattern import FilePatternStep, FilePatternSummaryStep
from ...model import (
PhaseFmapFileSchema,
PhaseDiffFmapFileSchema,
EPIFmapFileSchema,
BaseFmapFileSchema,
BoldFileSchema,
)
from ..feature import FeaturesStep
from ..step import (
Step,
BranchStep,
YesNoStep,
)
from ..metadata import CheckMetadataStep
filetype_str = "field map image"
filedict = {"datatype": "fmap"}
bold_filedict = {"datatype": "func", "suffix": "bold"}
next_step_type = FeaturesStep
class FmapSummaryStep(FilePatternSummaryStep):
filetype_str = filetype_str
filedict = filedict
schema = BaseFmapFileSchema
next_step_type = next_step_type
class CheckBoldPhaseEncodingDirectionStep(CheckMetadataStep):
schema = BoldFileSchema
key = "phase_encoding_direction"
appendstr = " for the functional data"
filters = bold_filedict
next_step_type = next_step_type
class CheckBoldEffectiveEchoSpacingStep(CheckMetadataStep):
schema = BoldFileSchema
key = "effective_echo_spacing"
appendstr = " for the functional data"
filters = bold_filedict
next_step_type = CheckBoldPhaseEncodingDirectionStep
def _should_skip(self, ctx):
filepaths = [*ctx.database.get(**filedict)]
suffixvalset = ctx.database.tagvalset("suffix", filepaths=filepaths)
return suffixvalset.isdisjoint(["phase1", "phase2", "phasediff", "fieldmap"])
class AcqToTaskMappingStep(Step):
def setup(self, ctx):
self.is_first_run = True
self.result = None
filepaths = ctx.database.get(**filedict)
boldfilepaths = ctx.database.get(**bold_filedict)
acqvalset = ctx.database.tagvalset("acq", filepaths=filepaths)
fmaptaskvalset = ctx.database.tagvalset("task", filepaths=filepaths)
taskvalset = ctx.database.tagvalset("task", filepaths=boldfilepaths)
if (
acqvalset is not None
and len(acqvalset) > 0
and (fmaptaskvalset is None or len(fmaptaskvalset) == 0)
):
if None in acqvalset:
acqvalset.remove(None)
self.acqvals = sorted(list(acqvalset))
if None in fmaptaskvalset:
fmaptaskvalset.remove(None)
if None in taskvalset:
taskvalset.remove(None)
self.taskvals = sorted(list(taskvalset))
self.is_predefined = False
self._append_view(TextView(f"Found {len(self.acqvals)} field map acquisitions"))
self._append_view(TextView("Assign field maps to tasks"))
self.options = [f'"{taskval}"' for taskval in self.taskvals]
self.values = [f"{acqval}" for acqval in self.acqvals]
self.input_view = MultiSingleChoiceInputView([*self.options], [*self.values])
self._append_view(self.input_view)
self._append_view(SpacerView(1))
else:
self.is_predefined = True
def run(self, ctx):
if self.is_predefined:
return self.is_first_run
else:
self.result = self.input_view()
if self.result is None:
return False
return True
def next(self, ctx):
if self.result is not None:
filepaths = ctx.database.get(**filedict)
specfileobjs = set(ctx.database.specfileobj(filepath) for filepath in filepaths)
acq_by_value = dict(zip(self.values, self.acqvals))
value = dict()
for option, task in zip(self.options, self.taskvals):
acq = acq_by_value[self.result[option]]
key = f"<KEY>
if key not in value:
value[key] = []
value[key].append(f"task.{task}")
for specfileobj in specfileobjs:
specfileobj.intended_for = value
if self.is_first_run or not self.is_predefined:
self.is_first_run = False
return CheckBoldEffectiveEchoSpacingStep(self.app)(ctx)
class HasMoreFmapStep(YesNoStep):
header_str = "Add more field maps?"
yes_step_type = None # add later, because not yet defined
no_step_type = AcqToTaskMappingStep
class FieldMapStep(FilePatternStep):
filetype_str = "field map image"
filedict = {**filedict, "suffix": "fieldmap"}
schema = BaseFmapFileSchema
required_in_path_entities = ["subject"]
next_step_type = HasMoreFmapStep
class CheckPhaseDiffEchoTimeDiffStep(CheckMetadataStep):
schema = PhaseDiffFmapFileSchema
key = "echo_time_difference"
next_step_type = HasMoreFmapStep
class PhaseDiffStep(FilePatternStep):
filetype_str = "phase difference image"
filedict = {**filedict, "suffix": "phasediff"}
schema = PhaseDiffFmapFileSchema
required_in_path_entities = ["subject"]
next_step_type = CheckPhaseDiffEchoTimeDiffStep
class CheckPhase2EchoTimeStep(CheckMetadataStep):
schema = PhaseFmapFileSchema
key = "echo_time"
next_step_type = HasMoreFmapStep
class Phase2Step(FilePatternStep):
filetype_str = "second set of phase image"
filedict = {**filedict, "suffix": "phase2"}
schema = PhaseFmapFileSchema
required_in_path_entities = ["subject"]
next_step_type = CheckPhase2EchoTimeStep
class CheckPhase1EchoTimeStep(CheckMetadataStep):
schema = PhaseFmapFileSchema
key = "echo_time"
next_step_type = Phase2Step
class Phase1Step(FilePatternStep):
filetype_str = "first set of phase image"
filedict = {**filedict, "suffix": "phase1"}
schema = PhaseFmapFileSchema
required_in_path_entities = ["subject"]
next_step_type = CheckPhase1EchoTimeStep
class PhaseTypeStep(BranchStep):
is_vertical = True
header_str = "Specify the type of the phase images"
options = {
"One phase difference image": PhaseDiffStep,
"Two phase images": Phase1Step,
}
def get_magnitude_steps(m_next_step_type):
class Magnitude2Step(FilePatternStep):
filetype_str = "second set of magnitude image"
filedict = {**filedict, "suffix": "magnitude2"}
schema = BaseFmapFileSchema
required_in_path_entities = ["subject"]
next_step_type = m_next_step_type
class Magnitude1Step(Magnitude2Step):
filetype_str = "first set of magnitude image"
filedict = {**filedict, "suffix": "magnitude1"}
next_step_type = Magnitude2Step
class MagnitudeStep(Magnitude1Step):
filetype_str = "magnitude image"
next_step_type = m_next_step_type
class MagnitudeTypeStep(BranchStep):
is_vertical = True
header_str = "Specify the type of the magnitude images"
options = {
"One magnitude image file": MagnitudeStep,
"Two magnitude image files": Magnitude1Step,
}
return MagnitudeTypeStep
class EPIStep(FilePatternStep):
filetype_str = "blip-up blip-down EPI image"
filedict = {**filedict, "suffix": "epi"}
schema = EPIFmapFileSchema
required_in_path_entities = ["subject"]
next_step_type = HasMoreFmapStep
class FmapTypeStep(BranchStep):
is_vertical = True
header_str = "Specify the type of the field maps"
options = {
"EPI (blip-up blip-down)": EPIStep,
"Phase difference and magnitude (used by Siemens scanners)": get_magnitude_steps(
PhaseTypeStep
),
"Scanner-computed field map and magnitude (used by GE / Philips scanners)": get_magnitude_steps(
FieldMapStep
),
}
class HasFmapStep(YesNoStep):
header_str = "Specify field maps?"
yes_step_type = FmapTypeStep
no_step_type = next_step_type
HasMoreFmapStep.yes_step_type = FmapTypeStep
FmapStep = HasFmapStep | halfpipe/ui/file/fmap.py |
from calamities import (
TextView,
SpacerView,
MultiSingleChoiceInputView,
)
from ..pattern import FilePatternStep, FilePatternSummaryStep
from ...model import (
PhaseFmapFileSchema,
PhaseDiffFmapFileSchema,
EPIFmapFileSchema,
BaseFmapFileSchema,
BoldFileSchema,
)
from ..feature import FeaturesStep
from ..step import (
Step,
BranchStep,
YesNoStep,
)
from ..metadata import CheckMetadataStep
filetype_str = "field map image"
filedict = {"datatype": "fmap"}
bold_filedict = {"datatype": "func", "suffix": "bold"}
next_step_type = FeaturesStep
class FmapSummaryStep(FilePatternSummaryStep):
filetype_str = filetype_str
filedict = filedict
schema = BaseFmapFileSchema
next_step_type = next_step_type
class CheckBoldPhaseEncodingDirectionStep(CheckMetadataStep):
schema = BoldFileSchema
key = "phase_encoding_direction"
appendstr = " for the functional data"
filters = bold_filedict
next_step_type = next_step_type
class CheckBoldEffectiveEchoSpacingStep(CheckMetadataStep):
schema = BoldFileSchema
key = "effective_echo_spacing"
appendstr = " for the functional data"
filters = bold_filedict
next_step_type = CheckBoldPhaseEncodingDirectionStep
def _should_skip(self, ctx):
filepaths = [*ctx.database.get(**filedict)]
suffixvalset = ctx.database.tagvalset("suffix", filepaths=filepaths)
return suffixvalset.isdisjoint(["phase1", "phase2", "phasediff", "fieldmap"])
class AcqToTaskMappingStep(Step):
def setup(self, ctx):
self.is_first_run = True
self.result = None
filepaths = ctx.database.get(**filedict)
boldfilepaths = ctx.database.get(**bold_filedict)
acqvalset = ctx.database.tagvalset("acq", filepaths=filepaths)
fmaptaskvalset = ctx.database.tagvalset("task", filepaths=filepaths)
taskvalset = ctx.database.tagvalset("task", filepaths=boldfilepaths)
if (
acqvalset is not None
and len(acqvalset) > 0
and (fmaptaskvalset is None or len(fmaptaskvalset) == 0)
):
if None in acqvalset:
acqvalset.remove(None)
self.acqvals = sorted(list(acqvalset))
if None in fmaptaskvalset:
fmaptaskvalset.remove(None)
if None in taskvalset:
taskvalset.remove(None)
self.taskvals = sorted(list(taskvalset))
self.is_predefined = False
self._append_view(TextView(f"Found {len(self.acqvals)} field map acquisitions"))
self._append_view(TextView("Assign field maps to tasks"))
self.options = [f'"{taskval}"' for taskval in self.taskvals]
self.values = [f"{acqval}" for acqval in self.acqvals]
self.input_view = MultiSingleChoiceInputView([*self.options], [*self.values])
self._append_view(self.input_view)
self._append_view(SpacerView(1))
else:
self.is_predefined = True
def run(self, ctx):
if self.is_predefined:
return self.is_first_run
else:
self.result = self.input_view()
if self.result is None:
return False
return True
def next(self, ctx):
if self.result is not None:
filepaths = ctx.database.get(**filedict)
specfileobjs = set(ctx.database.specfileobj(filepath) for filepath in filepaths)
acq_by_value = dict(zip(self.values, self.acqvals))
value = dict()
for option, task in zip(self.options, self.taskvals):
acq = acq_by_value[self.result[option]]
key = f"<KEY>
if key not in value:
value[key] = []
value[key].append(f"task.{task}")
for specfileobj in specfileobjs:
specfileobj.intended_for = value
if self.is_first_run or not self.is_predefined:
self.is_first_run = False
return CheckBoldEffectiveEchoSpacingStep(self.app)(ctx)
class HasMoreFmapStep(YesNoStep):
header_str = "Add more field maps?"
yes_step_type = None # add later, because not yet defined
no_step_type = AcqToTaskMappingStep
class FieldMapStep(FilePatternStep):
filetype_str = "field map image"
filedict = {**filedict, "suffix": "fieldmap"}
schema = BaseFmapFileSchema
required_in_path_entities = ["subject"]
next_step_type = HasMoreFmapStep
class CheckPhaseDiffEchoTimeDiffStep(CheckMetadataStep):
schema = PhaseDiffFmapFileSchema
key = "echo_time_difference"
next_step_type = HasMoreFmapStep
class PhaseDiffStep(FilePatternStep):
filetype_str = "phase difference image"
filedict = {**filedict, "suffix": "phasediff"}
schema = PhaseDiffFmapFileSchema
required_in_path_entities = ["subject"]
next_step_type = CheckPhaseDiffEchoTimeDiffStep
class CheckPhase2EchoTimeStep(CheckMetadataStep):
schema = PhaseFmapFileSchema
key = "echo_time"
next_step_type = HasMoreFmapStep
class Phase2Step(FilePatternStep):
filetype_str = "second set of phase image"
filedict = {**filedict, "suffix": "phase2"}
schema = PhaseFmapFileSchema
required_in_path_entities = ["subject"]
next_step_type = CheckPhase2EchoTimeStep
class CheckPhase1EchoTimeStep(CheckMetadataStep):
schema = PhaseFmapFileSchema
key = "echo_time"
next_step_type = Phase2Step
class Phase1Step(FilePatternStep):
filetype_str = "first set of phase image"
filedict = {**filedict, "suffix": "phase1"}
schema = PhaseFmapFileSchema
required_in_path_entities = ["subject"]
next_step_type = CheckPhase1EchoTimeStep
class PhaseTypeStep(BranchStep):
is_vertical = True
header_str = "Specify the type of the phase images"
options = {
"One phase difference image": PhaseDiffStep,
"Two phase images": Phase1Step,
}
def get_magnitude_steps(m_next_step_type):
class Magnitude2Step(FilePatternStep):
filetype_str = "second set of magnitude image"
filedict = {**filedict, "suffix": "magnitude2"}
schema = BaseFmapFileSchema
required_in_path_entities = ["subject"]
next_step_type = m_next_step_type
class Magnitude1Step(Magnitude2Step):
filetype_str = "first set of magnitude image"
filedict = {**filedict, "suffix": "magnitude1"}
next_step_type = Magnitude2Step
class MagnitudeStep(Magnitude1Step):
filetype_str = "magnitude image"
next_step_type = m_next_step_type
class MagnitudeTypeStep(BranchStep):
is_vertical = True
header_str = "Specify the type of the magnitude images"
options = {
"One magnitude image file": MagnitudeStep,
"Two magnitude image files": Magnitude1Step,
}
return MagnitudeTypeStep
class EPIStep(FilePatternStep):
filetype_str = "blip-up blip-down EPI image"
filedict = {**filedict, "suffix": "epi"}
schema = EPIFmapFileSchema
required_in_path_entities = ["subject"]
next_step_type = HasMoreFmapStep
class FmapTypeStep(BranchStep):
is_vertical = True
header_str = "Specify the type of the field maps"
options = {
"EPI (blip-up blip-down)": EPIStep,
"Phase difference and magnitude (used by Siemens scanners)": get_magnitude_steps(
PhaseTypeStep
),
"Scanner-computed field map and magnitude (used by GE / Philips scanners)": get_magnitude_steps(
FieldMapStep
),
}
class HasFmapStep(YesNoStep):
header_str = "Specify field maps?"
yes_step_type = FmapTypeStep
no_step_type = next_step_type
HasMoreFmapStep.yes_step_type = FmapTypeStep
FmapStep = HasFmapStep | 0.55254 | 0.206714 |
import numpy as np
from scipy.signal import resample
from scipy.fftpack import fft,ifft,fftshift,fftfreq
class Convolution():
def __init__(self):
print ('Convolution module loaded')
def generate_wavelet_fourier(len_wavelet,
f_start,
f_stop,
deltafreq,
sampling_rate,
f0,
normalization):
'''
Computes the wavelet coefficients at all scales and makes corresponding Fourier transform
When different signal scalograms are computed with the exact same coefficient
this function can be excecuted once and the result is passed directly to compute_morlet_scalogram
Output = wf : Fourier transform of the waverlet coefficients (after weighting), Fourier freq at first
'''
#Computes final map scales
scales = f0/np.arange(f_start,f_stop,deltafreq)*sampling_rate
#compute wavelet coeffs at all scales
xi = np.arange(-len_wavelet/2.0,len_wavelet/2.0)
xsd = xi[:,np.newaxis()] / scales
wavelet_coefs = np.exp(complex(1j)*2.0*np.pi*f0*xsd)*np.exp(-np.power(xsd,2)/2.)
weighting_function = lambda x: x**(-(1.0))
wavelet_coefs = wavelet_coefs*weighting_function(scales[np.newaxis(),:])
#Transform the wavelet into the Fourier domain
wf=fft(wavelet_coefs,axis=0)
wf=wf.conj() #Used to be an error here
return wf
def compute_morlet_scalogram(ana,
f_start=5,
f_stop=100,
deltafreq=1,
sampling_rate=200,
t_start=-np.inf,
t_stop=np.inf,
f0=2.5,
normalisation=0,
wf=None):
#Reduce the signal to the limits
sig = ana.signal[(ana.t()>=t_start)&(ana.t()<=t_stop)]
if sig.size>0:
if wf is None:
if ana.sampling_rate != sampling_rate:
sig = resample(sig,sig.size*sampling_rate/ana.sampling_rate)
wf = Convolution.generate_wavelet_fourier(sig.size,max(f_start,deltafreq),min(f_stop,ana.sampling_rate/2.),deltafreq,sampling_rate,f0,normalisation)
else:
if sig.size != wf.shape[0]:
sig=resample(sig,wf.shape[0])
#Transform the signal in Fourier domain
sigf=fft(sig)
#Convolve (mult. in Fourier space)
wt_tmp = ifft(sigf[:,np.newaxis()]*wf,axis=0)
#Shift output from ifft
wt = fftshift(wt_tmp,axes=[0])
else:
scales = f0/np.arange(f_start,f_stop,deltafreq)*sampling_rate
wt = np.empty((0,scales.size),dtype='complex')
return wt
def FFT(signal,sampling_rate,plot=True,freq_range=[0,200]):
'''
signal (array) : the signal
sampling_rate (int or float) : signal sampling rate in Hz
'''
signal = np.asarray(signal)
time_vector = np.arange(0,len(signal),1)/sampling_rate
timewindow = signal.size
period = 1./sampling_rate
# Fourrier transform
signal_fft = abs(fft(signal)) # abs to get real part only
# get frequential domain
signal_freq = fftfreq(timewindow,period)
# Get real values from FFT and frequency domain
signal_fft = signal_fft[0:len(signal_fft)//2]
signal_freq = signal_freq[0:len(signal_freq)//2]
if plot==True:
from matplotlib import pyplot as plt
fig, ax = plt.subplots(2,1)
#Plot the signal
ax[0].set_title('signal')
ax[0].plot(time_vector, signal)
ax[0].set_xlabel('Time (s)'); ax[0].set_ylabel('Signal Amp')
#Plot the spectrum
ax[1].plot(signal_freq,signal_fft)
ax[1].set_xlabel('Freq. range (Hz)'); ax[1].set_ylabel('Freq. Power')
ax[1].set_xlim(freq_range[0],freq_range[1])
plt.tight_layout()
plt.show();
return signal_fft, signal_freq | electroPyy/core/Convolution.py | import numpy as np
from scipy.signal import resample
from scipy.fftpack import fft,ifft,fftshift,fftfreq
class Convolution():
def __init__(self):
print ('Convolution module loaded')
def generate_wavelet_fourier(len_wavelet,
f_start,
f_stop,
deltafreq,
sampling_rate,
f0,
normalization):
'''
Computes the wavelet coefficients at all scales and makes corresponding Fourier transform
When different signal scalograms are computed with the exact same coefficient
this function can be excecuted once and the result is passed directly to compute_morlet_scalogram
Output = wf : Fourier transform of the waverlet coefficients (after weighting), Fourier freq at first
'''
#Computes final map scales
scales = f0/np.arange(f_start,f_stop,deltafreq)*sampling_rate
#compute wavelet coeffs at all scales
xi = np.arange(-len_wavelet/2.0,len_wavelet/2.0)
xsd = xi[:,np.newaxis()] / scales
wavelet_coefs = np.exp(complex(1j)*2.0*np.pi*f0*xsd)*np.exp(-np.power(xsd,2)/2.)
weighting_function = lambda x: x**(-(1.0))
wavelet_coefs = wavelet_coefs*weighting_function(scales[np.newaxis(),:])
#Transform the wavelet into the Fourier domain
wf=fft(wavelet_coefs,axis=0)
wf=wf.conj() #Used to be an error here
return wf
def compute_morlet_scalogram(ana,
f_start=5,
f_stop=100,
deltafreq=1,
sampling_rate=200,
t_start=-np.inf,
t_stop=np.inf,
f0=2.5,
normalisation=0,
wf=None):
#Reduce the signal to the limits
sig = ana.signal[(ana.t()>=t_start)&(ana.t()<=t_stop)]
if sig.size>0:
if wf is None:
if ana.sampling_rate != sampling_rate:
sig = resample(sig,sig.size*sampling_rate/ana.sampling_rate)
wf = Convolution.generate_wavelet_fourier(sig.size,max(f_start,deltafreq),min(f_stop,ana.sampling_rate/2.),deltafreq,sampling_rate,f0,normalisation)
else:
if sig.size != wf.shape[0]:
sig=resample(sig,wf.shape[0])
#Transform the signal in Fourier domain
sigf=fft(sig)
#Convolve (mult. in Fourier space)
wt_tmp = ifft(sigf[:,np.newaxis()]*wf,axis=0)
#Shift output from ifft
wt = fftshift(wt_tmp,axes=[0])
else:
scales = f0/np.arange(f_start,f_stop,deltafreq)*sampling_rate
wt = np.empty((0,scales.size),dtype='complex')
return wt
def FFT(signal,sampling_rate,plot=True,freq_range=[0,200]):
'''
signal (array) : the signal
sampling_rate (int or float) : signal sampling rate in Hz
'''
signal = np.asarray(signal)
time_vector = np.arange(0,len(signal),1)/sampling_rate
timewindow = signal.size
period = 1./sampling_rate
# Fourrier transform
signal_fft = abs(fft(signal)) # abs to get real part only
# get frequential domain
signal_freq = fftfreq(timewindow,period)
# Get real values from FFT and frequency domain
signal_fft = signal_fft[0:len(signal_fft)//2]
signal_freq = signal_freq[0:len(signal_freq)//2]
if plot==True:
from matplotlib import pyplot as plt
fig, ax = plt.subplots(2,1)
#Plot the signal
ax[0].set_title('signal')
ax[0].plot(time_vector, signal)
ax[0].set_xlabel('Time (s)'); ax[0].set_ylabel('Signal Amp')
#Plot the spectrum
ax[1].plot(signal_freq,signal_fft)
ax[1].set_xlabel('Freq. range (Hz)'); ax[1].set_ylabel('Freq. Power')
ax[1].set_xlim(freq_range[0],freq_range[1])
plt.tight_layout()
plt.show();
return signal_fft, signal_freq | 0.597843 | 0.457924 |
from django.db import models
from users.models import CustomUser
# Create your models here.
class Friend(models.Model):
# Remove nullability later.
user_profile = models.ForeignKey(CustomUser, related_name="owner", on_delete=models.CASCADE, null=True)
friends = models.ManyToManyField(CustomUser)
pending_friends = models.ManyToManyField(CustomUser, related_name="pending_friends")
requested_friends = models.ManyToManyField(CustomUser, related_name="requested_friends")
@classmethod
def add_pending_friend(cls, current_user, new_friend):
# Add the current user to the pending friends of the recipient.
Friend, created = cls.objects.get_or_create(user_profile_id=new_friend.id)
Friend.pending_friends.add(current_user)
# Add the requested friend to the list of friends that have been requested.
Friend, created = cls.objects.get_or_create(user_profile_id=current_user.id)
Friend.requested_friends.add(new_friend)
@classmethod
def confirm_friend(cls, current_user, new_friend):
# Get or create returns a tuple with the first object being the object returned
# the second field is a boolean which tells you if an object was created.
Friend, created = cls.objects.get_or_create(user_profile_id=current_user.id)
# Check if friend is pending to make sure they initiated the request.
# CustomUser record is then removed from the pending_friends table.
if Friend.pending_friends.get(pk=new_friend.id):
# Send request to the destination user
Friend.friends.add(new_friend)
Friend.pending_friends.remove(new_friend)
Friend.requested_friends.remove(new_friend)
# Set the recipient as a member of the requestor's pending list
Friend, created = cls.objects.get_or_create(user_profile_id=new_friend.id)
Friend.friends.add(current_user)
Friend.pending_friends.remove(current_user)
Friend.requested_friends.remove(current_user)
@classmethod
def remove_friend(cls, current_user, new_friend):
Friend, created = cls.objects.get_or_create(user_profile_id=current_user.id)
Friend.friends.remove(new_friend)
Friend, created = cls.objects.get_or_create(user_profile_id=new_friend.id)
Friend.friends.remove(current_user)
@classmethod
def remove_pending_friend(cls, current_user, new_friend):
Friend, created = cls.objects.get_or_create(user_profile_id=current_user.id)
Friend.pending_friends.remove(new_friend)
Friend, created = cls.objects.get_or_create(user_profile_id=new_friend.id)
Friend.requested_friends.remove(current_user)
@classmethod
def remove_requested_friend(cls, current_user, new_friend):
Friend, created = cls.objects.get_or_create(user_profile_id=new_friend.id)
Friend.pending_friends.remove(current_user)
Friend, created = cls.objects.get_or_create(user_profile_id=current_user.id)
Friend.requested_friends.remove(new_friend)
def __str__(self):
return str(self.user_profile) | friends/models.py | from django.db import models
from users.models import CustomUser
# Create your models here.
class Friend(models.Model):
# Remove nullability later.
user_profile = models.ForeignKey(CustomUser, related_name="owner", on_delete=models.CASCADE, null=True)
friends = models.ManyToManyField(CustomUser)
pending_friends = models.ManyToManyField(CustomUser, related_name="pending_friends")
requested_friends = models.ManyToManyField(CustomUser, related_name="requested_friends")
@classmethod
def add_pending_friend(cls, current_user, new_friend):
# Add the current user to the pending friends of the recipient.
Friend, created = cls.objects.get_or_create(user_profile_id=new_friend.id)
Friend.pending_friends.add(current_user)
# Add the requested friend to the list of friends that have been requested.
Friend, created = cls.objects.get_or_create(user_profile_id=current_user.id)
Friend.requested_friends.add(new_friend)
@classmethod
def confirm_friend(cls, current_user, new_friend):
# Get or create returns a tuple with the first object being the object returned
# the second field is a boolean which tells you if an object was created.
Friend, created = cls.objects.get_or_create(user_profile_id=current_user.id)
# Check if friend is pending to make sure they initiated the request.
# CustomUser record is then removed from the pending_friends table.
if Friend.pending_friends.get(pk=new_friend.id):
# Send request to the destination user
Friend.friends.add(new_friend)
Friend.pending_friends.remove(new_friend)
Friend.requested_friends.remove(new_friend)
# Set the recipient as a member of the requestor's pending list
Friend, created = cls.objects.get_or_create(user_profile_id=new_friend.id)
Friend.friends.add(current_user)
Friend.pending_friends.remove(current_user)
Friend.requested_friends.remove(current_user)
@classmethod
def remove_friend(cls, current_user, new_friend):
Friend, created = cls.objects.get_or_create(user_profile_id=current_user.id)
Friend.friends.remove(new_friend)
Friend, created = cls.objects.get_or_create(user_profile_id=new_friend.id)
Friend.friends.remove(current_user)
@classmethod
def remove_pending_friend(cls, current_user, new_friend):
Friend, created = cls.objects.get_or_create(user_profile_id=current_user.id)
Friend.pending_friends.remove(new_friend)
Friend, created = cls.objects.get_or_create(user_profile_id=new_friend.id)
Friend.requested_friends.remove(current_user)
@classmethod
def remove_requested_friend(cls, current_user, new_friend):
Friend, created = cls.objects.get_or_create(user_profile_id=new_friend.id)
Friend.pending_friends.remove(current_user)
Friend, created = cls.objects.get_or_create(user_profile_id=current_user.id)
Friend.requested_friends.remove(new_friend)
def __str__(self):
return str(self.user_profile) | 0.546254 | 0.137677 |
import click
from pathlib import Path
import shutil
import json
import re
from .utils import render_template
@click.command()
@click.option('--debug/--no-debug', default=False)
@click.pass_context
def init(ctx, debug):
"""Initiate sit project on current folder."""
DEBUG = ctx.obj['DEBUG'] or debug
MODULE_PATH = ctx.obj['MODULE_PATH']
PROJECT_PATH = Path('.')
PROJECT_NAME = PROJECT_PATH.resolve().name
# Check if there is package.
if not (PROJECT_PATH / 'setup.py').is_file():
click.echo(click.style('ERROR: ', 'red')+"There is no python package found in this directory.")
ctx.exit()
# Check if project initiated
SIT_PATH = PROJECT_PATH / '.sit'
if SIT_PATH.is_dir():
# Load config
with open(SIT_PATH / 'config.json') as file:
SIT_CONFIG = json.load(file)
# Check if remote server is set up
if SIT_CONFIG['remote_setup']:
click.confirm('Remote server is already set up. Do you want to proceed it anyway?', abort=True)
REMOTE_ADDRESS = click.prompt('Remote server address', type=str)
REMOTE_USER = click.prompt('Remote user', type=str)
# Create .sit directory
SIT_PATH = PROJECT_PATH / '.sit'
SIT_PATH.mkdir(parents=True, exist_ok=True)
# Create config.json
config = {
'remote_address': REMOTE_ADDRESS,
'remote_username': REMOTE_USER,
'remote_project_path': '/home/{}/sit/{}'.format(REMOTE_USER, PROJECT_NAME),
'remote_setup': False,
# TODO: Update this to 'localhost' after support of nginx
'gunicorn_host': '0.0.0.0',
'gunicorn_port': 8000,
'gunicorn_user': REMOTE_USER,
'gunicorn_group': REMOTE_USER,
'server_name': '',
}
CONFIG_PATH = SIT_PATH / 'config.json'
with open(str(CONFIG_PATH), 'w') as file:
json.dump(config, file, indent=4)
# Copy supervisord.conf
shutil.copyfile(
MODULE_PATH / 'templates/sit/supervisord.conf',
SIT_PATH / 'supervisord.conf'
)
# Append .gitignore
GITIGNORE_PATH = PROJECT_PATH / '.gitignore'
with open(str(GITIGNORE_PATH)) as file:
gitignore = file.read()
if re.search(r'# sit', gitignore) is None:
with open(str(GITIGNORE_PATH), 'a') as file:
file.write("\n# sit\n.sit/\n")
success_message = """
Initiated {sit} for {project_name}
Configuration file is created at {config_path}
You can manually configure this file.
Now you can make your first deployment by running:
{sit_deploy}
Deploys the application to the production server.
This will set up the remote server at the first run.
After then, it'll just deploy your application.""".format(
sit=click.style('sit', 'cyan'),
project_name=click.style(PROJECT_NAME, 'green'),
config_path=click.style(str(CONFIG_PATH), 'green'),
sit_deploy=click.style('sit deploy', 'cyan')
)
click.echo(success_message) | sitmango/scripts/init.py | import click
from pathlib import Path
import shutil
import json
import re
from .utils import render_template
@click.command()
@click.option('--debug/--no-debug', default=False)
@click.pass_context
def init(ctx, debug):
"""Initiate sit project on current folder."""
DEBUG = ctx.obj['DEBUG'] or debug
MODULE_PATH = ctx.obj['MODULE_PATH']
PROJECT_PATH = Path('.')
PROJECT_NAME = PROJECT_PATH.resolve().name
# Check if there is package.
if not (PROJECT_PATH / 'setup.py').is_file():
click.echo(click.style('ERROR: ', 'red')+"There is no python package found in this directory.")
ctx.exit()
# Check if project initiated
SIT_PATH = PROJECT_PATH / '.sit'
if SIT_PATH.is_dir():
# Load config
with open(SIT_PATH / 'config.json') as file:
SIT_CONFIG = json.load(file)
# Check if remote server is set up
if SIT_CONFIG['remote_setup']:
click.confirm('Remote server is already set up. Do you want to proceed it anyway?', abort=True)
REMOTE_ADDRESS = click.prompt('Remote server address', type=str)
REMOTE_USER = click.prompt('Remote user', type=str)
# Create .sit directory
SIT_PATH = PROJECT_PATH / '.sit'
SIT_PATH.mkdir(parents=True, exist_ok=True)
# Create config.json
config = {
'remote_address': REMOTE_ADDRESS,
'remote_username': REMOTE_USER,
'remote_project_path': '/home/{}/sit/{}'.format(REMOTE_USER, PROJECT_NAME),
'remote_setup': False,
# TODO: Update this to 'localhost' after support of nginx
'gunicorn_host': '0.0.0.0',
'gunicorn_port': 8000,
'gunicorn_user': REMOTE_USER,
'gunicorn_group': REMOTE_USER,
'server_name': '',
}
CONFIG_PATH = SIT_PATH / 'config.json'
with open(str(CONFIG_PATH), 'w') as file:
json.dump(config, file, indent=4)
# Copy supervisord.conf
shutil.copyfile(
MODULE_PATH / 'templates/sit/supervisord.conf',
SIT_PATH / 'supervisord.conf'
)
# Append .gitignore
GITIGNORE_PATH = PROJECT_PATH / '.gitignore'
with open(str(GITIGNORE_PATH)) as file:
gitignore = file.read()
if re.search(r'# sit', gitignore) is None:
with open(str(GITIGNORE_PATH), 'a') as file:
file.write("\n# sit\n.sit/\n")
success_message = """
Initiated {sit} for {project_name}
Configuration file is created at {config_path}
You can manually configure this file.
Now you can make your first deployment by running:
{sit_deploy}
Deploys the application to the production server.
This will set up the remote server at the first run.
After then, it'll just deploy your application.""".format(
sit=click.style('sit', 'cyan'),
project_name=click.style(PROJECT_NAME, 'green'),
config_path=click.style(str(CONFIG_PATH), 'green'),
sit_deploy=click.style('sit deploy', 'cyan')
)
click.echo(success_message) | 0.26827 | 0.05634 |
from unittest.mock import create_autospec
import pytest
import smarttub
pytestmark = pytest.mark.asyncio
@pytest.fixture(name='mock_account')
def mock_account(mock_api):
account = create_autospec(smarttub.Account, instance=True)
return account
@pytest.fixture(name='spa')
def spa(mock_api, mock_account):
spa = smarttub.Spa(mock_api, mock_account, id='id1', brand='brand1', model='model1')
return spa
async def test_get_status(mock_api, spa):
mock_api.request.return_value = 'status1'
status = await spa.get_status()
assert status == 'status1'
async def test_get_pumps(mock_api, spa):
mock_api.request.return_value = {
'pumps': [{
'id': 'pid1',
'speed': 'speed1',
'state': 'state1',
'type': 'type1',
}]
}
pumps = await spa.get_pumps()
assert len(pumps) == 1
pump = pumps[0]
assert pump.id == 'pid1'
async def test_get_lights(mock_api, spa):
mock_api.request.return_value = {
'lights': [{
'color': {'blue': 0, 'green': 0, 'red': 0, 'white': 0},
'intensity': 0,
'mode': 'OFF',
'zone': 1,
}]
}
lights = await spa.get_lights()
assert len(lights) == 1
light = lights[0]
assert light.zone == 1
async def test_get_errors(mock_api, spa):
mock_api.request.return_value = {'content': [{'code': 11, 'title': 'Flow Switch Stuck Open', 'description': None, 'createdAt': '2019-12-11T18:51:10.123Z', 'updatedAt': '2020-07-14T19:00:50.705Z', 'active': True, 'errorType': 'TUB_ERROR'}], 'pageable': {'sort': {'sorted': True, 'unsorted': False, 'empty': False}, 'pageSize': 10, 'pageNumber': 0, 'offset': 0, 'paged': True, 'unpaged': False}, 'last': True, 'totalPages': 1, 'totalElements': 1, 'first': True, 'sort': {'sorted': True, 'unsorted': False, 'empty': False}, 'numberOfElements': 1, 'size': 10, 'number': 0, 'empty': False}
errors = await spa.get_errors()
assert len(errors) == 1
error = errors[0]
assert error.title == 'Flow Switch Stuck Open'
async def test_get_reminders(mock_api, spa):
mock_api.request.return_value = {
'reminders': [{
"id": "id1",
"lastUpdated": "2020-07-09T06:42:53.857Z",
"name": "name1",
"remainingDuration": 23,
"snoozed": False,
"state": "INACTIVE"
}]
}
reminders = await spa.get_reminders()
assert len(reminders) == 1
reminder = reminders[0]
assert reminder.id == 'id1'
assert reminder.name == "name1" | tests/test_spa.py | from unittest.mock import create_autospec
import pytest
import smarttub
pytestmark = pytest.mark.asyncio
@pytest.fixture(name='mock_account')
def mock_account(mock_api):
account = create_autospec(smarttub.Account, instance=True)
return account
@pytest.fixture(name='spa')
def spa(mock_api, mock_account):
spa = smarttub.Spa(mock_api, mock_account, id='id1', brand='brand1', model='model1')
return spa
async def test_get_status(mock_api, spa):
mock_api.request.return_value = 'status1'
status = await spa.get_status()
assert status == 'status1'
async def test_get_pumps(mock_api, spa):
mock_api.request.return_value = {
'pumps': [{
'id': 'pid1',
'speed': 'speed1',
'state': 'state1',
'type': 'type1',
}]
}
pumps = await spa.get_pumps()
assert len(pumps) == 1
pump = pumps[0]
assert pump.id == 'pid1'
async def test_get_lights(mock_api, spa):
mock_api.request.return_value = {
'lights': [{
'color': {'blue': 0, 'green': 0, 'red': 0, 'white': 0},
'intensity': 0,
'mode': 'OFF',
'zone': 1,
}]
}
lights = await spa.get_lights()
assert len(lights) == 1
light = lights[0]
assert light.zone == 1
async def test_get_errors(mock_api, spa):
mock_api.request.return_value = {'content': [{'code': 11, 'title': 'Flow Switch Stuck Open', 'description': None, 'createdAt': '2019-12-11T18:51:10.123Z', 'updatedAt': '2020-07-14T19:00:50.705Z', 'active': True, 'errorType': 'TUB_ERROR'}], 'pageable': {'sort': {'sorted': True, 'unsorted': False, 'empty': False}, 'pageSize': 10, 'pageNumber': 0, 'offset': 0, 'paged': True, 'unpaged': False}, 'last': True, 'totalPages': 1, 'totalElements': 1, 'first': True, 'sort': {'sorted': True, 'unsorted': False, 'empty': False}, 'numberOfElements': 1, 'size': 10, 'number': 0, 'empty': False}
errors = await spa.get_errors()
assert len(errors) == 1
error = errors[0]
assert error.title == 'Flow Switch Stuck Open'
async def test_get_reminders(mock_api, spa):
mock_api.request.return_value = {
'reminders': [{
"id": "id1",
"lastUpdated": "2020-07-09T06:42:53.857Z",
"name": "name1",
"remainingDuration": 23,
"snoozed": False,
"state": "INACTIVE"
}]
}
reminders = await spa.get_reminders()
assert len(reminders) == 1
reminder = reminders[0]
assert reminder.id == 'id1'
assert reminder.name == "name1" | 0.653016 | 0.614134 |
data = (
'ga', # 0x00
'gag', # 0x01
'gagg', # 0x02
'gags', # 0x03
'gan', # 0x04
'ganj', # 0x05
'ganh', # 0x06
'gad', # 0x07
'gal', # 0x08
'galg', # 0x09
'galm', # 0x0a
'galb', # 0x0b
'gals', # 0x0c
'galt', # 0x0d
'galp', # 0x0e
'galh', # 0x0f
'gam', # 0x10
'gab', # 0x11
'gabs', # 0x12
'gas', # 0x13
'gass', # 0x14
'gang', # 0x15
'gaj', # 0x16
'gac', # 0x17
'gak', # 0x18
'gat', # 0x19
'gap', # 0x1a
'gah', # 0x1b
'gae', # 0x1c
'gaeg', # 0x1d
'gaegg', # 0x1e
'gaegs', # 0x1f
'gaen', # 0x20
'gaenj', # 0x21
'gaenh', # 0x22
'gaed', # 0x23
'gael', # 0x24
'gaelg', # 0x25
'gaelm', # 0x26
'gaelb', # 0x27
'gaels', # 0x28
'gaelt', # 0x29
'gaelp', # 0x2a
'gaelh', # 0x2b
'gaem', # 0x2c
'gaeb', # 0x2d
'gaebs', # 0x2e
'gaes', # 0x2f
'gaess', # 0x30
'gaeng', # 0x31
'gaej', # 0x32
'gaec', # 0x33
'gaek', # 0x34
'gaet', # 0x35
'gaep', # 0x36
'gaeh', # 0x37
'gya', # 0x38
'gyag', # 0x39
'gyagg', # 0x3a
'gyags', # 0x3b
'gyan', # 0x3c
'gyanj', # 0x3d
'gyanh', # 0x3e
'gyad', # 0x3f
'gyal', # 0x40
'gyalg', # 0x41
'gyalm', # 0x42
'gyalb', # 0x43
'gyals', # 0x44
'gyalt', # 0x45
'gyalp', # 0x46
'gyalh', # 0x47
'gyam', # 0x48
'gyab', # 0x49
'gyabs', # 0x4a
'gyas', # 0x4b
'gyass', # 0x4c
'gyang', # 0x4d
'gyaj', # 0x4e
'gyac', # 0x4f
'gyak', # 0x50
'gyat', # 0x51
'gyap', # 0x52
'gyah', # 0x53
'gyae', # 0x54
'gyaeg', # 0x55
'gyaegg', # 0x56
'gyaegs', # 0x57
'gyaen', # 0x58
'gyaenj', # 0x59
'gyaenh', # 0x5a
'gyaed', # 0x5b
'gyael', # 0x5c
'gyaelg', # 0x5d
'gyaelm', # 0x5e
'gyaelb', # 0x5f
'gyaels', # 0x60
'gyaelt', # 0x61
'gyaelp', # 0x62
'gyaelh', # 0x63
'gyaem', # 0x64
'gyaeb', # 0x65
'gyaebs', # 0x66
'gyaes', # 0x67
'gyaess', # 0x68
'gyaeng', # 0x69
'gyaej', # 0x6a
'gyaec', # 0x6b
'gyaek', # 0x6c
'gyaet', # 0x6d
'gyaep', # 0x6e
'gyaeh', # 0x6f
'geo', # 0x70
'geog', # 0x71
'geogg', # 0x72
'geogs', # 0x73
'geon', # 0x74
'geonj', # 0x75
'geonh', # 0x76
'geod', # 0x77
'geol', # 0x78
'geolg', # 0x79
'geolm', # 0x7a
'geolb', # 0x7b
'geols', # 0x7c
'geolt', # 0x7d
'geolp', # 0x7e
'geolh', # 0x7f
'geom', # 0x80
'geob', # 0x81
'geobs', # 0x82
'geos', # 0x83
'geoss', # 0x84
'geong', # 0x85
'geoj', # 0x86
'geoc', # 0x87
'geok', # 0x88
'geot', # 0x89
'geop', # 0x8a
'geoh', # 0x8b
'ge', # 0x8c
'geg', # 0x8d
'gegg', # 0x8e
'gegs', # 0x8f
'gen', # 0x90
'genj', # 0x91
'genh', # 0x92
'ged', # 0x93
'gel', # 0x94
'gelg', # 0x95
'gelm', # 0x96
'gelb', # 0x97
'gels', # 0x98
'gelt', # 0x99
'gelp', # 0x9a
'gelh', # 0x9b
'gem', # 0x9c
'geb', # 0x9d
'gebs', # 0x9e
'ges', # 0x9f
'gess', # 0xa0
'geng', # 0xa1
'gej', # 0xa2
'gec', # 0xa3
'gek', # 0xa4
'get', # 0xa5
'gep', # 0xa6
'geh', # 0xa7
'gyeo', # 0xa8
'gyeog', # 0xa9
'gyeogg', # 0xaa
'gyeogs', # 0xab
'gyeon', # 0xac
'gyeonj', # 0xad
'gyeonh', # 0xae
'gyeod', # 0xaf
'gyeol', # 0xb0
'gyeolg', # 0xb1
'gyeolm', # 0xb2
'gyeolb', # 0xb3
'gyeols', # 0xb4
'gyeolt', # 0xb5
'gyeolp', # 0xb6
'gyeolh', # 0xb7
'gyeom', # 0xb8
'gyeob', # 0xb9
'gyeobs', # 0xba
'gyeos', # 0xbb
'gyeoss', # 0xbc
'gyeong', # 0xbd
'gyeoj', # 0xbe
'gyeoc', # 0xbf
'gyeok', # 0xc0
'gyeot', # 0xc1
'gyeop', # 0xc2
'gyeoh', # 0xc3
'gye', # 0xc4
'gyeg', # 0xc5
'gyegg', # 0xc6
'gyegs', # 0xc7
'gyen', # 0xc8
'gyenj', # 0xc9
'gyenh', # 0xca
'gyed', # 0xcb
'gyel', # 0xcc
'gyelg', # 0xcd
'gyelm', # 0xce
'gyelb', # 0xcf
'gyels', # 0xd0
'gyelt', # 0xd1
'gyelp', # 0xd2
'gyelh', # 0xd3
'gyem', # 0xd4
'gyeb', # 0xd5
'gyebs', # 0xd6
'gyes', # 0xd7
'gyess', # 0xd8
'gyeng', # 0xd9
'gyej', # 0xda
'gyec', # 0xdb
'gyek', # 0xdc
'gyet', # 0xdd
'gyep', # 0xde
'gyeh', # 0xdf
'go', # 0xe0
'gog', # 0xe1
'gogg', # 0xe2
'gogs', # 0xe3
'gon', # 0xe4
'gonj', # 0xe5
'gonh', # 0xe6
'god', # 0xe7
'gol', # 0xe8
'golg', # 0xe9
'golm', # 0xea
'golb', # 0xeb
'gols', # 0xec
'golt', # 0xed
'golp', # 0xee
'golh', # 0xef
'gom', # 0xf0
'gob', # 0xf1
'gobs', # 0xf2
'gos', # 0xf3
'goss', # 0xf4
'gong', # 0xf5
'goj', # 0xf6
'goc', # 0xf7
'gok', # 0xf8
'got', # 0xf9
'gop', # 0xfa
'goh', # 0xfb
'gwa', # 0xfc
'gwag', # 0xfd
'gwagg', # 0xfe
'gwags', # 0xff
) | env/lib/python3.8/site-packages/unidecode/x0ac.py | data = (
'ga', # 0x00
'gag', # 0x01
'gagg', # 0x02
'gags', # 0x03
'gan', # 0x04
'ganj', # 0x05
'ganh', # 0x06
'gad', # 0x07
'gal', # 0x08
'galg', # 0x09
'galm', # 0x0a
'galb', # 0x0b
'gals', # 0x0c
'galt', # 0x0d
'galp', # 0x0e
'galh', # 0x0f
'gam', # 0x10
'gab', # 0x11
'gabs', # 0x12
'gas', # 0x13
'gass', # 0x14
'gang', # 0x15
'gaj', # 0x16
'gac', # 0x17
'gak', # 0x18
'gat', # 0x19
'gap', # 0x1a
'gah', # 0x1b
'gae', # 0x1c
'gaeg', # 0x1d
'gaegg', # 0x1e
'gaegs', # 0x1f
'gaen', # 0x20
'gaenj', # 0x21
'gaenh', # 0x22
'gaed', # 0x23
'gael', # 0x24
'gaelg', # 0x25
'gaelm', # 0x26
'gaelb', # 0x27
'gaels', # 0x28
'gaelt', # 0x29
'gaelp', # 0x2a
'gaelh', # 0x2b
'gaem', # 0x2c
'gaeb', # 0x2d
'gaebs', # 0x2e
'gaes', # 0x2f
'gaess', # 0x30
'gaeng', # 0x31
'gaej', # 0x32
'gaec', # 0x33
'gaek', # 0x34
'gaet', # 0x35
'gaep', # 0x36
'gaeh', # 0x37
'gya', # 0x38
'gyag', # 0x39
'gyagg', # 0x3a
'gyags', # 0x3b
'gyan', # 0x3c
'gyanj', # 0x3d
'gyanh', # 0x3e
'gyad', # 0x3f
'gyal', # 0x40
'gyalg', # 0x41
'gyalm', # 0x42
'gyalb', # 0x43
'gyals', # 0x44
'gyalt', # 0x45
'gyalp', # 0x46
'gyalh', # 0x47
'gyam', # 0x48
'gyab', # 0x49
'gyabs', # 0x4a
'gyas', # 0x4b
'gyass', # 0x4c
'gyang', # 0x4d
'gyaj', # 0x4e
'gyac', # 0x4f
'gyak', # 0x50
'gyat', # 0x51
'gyap', # 0x52
'gyah', # 0x53
'gyae', # 0x54
'gyaeg', # 0x55
'gyaegg', # 0x56
'gyaegs', # 0x57
'gyaen', # 0x58
'gyaenj', # 0x59
'gyaenh', # 0x5a
'gyaed', # 0x5b
'gyael', # 0x5c
'gyaelg', # 0x5d
'gyaelm', # 0x5e
'gyaelb', # 0x5f
'gyaels', # 0x60
'gyaelt', # 0x61
'gyaelp', # 0x62
'gyaelh', # 0x63
'gyaem', # 0x64
'gyaeb', # 0x65
'gyaebs', # 0x66
'gyaes', # 0x67
'gyaess', # 0x68
'gyaeng', # 0x69
'gyaej', # 0x6a
'gyaec', # 0x6b
'gyaek', # 0x6c
'gyaet', # 0x6d
'gyaep', # 0x6e
'gyaeh', # 0x6f
'geo', # 0x70
'geog', # 0x71
'geogg', # 0x72
'geogs', # 0x73
'geon', # 0x74
'geonj', # 0x75
'geonh', # 0x76
'geod', # 0x77
'geol', # 0x78
'geolg', # 0x79
'geolm', # 0x7a
'geolb', # 0x7b
'geols', # 0x7c
'geolt', # 0x7d
'geolp', # 0x7e
'geolh', # 0x7f
'geom', # 0x80
'geob', # 0x81
'geobs', # 0x82
'geos', # 0x83
'geoss', # 0x84
'geong', # 0x85
'geoj', # 0x86
'geoc', # 0x87
'geok', # 0x88
'geot', # 0x89
'geop', # 0x8a
'geoh', # 0x8b
'ge', # 0x8c
'geg', # 0x8d
'gegg', # 0x8e
'gegs', # 0x8f
'gen', # 0x90
'genj', # 0x91
'genh', # 0x92
'ged', # 0x93
'gel', # 0x94
'gelg', # 0x95
'gelm', # 0x96
'gelb', # 0x97
'gels', # 0x98
'gelt', # 0x99
'gelp', # 0x9a
'gelh', # 0x9b
'gem', # 0x9c
'geb', # 0x9d
'gebs', # 0x9e
'ges', # 0x9f
'gess', # 0xa0
'geng', # 0xa1
'gej', # 0xa2
'gec', # 0xa3
'gek', # 0xa4
'get', # 0xa5
'gep', # 0xa6
'geh', # 0xa7
'gyeo', # 0xa8
'gyeog', # 0xa9
'gyeogg', # 0xaa
'gyeogs', # 0xab
'gyeon', # 0xac
'gyeonj', # 0xad
'gyeonh', # 0xae
'gyeod', # 0xaf
'gyeol', # 0xb0
'gyeolg', # 0xb1
'gyeolm', # 0xb2
'gyeolb', # 0xb3
'gyeols', # 0xb4
'gyeolt', # 0xb5
'gyeolp', # 0xb6
'gyeolh', # 0xb7
'gyeom', # 0xb8
'gyeob', # 0xb9
'gyeobs', # 0xba
'gyeos', # 0xbb
'gyeoss', # 0xbc
'gyeong', # 0xbd
'gyeoj', # 0xbe
'gyeoc', # 0xbf
'gyeok', # 0xc0
'gyeot', # 0xc1
'gyeop', # 0xc2
'gyeoh', # 0xc3
'gye', # 0xc4
'gyeg', # 0xc5
'gyegg', # 0xc6
'gyegs', # 0xc7
'gyen', # 0xc8
'gyenj', # 0xc9
'gyenh', # 0xca
'gyed', # 0xcb
'gyel', # 0xcc
'gyelg', # 0xcd
'gyelm', # 0xce
'gyelb', # 0xcf
'gyels', # 0xd0
'gyelt', # 0xd1
'gyelp', # 0xd2
'gyelh', # 0xd3
'gyem', # 0xd4
'gyeb', # 0xd5
'gyebs', # 0xd6
'gyes', # 0xd7
'gyess', # 0xd8
'gyeng', # 0xd9
'gyej', # 0xda
'gyec', # 0xdb
'gyek', # 0xdc
'gyet', # 0xdd
'gyep', # 0xde
'gyeh', # 0xdf
'go', # 0xe0
'gog', # 0xe1
'gogg', # 0xe2
'gogs', # 0xe3
'gon', # 0xe4
'gonj', # 0xe5
'gonh', # 0xe6
'god', # 0xe7
'gol', # 0xe8
'golg', # 0xe9
'golm', # 0xea
'golb', # 0xeb
'gols', # 0xec
'golt', # 0xed
'golp', # 0xee
'golh', # 0xef
'gom', # 0xf0
'gob', # 0xf1
'gobs', # 0xf2
'gos', # 0xf3
'goss', # 0xf4
'gong', # 0xf5
'goj', # 0xf6
'goc', # 0xf7
'gok', # 0xf8
'got', # 0xf9
'gop', # 0xfa
'goh', # 0xfb
'gwa', # 0xfc
'gwag', # 0xfd
'gwagg', # 0xfe
'gwags', # 0xff
) | 0.05344 | 0.23645 |
from posts.models import Post
from rest_framework import status
from rest_framework.test import APITestCase
from users.models import User
class TestViews(APITestCase):
def setUp(self):
self.user = User.objects.create_user(
username='test', email='<EMAIL>', password='<PASSWORD>')
self.post = Post.objects.create(title='Test Post', slug='test-post', thumbnail='https://www.test.example.com', author=self.user,
body='Test content of the post', read_time=5, is_public=True)
self.private_post = Post.objects.create(title='Private Post', slug='private-post', thumbnail='https://www.test.example.com', author=self.user,
body='Test content of the post', read_time=5, is_public=False)
def authenticate_user(self):
self.user.is_verified = True
self.client.force_login(self.user)
self.client.force_authenticate(user=self.user)
def test_comments(self):
"""
User can see comments for public post
"""
res = self.client.get('/api/comments/test-post/', data={
'body': 'test'
}, follow=True)
self.assertEqual(res.status_code, status.HTTP_200_OK)
def test_comments_as_auth_user(self):
"""
Authenticated user can see comments for public post
"""
self.authenticate_user()
res = self.client.get('/api/comments/test-post/', data={
'body': 'test'
}, follow=True)
self.assertEqual(res.status_code, status.HTTP_200_OK)
def test_comments_for_nonpublic_post(self):
"""
User cannot see comments for nonpublic post
"""
res = self.client.get('/api/comments/private-post/', data={
'body': 'test'
}, follow=True)
self.assertEqual(res.status_code, status.HTTP_404_NOT_FOUND)
def test_comments_for_nonpublic_post_as_auth_user(self):
"""
Authenticated user cannot see comments for nonpublic post
"""
self.authenticate_user()
res = self.client.get('/api/comments/private-post/', data={
'body': 'test'
}, follow=True)
self.assertEqual(res.status_code, status.HTTP_404_NOT_FOUND)
def test_send_comment(self):
"""
Unathenticated user cannot send comments
"""
res = self.client.post('/api/comments/test-post/send/', data={
'body': 'test'
}, follow=True)
self.assertEqual(res.status_code, status.HTTP_401_UNAUTHORIZED)
def test_send_comment_as_auth_user(self):
"""
Authenticated user can send comments
"""
self.authenticate_user()
res = self.client.post('/api/comments/test-post/send/', data={
'body': 'Test comment'
}, follow=True)
self.assertEqual(res.status_code, status.HTTP_201_CREATED)
self.assertEqual(Post.objects.get(
slug='test-post').comments.get(author=self.user).author, self.user)
def test_send_comment_on_nonpublic_post_as_auth_user(self):
"""
Authenticated user cannot send comments on nonpublic post
"""
self.authenticate_user()
res = self.client.post('/api/comments/private-post/send/', data={
'body': 'Test comment'
}, follow=True)
self.assertEqual(res.status_code, status.HTTP_404_NOT_FOUND)
def test_send_comment_on_non_existing_post(self):
"""
User cannot send comments on non existing post
"""
res = self.client.post('/api/comments/random-site/send/', data={
'body': 'Test comment'
}, follow=True)
self.assertEqual(res.status_code, status.HTTP_401_UNAUTHORIZED)
def test_send_comment_on_non_existing_post_as_auth_user(self):
"""
Authenticated user cannot send comments on non existing post
"""
self.authenticate_user()
res = self.client.post('/api/comments/random-site/send/', data={
'body': 'Test comment'
}, follow=True)
self.assertEqual(res.status_code, status.HTTP_404_NOT_FOUND)
def test_send_many_comments(self):
"""
Authenticated user cannot send multiple comments in short time window
"""
self.authenticate_user()
res = self.client.post('/api/comments/test-post/send/', data={
'body': 'Test comment'
}, follow=True)
self.assertEqual(res.status_code, status.HTTP_201_CREATED)
res = self.client.post('/api/comments/test-post/send/', data={
'body': 'Another comment'
}, follow=True)
self.assertEqual(res.status_code, status.HTTP_429_TOO_MANY_REQUESTS) | comments/tests/test_views.py | from posts.models import Post
from rest_framework import status
from rest_framework.test import APITestCase
from users.models import User
class TestViews(APITestCase):
def setUp(self):
self.user = User.objects.create_user(
username='test', email='<EMAIL>', password='<PASSWORD>')
self.post = Post.objects.create(title='Test Post', slug='test-post', thumbnail='https://www.test.example.com', author=self.user,
body='Test content of the post', read_time=5, is_public=True)
self.private_post = Post.objects.create(title='Private Post', slug='private-post', thumbnail='https://www.test.example.com', author=self.user,
body='Test content of the post', read_time=5, is_public=False)
def authenticate_user(self):
self.user.is_verified = True
self.client.force_login(self.user)
self.client.force_authenticate(user=self.user)
def test_comments(self):
"""
User can see comments for public post
"""
res = self.client.get('/api/comments/test-post/', data={
'body': 'test'
}, follow=True)
self.assertEqual(res.status_code, status.HTTP_200_OK)
def test_comments_as_auth_user(self):
"""
Authenticated user can see comments for public post
"""
self.authenticate_user()
res = self.client.get('/api/comments/test-post/', data={
'body': 'test'
}, follow=True)
self.assertEqual(res.status_code, status.HTTP_200_OK)
def test_comments_for_nonpublic_post(self):
"""
User cannot see comments for nonpublic post
"""
res = self.client.get('/api/comments/private-post/', data={
'body': 'test'
}, follow=True)
self.assertEqual(res.status_code, status.HTTP_404_NOT_FOUND)
def test_comments_for_nonpublic_post_as_auth_user(self):
"""
Authenticated user cannot see comments for nonpublic post
"""
self.authenticate_user()
res = self.client.get('/api/comments/private-post/', data={
'body': 'test'
}, follow=True)
self.assertEqual(res.status_code, status.HTTP_404_NOT_FOUND)
def test_send_comment(self):
"""
Unathenticated user cannot send comments
"""
res = self.client.post('/api/comments/test-post/send/', data={
'body': 'test'
}, follow=True)
self.assertEqual(res.status_code, status.HTTP_401_UNAUTHORIZED)
def test_send_comment_as_auth_user(self):
"""
Authenticated user can send comments
"""
self.authenticate_user()
res = self.client.post('/api/comments/test-post/send/', data={
'body': 'Test comment'
}, follow=True)
self.assertEqual(res.status_code, status.HTTP_201_CREATED)
self.assertEqual(Post.objects.get(
slug='test-post').comments.get(author=self.user).author, self.user)
def test_send_comment_on_nonpublic_post_as_auth_user(self):
"""
Authenticated user cannot send comments on nonpublic post
"""
self.authenticate_user()
res = self.client.post('/api/comments/private-post/send/', data={
'body': 'Test comment'
}, follow=True)
self.assertEqual(res.status_code, status.HTTP_404_NOT_FOUND)
def test_send_comment_on_non_existing_post(self):
"""
User cannot send comments on non existing post
"""
res = self.client.post('/api/comments/random-site/send/', data={
'body': 'Test comment'
}, follow=True)
self.assertEqual(res.status_code, status.HTTP_401_UNAUTHORIZED)
def test_send_comment_on_non_existing_post_as_auth_user(self):
"""
Authenticated user cannot send comments on non existing post
"""
self.authenticate_user()
res = self.client.post('/api/comments/random-site/send/', data={
'body': 'Test comment'
}, follow=True)
self.assertEqual(res.status_code, status.HTTP_404_NOT_FOUND)
def test_send_many_comments(self):
"""
Authenticated user cannot send multiple comments in short time window
"""
self.authenticate_user()
res = self.client.post('/api/comments/test-post/send/', data={
'body': 'Test comment'
}, follow=True)
self.assertEqual(res.status_code, status.HTTP_201_CREATED)
res = self.client.post('/api/comments/test-post/send/', data={
'body': 'Another comment'
}, follow=True)
self.assertEqual(res.status_code, status.HTTP_429_TOO_MANY_REQUESTS) | 0.656768 | 0.258888 |
import json
import random
import os
input_file = '/Users/shiquan/PycharmProjects/Multimodal-Knowledge-Base/data/1_multiwoz/restaurant_db.json'
output_file = '/Users/shiquan/PycharmProjects/Multimodal-Knowledge-Base/data/1_multiwoz/restaurant_db_transformed.json'
fout = open(output_file, 'w')
rest_dict = {"data": []}
rest_domain = ['restaurant-dining-room', 'restaurant-kid-friendly', 'restaurant-riverside', 'restaurant-rooftop', 'restaurant-rooftop-bar', 'restaurant-with-balcony', 'restaurant-with-bar', 'restaurant-with-couches', 'restaurant-with-dance-floor', 'restaurant-with-garden', 'restaurant-with-private-room', 'restaurant-with-sea-view']
images_consume_history = []
images_path = '/Users/shiquan/PycharmProjects/Multimodal-Knowledge-Base/images/restaurant/'
dict = {
"title": "University_of_Notre_Dame",
"paragraphs": [
{
"context": "",
"qas": [
{
"answers": [
{
"answer_start": "",
"text": ""
}
],
"question": "",
"id": ""
}
]
}
]
}
with open(input_file) as fin:
f = json.load(fin)
for elm in f:
address = elm['address']
address = '_'.join(address.split(" "))
area = elm['area']
cuisine = elm['food']
cuisine = "_".join(cuisine.split(" "))
name = elm['name']
name = '_'.join(name.split(" "))
price_range = elm['pricerange']
images = []
sampled_image_types = random.sample(rest_domain, 2)
for type in sampled_image_types:
file_names = []
path = images_path + type
for parent, dirnames, filenames in os.walk(path):
file_names = filenames
while True:
x = random.randint(0, len(filenames) - 1)
file_name = file_names[x]
image_path = path + '/' + file_name
if image_path not in images_consume_history:
break
images.append('http://10.100.231.7/' + type + '/' + file_name)
images_consume_history.append(image_path)
image_1 = images[0]
image_2 = images[1]
context = "\n" + name + " address " + address + "\n" + name + " area " + area + "\n" + name + " cuisine " + cuisine + "\n" + name + " pricerange " + price_range + "\n" + name + " image1 " + image_1 + "\n" + name + " image2 " + image_2
dict = {
"title": "University_of_Notre_Dame",
"paragraphs": [
{
"context": "",
"qas": [
{
"answers": [
{
"answer_start": "",
"text": ""
}
],
"question": "",
"id": ""
}
]
}
]
}
dict["paragraphs"][0]["context"] = context
rest_dict["data"].append(dict)
json.dump(rest_dict, fout) | s2s-ft/multimodalKB/scripts/3_transform_multiwoz_kb_formats/0_transform.py | import json
import random
import os
input_file = '/Users/shiquan/PycharmProjects/Multimodal-Knowledge-Base/data/1_multiwoz/restaurant_db.json'
output_file = '/Users/shiquan/PycharmProjects/Multimodal-Knowledge-Base/data/1_multiwoz/restaurant_db_transformed.json'
fout = open(output_file, 'w')
rest_dict = {"data": []}
rest_domain = ['restaurant-dining-room', 'restaurant-kid-friendly', 'restaurant-riverside', 'restaurant-rooftop', 'restaurant-rooftop-bar', 'restaurant-with-balcony', 'restaurant-with-bar', 'restaurant-with-couches', 'restaurant-with-dance-floor', 'restaurant-with-garden', 'restaurant-with-private-room', 'restaurant-with-sea-view']
images_consume_history = []
images_path = '/Users/shiquan/PycharmProjects/Multimodal-Knowledge-Base/images/restaurant/'
dict = {
"title": "University_of_Notre_Dame",
"paragraphs": [
{
"context": "",
"qas": [
{
"answers": [
{
"answer_start": "",
"text": ""
}
],
"question": "",
"id": ""
}
]
}
]
}
with open(input_file) as fin:
f = json.load(fin)
for elm in f:
address = elm['address']
address = '_'.join(address.split(" "))
area = elm['area']
cuisine = elm['food']
cuisine = "_".join(cuisine.split(" "))
name = elm['name']
name = '_'.join(name.split(" "))
price_range = elm['pricerange']
images = []
sampled_image_types = random.sample(rest_domain, 2)
for type in sampled_image_types:
file_names = []
path = images_path + type
for parent, dirnames, filenames in os.walk(path):
file_names = filenames
while True:
x = random.randint(0, len(filenames) - 1)
file_name = file_names[x]
image_path = path + '/' + file_name
if image_path not in images_consume_history:
break
images.append('http://10.100.231.7/' + type + '/' + file_name)
images_consume_history.append(image_path)
image_1 = images[0]
image_2 = images[1]
context = "\n" + name + " address " + address + "\n" + name + " area " + area + "\n" + name + " cuisine " + cuisine + "\n" + name + " pricerange " + price_range + "\n" + name + " image1 " + image_1 + "\n" + name + " image2 " + image_2
dict = {
"title": "University_of_Notre_Dame",
"paragraphs": [
{
"context": "",
"qas": [
{
"answers": [
{
"answer_start": "",
"text": ""
}
],
"question": "",
"id": ""
}
]
}
]
}
dict["paragraphs"][0]["context"] = context
rest_dict["data"].append(dict)
json.dump(rest_dict, fout) | 0.137938 | 0.123842 |
# System imports
from enum import Enum
# Local source tree imports
from pyof.foundation.base import GenericMessage, GenericStruct, IntEnum
from pyof.foundation.basic_types import (
BinaryData, FixedTypeList, Pad, UBInt8, UBInt16, UBInt32, UBInt64)
from pyof.v0x05.common.flow_match import Match
from pyof.v0x05.common.header import Header, Type
from pyof.v0x05.common.port import PortNo
from pyof.v0x05.controller2switch.common import (
ExperimenterMultipartHeader, MultipartType, TableFeatures)
from pyof.v0x05.controller2switch.group_mod import Group
from pyof.v0x05.controller2switch.meter_mod import Meter
from pyof.v0x05.controller2switch.modify_flow_table_message import Table
# Third-party imports
__all__ = ('MultipartRequest', 'MultipartRequestFlags', 'FlowMonitorCommand', 'FlowMonitorFlags',
'AggregateStatsRequest', 'FlowStatsRequest', 'FlowMonitorRequest',
'PortStatsRequest', 'QueueStatsRequest',
'GroupStatsRequest', 'MeterMultipartRequest')
# Enum
class MultipartRequestFlags(IntEnum):
"""Flags for MultipartRequest."""
#: No more requests to follow (This is not part of spec). Thanks @jondef95
OFPMPF_REQ_NONE = 0
#: More requests to follow
OFPMPF_REQ_MORE = 1 << 0
class FlowMonitorCommand(IntEnum):
"""Flow monitor commands"""
#: New flow monitor
OFPFMC_ADD = 0
#: Modify existing flow monitor
OFPFMC_MODIFY = 1
#: Delete / cancel existing flow monitor
OFPFMC_DELETE = 2
class FlowMonitorFlags(IntEnum):
"""’flags’ bits in struct of_flow_monitor_request"""
#: Initially matching flows
OFPFMF_INITIAL = 1 << 0
#: New matching flows as they are added
OFPFMF_ADD = 1 << 1
#: Old matching flows as they are removed
OFPFMF_REMOVED = 1 << 2
#: Matching flows as they are changed What to include in updates
OFPFMF_MODIFY = 1 << 3
#: If set, instructions are included
OFPFMF_INSTRUCTIONS = 1 << 4
#: If set, include own changes in full
OFPFMF_NO_ABBREV = 1 << 5
#: If set, don’t include other controllers
OFPFMF_ONLY_OWN = 1 << 6
# Classes
class MultipartRequest(GenericMessage):
"""Request datapath state.
While the system is running, the controller may request state from the
datapath using the OFPT_MULTIPART_REQUEST message.
"""
#: Openflow :class:`~pyof.v0x05.common.header.Header`
header = Header(message_type=Type.OFPT_MULTIPART_REQUEST)
#: One of the OFPMP_* constants.
multipart_type = UBInt16(enum_ref=MultipartType)
#: OFPMPF_REQ_* flags.
flags = UBInt16(enum_ref=MultipartRequestFlags)
#: Padding
pad = Pad(4)
#: Body of the request
body = BinaryData()
def __init__(self, xid=None, multipart_type=None, flags=0, body=b''):
"""Create a MultipartRequest with the optional parameters below.
Args:
xid (int): xid to the header.
multipart_type (int): One of the OFPMP_* constants.
flags (int): OFPMPF_REQ_* flags.
body (bytes): Body of the request.
"""
super().__init__(xid)
self.multipart_type = multipart_type
self.flags = flags
self.body = body
def pack(self, value=None):
"""Pack a MultipartRequest using the object's attributes.
This method will pack the attribute body and multipart_type before pack
the MultipartRequest object, then will return this struct as a
binary data.
Args:
value (:class:`~MultipartRequest`): Object to be packed.
Returns:
bytes: Binary data with MultipartRequest packed.
"""
buff = self.body
if not value:
value = self.body
if value:
if isinstance(value, (list, FixedTypeList)):
obj = self._get_body_instance()
obj.extend(value)
elif hasattr(value, 'pack'):
obj = value
self.body = obj.pack()
multipart_packed = super().pack()
self.body = buff
return multipart_packed
def unpack(self, buff, offset=0):
"""Unpack a binary message into this object's attributes.
Unpack the binary value *buff* and update this object attributes based
on the results. It is an inplace method and it receives the binary data
of the message **without the header**.
This class' unpack method is like the :meth:`.GenericMessage.unpack`
one, except for the ``body`` attribute which has its type determined
by the ``multipart_type`` attribute.
Args:
buff (bytes): Binary data package to be unpacked, without the
header.
"""
super().unpack(buff[offset:])
self._unpack_body()
def _unpack_body(self):
"""Unpack `body` replace it by the result."""
obj = self._get_body_instance()
obj.unpack(self.body.value)
self.body = obj
def _get_body_instance(self):
"""Return the body instance."""
simple_body = {
MultipartType.OFPMP_FLOW: FlowStatsRequest,
MultipartType.OFPMP_AGGREGATE: AggregateStatsRequest,
MultipartType.OFPMP_PORT_STATS: PortStatsRequest,
MultipartType.OFPMP_QUEUE: QueueStatsRequest,
MultipartType.OFPMP_GROUP: GroupStatsRequest,
MultipartType.OFPMP_METER: MeterMultipartRequest,
MultipartType.OFPMP_EXPERIMENTER: ExperimenterMultipartHeader
}
array_of_bodies = {MultipartType.OFPMP_TABLE_FEATURES: TableFeatures}
if isinstance(self.multipart_type, UBInt16):
self.multipart_type = self.multipart_type.enum_ref(
self.multipart_type.value)
pyof_class = simple_body.get(self.multipart_type, None)
if pyof_class:
return pyof_class()
array_of_class = array_of_bodies.get(self.multipart_type, None)
if array_of_class:
return FixedTypeList(pyof_class=array_of_class)
return BinaryData(b'')
class AggregateStatsRequest(GenericStruct):
"""Body for ofp_stats_request of type OFPST_AGGREGATE."""
#: ID of table to read (from ofp_table_stats) OFPTT_ALL for all tables.
table_id = UBInt8()
#: Align to 32 bits.
pad = Pad(3)
#: Require matching entries to include this as an output port. A value of
#: OFPP_ANY indicates no restriction.
out_port = UBInt32()
#: Require matching entries to include this as an output group. A value of
#: OFPG_ANY indicates no restriction.
out_group = UBInt32()
#: Align to 64 bits
pad2 = Pad(4)
#: Require matching entries to contain this cookie value
cookie = UBInt64()
#: Mask used to restrict the cookie bits that must match. A value of 0
#: indicates no restriction.
cookie_mask = UBInt64()
#: Fields to match. Variable size.
match = Match()
def __init__(self, table_id=Table.OFPTT_ALL, out_port=PortNo.OFPP_ANY,
out_group=Group.OFPG_ANY, cookie=0, cookie_mask=0,
match=None):
"""Create a AggregateStatsRequest with the optional parameters below.
Args:
table_id (int): ID of table to read (from ofp_table_stats)
OFPTT_ALL for all tables.
out_port (int): Require matching entries to include this as an
output port. A value of OFPP_ANY indicates no restriction.
out_group (int): Require matching entries to include this as an
output group. A value of OFPG_ANY indicates no restriction.
cookie (int): Require matching entries to contain this cookie value
cookie_mask (int): Mask used to restrict the cookie bits that must
match. A value of 0 indicates no restriction.
match (~pyof.v0x05.common.flow_match.Match):
Fields to match. Variable size
"""
super().__init__()
self.table_id = table_id
self.out_port = out_port
self.out_group = out_group
self.cookie = cookie
self.cookie_mask = cookie_mask
self.match = Match() if match is None else match
class FlowStatsRequest(GenericStruct):
"""Body for ofp_stats_request of type OFPST_FLOW."""
table_id = UBInt8()
#: Align to 32 bits.
pad = Pad(3)
out_port = UBInt32()
out_group = UBInt32()
pad2 = Pad(4)
cookie = UBInt64()
cookie_mask = UBInt64()
match = Match()
def __init__(self, table_id=Table.OFPTT_ALL, out_port=PortNo.OFPP_ANY,
out_group=Group.OFPG_ANY, cookie=0, cookie_mask=0,
match=None):
"""Create a FlowStatsRequest with the optional parameters below.
Args:
table_id (int): ID of table to read (from pyof_table_stats)
0xff for all tables or 0xfe for emergency.
out_port (:class:`int`, :class:`~pyof.v0x05.common.port.PortNo`):
Require matching entries to include this as an output port.
A value of :attr:`.PortNo.OFPP_ANY` indicates no restriction.
out_group: Require matching entries to include this as an output
group. A value of :attr:`Group.OFPG_ANY` indicates no
restriction.
cookie: Requires matching entries to contain this cookie value
cookie_mask: Mask used to restrict the cookie bits that must match.
A value of 0 indicates no restriction.
match (~pyof.v0x05.common.flow_match.Match): Fields to match.
"""
super().__init__()
self.table_id = table_id
self.out_port = out_port
self.out_group = out_group
self.cookie = cookie
self.cookie_mask = cookie_mask
self.match = Match() if match is None else match
class PortStatsRequest(GenericStruct):
"""Body for ofp_stats_request of type OFPST_PORT."""
port_no = UBInt32()
#: Align to 64-bits.
pad = Pad(4)
def __init__(self, port_no=PortNo.OFPP_ANY):
"""Create a PortStatsRequest with the optional parameters below.
Args:
port_no (:class:`int`, :class:`~pyof.v0x05.common.port.PortNo`):
:attr:`StatsType.OFPST_PORT` message must request statistics
either for a single port (specified in ``port_no``) or for all
ports (if ``port_no`` == :attr:`.PortNo.OFPP_ANY`).
"""
super().__init__()
self.port_no = port_no
class QueueStatsRequest(GenericStruct):
"""Implements the request body of a ``port_no``."""
port_no = UBInt32()
queue_id = UBInt32()
def __init__(self, port_no=PortNo.OFPP_ANY, queue_id=0xffffffff):
"""Create a QueueStatsRequest with the optional parameters below.
Args:
port_no (:class:`int`, :class:`~pyof.v0x05.common.port.Port`):
All ports if :attr:`.Port.OFPP_ALL`.
queue_id (int): All queues if OFPQ_ALL (``0xfffffff``).
"""
super().__init__()
self.port_no = port_no
self.queue_id = queue_id
class GroupStatsRequest(GenericStruct):
"""Body of OFPMP_GROUP request."""
#: Group id. All groups is OFPG_ALL
group_id = UBInt32()
#: Align to 64 bits
pad = Pad(4)
def __init__(self, group_id=Group.OFPG_ALL):
"""Create a GroupStatsRequest with the optional parameters below.
Args:
group_id(int): ID of group to read. OFPG_ALL to request informatio
for all groups.
"""
super().__init__()
self.group_id = group_id
class MeterMultipartRequest(GenericStruct):
"""MeterMultipartRequest structure.
This class represents the structure for ofp_meter_multipart_request.
This structure is a body of OFPMP_METER and OFPMP_METER_CONFIG requests.
"""
# Meter instance, or OFPM_ALL.
meter_id = UBInt32()
# Align to 64 bits.
pad = Pad(4)
def __init__(self, meter_id=Meter.OFPM_ALL):
"""Create a MeterMultipartRequest with the optional parameters below.
Args:
meter_id(Meter): Meter Indentify.The value Meter.OFPM_ALL is used
to refer to all Meters on the switch.
"""
super().__init__()
self.meter_id = meter_id
class FlowMonitorRequest(GenericStruct):
"""
Body for ofp_multipart_request of type OFPMP_FLOW_MONITOR.
The OFPMP_FLOW_MONITOR request’s body consists of an array of zero or more
instances of this structure. The request arranges to monitor the flows
that match the specified criteria, which are interpreted in the same way as
for OFPMP_FLOW.
’id’ identifies a particular monitor for the purpose of allowing it to be
canceled later with OFPFMC_DELETE. ’id’ must be unique among
existing monitors that have not already been canceled.
"""
#: Controller-assigned ID for this monitor
monitor_id = UBInt32()
#: Required output port, if not OFPP_ANY
out_port = UBInt32(enum_ref=PortNo)
#: Required group number, if not OFPG_ANY
out_group = UBInt32(enum_ref=Group)
#: OFPFMF_*
flags = UBInt16(enum_ref=FlowMonitorFlags)
#: One table’s ID or OFPTT_ALL (all tables)
table_id = UBInt8(enum_ref=Table)
#: One of OFPFMC_*
command = UBInt8(enum_ref=FlowMonitorCommand)
#: Fields to match. Variable size
match = Match()
def __init__(self, monitor_id=None, out_port=PortNo.OFPP_ANY, out_group=Group.OFPG_ANY, flags=FlowMonitorFlags,
table_id=Table.OFPTT_ALL,
command=FlowMonitorCommand, match=None):
"""
Create a FlowStatsRequest with the optional parameters below.
Args:
monitor_id (int): uniquely identifies a monitor for a specific controller connection within a switch
(from pyof_table_stats)
0xff for all tables or 0xfe for emergency.
out_port (:class:`int`, :class:`~pyof.v0x05.common.port.PortNo`):
Require matching entries to include this as an output port.
A value of :attr:`.PortNo.OFPP_ANY` indicates no restriction.
out_group: Require matching entries to include this as an output
group. A value of :attr:`Group.OFPG_ANY` indicates no
restriction.
table_id (int): ID of table to read (from pyof_table_stats)
0xff for all tables or 0xfe for emergency.
command: defines what operation must be done on that monitor
match (~pyof.v0x05.common.flow_match.Match): Fields to match.
"""
super().__init__()
self.monitor_id = monitor_id
self.out_port = out_port
self.out_group = out_group
self.flags = flags
self.table_id = table_id
self.command = command
self.match = Match() if match is None else match | pyof/v0x05/controller2switch/multipart_request.py |
# System imports
from enum import Enum
# Local source tree imports
from pyof.foundation.base import GenericMessage, GenericStruct, IntEnum
from pyof.foundation.basic_types import (
BinaryData, FixedTypeList, Pad, UBInt8, UBInt16, UBInt32, UBInt64)
from pyof.v0x05.common.flow_match import Match
from pyof.v0x05.common.header import Header, Type
from pyof.v0x05.common.port import PortNo
from pyof.v0x05.controller2switch.common import (
ExperimenterMultipartHeader, MultipartType, TableFeatures)
from pyof.v0x05.controller2switch.group_mod import Group
from pyof.v0x05.controller2switch.meter_mod import Meter
from pyof.v0x05.controller2switch.modify_flow_table_message import Table
# Third-party imports
__all__ = ('MultipartRequest', 'MultipartRequestFlags', 'FlowMonitorCommand', 'FlowMonitorFlags',
'AggregateStatsRequest', 'FlowStatsRequest', 'FlowMonitorRequest',
'PortStatsRequest', 'QueueStatsRequest',
'GroupStatsRequest', 'MeterMultipartRequest')
# Enum
class MultipartRequestFlags(IntEnum):
"""Flags for MultipartRequest."""
#: No more requests to follow (This is not part of spec). Thanks @jondef95
OFPMPF_REQ_NONE = 0
#: More requests to follow
OFPMPF_REQ_MORE = 1 << 0
class FlowMonitorCommand(IntEnum):
"""Flow monitor commands"""
#: New flow monitor
OFPFMC_ADD = 0
#: Modify existing flow monitor
OFPFMC_MODIFY = 1
#: Delete / cancel existing flow monitor
OFPFMC_DELETE = 2
class FlowMonitorFlags(IntEnum):
"""’flags’ bits in struct of_flow_monitor_request"""
#: Initially matching flows
OFPFMF_INITIAL = 1 << 0
#: New matching flows as they are added
OFPFMF_ADD = 1 << 1
#: Old matching flows as they are removed
OFPFMF_REMOVED = 1 << 2
#: Matching flows as they are changed What to include in updates
OFPFMF_MODIFY = 1 << 3
#: If set, instructions are included
OFPFMF_INSTRUCTIONS = 1 << 4
#: If set, include own changes in full
OFPFMF_NO_ABBREV = 1 << 5
#: If set, don’t include other controllers
OFPFMF_ONLY_OWN = 1 << 6
# Classes
class MultipartRequest(GenericMessage):
"""Request datapath state.
While the system is running, the controller may request state from the
datapath using the OFPT_MULTIPART_REQUEST message.
"""
#: Openflow :class:`~pyof.v0x05.common.header.Header`
header = Header(message_type=Type.OFPT_MULTIPART_REQUEST)
#: One of the OFPMP_* constants.
multipart_type = UBInt16(enum_ref=MultipartType)
#: OFPMPF_REQ_* flags.
flags = UBInt16(enum_ref=MultipartRequestFlags)
#: Padding
pad = Pad(4)
#: Body of the request
body = BinaryData()
def __init__(self, xid=None, multipart_type=None, flags=0, body=b''):
"""Create a MultipartRequest with the optional parameters below.
Args:
xid (int): xid to the header.
multipart_type (int): One of the OFPMP_* constants.
flags (int): OFPMPF_REQ_* flags.
body (bytes): Body of the request.
"""
super().__init__(xid)
self.multipart_type = multipart_type
self.flags = flags
self.body = body
def pack(self, value=None):
"""Pack a MultipartRequest using the object's attributes.
This method will pack the attribute body and multipart_type before pack
the MultipartRequest object, then will return this struct as a
binary data.
Args:
value (:class:`~MultipartRequest`): Object to be packed.
Returns:
bytes: Binary data with MultipartRequest packed.
"""
buff = self.body
if not value:
value = self.body
if value:
if isinstance(value, (list, FixedTypeList)):
obj = self._get_body_instance()
obj.extend(value)
elif hasattr(value, 'pack'):
obj = value
self.body = obj.pack()
multipart_packed = super().pack()
self.body = buff
return multipart_packed
def unpack(self, buff, offset=0):
"""Unpack a binary message into this object's attributes.
Unpack the binary value *buff* and update this object attributes based
on the results. It is an inplace method and it receives the binary data
of the message **without the header**.
This class' unpack method is like the :meth:`.GenericMessage.unpack`
one, except for the ``body`` attribute which has its type determined
by the ``multipart_type`` attribute.
Args:
buff (bytes): Binary data package to be unpacked, without the
header.
"""
super().unpack(buff[offset:])
self._unpack_body()
def _unpack_body(self):
"""Unpack `body` replace it by the result."""
obj = self._get_body_instance()
obj.unpack(self.body.value)
self.body = obj
def _get_body_instance(self):
"""Return the body instance."""
simple_body = {
MultipartType.OFPMP_FLOW: FlowStatsRequest,
MultipartType.OFPMP_AGGREGATE: AggregateStatsRequest,
MultipartType.OFPMP_PORT_STATS: PortStatsRequest,
MultipartType.OFPMP_QUEUE: QueueStatsRequest,
MultipartType.OFPMP_GROUP: GroupStatsRequest,
MultipartType.OFPMP_METER: MeterMultipartRequest,
MultipartType.OFPMP_EXPERIMENTER: ExperimenterMultipartHeader
}
array_of_bodies = {MultipartType.OFPMP_TABLE_FEATURES: TableFeatures}
if isinstance(self.multipart_type, UBInt16):
self.multipart_type = self.multipart_type.enum_ref(
self.multipart_type.value)
pyof_class = simple_body.get(self.multipart_type, None)
if pyof_class:
return pyof_class()
array_of_class = array_of_bodies.get(self.multipart_type, None)
if array_of_class:
return FixedTypeList(pyof_class=array_of_class)
return BinaryData(b'')
class AggregateStatsRequest(GenericStruct):
"""Body for ofp_stats_request of type OFPST_AGGREGATE."""
#: ID of table to read (from ofp_table_stats) OFPTT_ALL for all tables.
table_id = UBInt8()
#: Align to 32 bits.
pad = Pad(3)
#: Require matching entries to include this as an output port. A value of
#: OFPP_ANY indicates no restriction.
out_port = UBInt32()
#: Require matching entries to include this as an output group. A value of
#: OFPG_ANY indicates no restriction.
out_group = UBInt32()
#: Align to 64 bits
pad2 = Pad(4)
#: Require matching entries to contain this cookie value
cookie = UBInt64()
#: Mask used to restrict the cookie bits that must match. A value of 0
#: indicates no restriction.
cookie_mask = UBInt64()
#: Fields to match. Variable size.
match = Match()
def __init__(self, table_id=Table.OFPTT_ALL, out_port=PortNo.OFPP_ANY,
out_group=Group.OFPG_ANY, cookie=0, cookie_mask=0,
match=None):
"""Create a AggregateStatsRequest with the optional parameters below.
Args:
table_id (int): ID of table to read (from ofp_table_stats)
OFPTT_ALL for all tables.
out_port (int): Require matching entries to include this as an
output port. A value of OFPP_ANY indicates no restriction.
out_group (int): Require matching entries to include this as an
output group. A value of OFPG_ANY indicates no restriction.
cookie (int): Require matching entries to contain this cookie value
cookie_mask (int): Mask used to restrict the cookie bits that must
match. A value of 0 indicates no restriction.
match (~pyof.v0x05.common.flow_match.Match):
Fields to match. Variable size
"""
super().__init__()
self.table_id = table_id
self.out_port = out_port
self.out_group = out_group
self.cookie = cookie
self.cookie_mask = cookie_mask
self.match = Match() if match is None else match
class FlowStatsRequest(GenericStruct):
"""Body for ofp_stats_request of type OFPST_FLOW."""
table_id = UBInt8()
#: Align to 32 bits.
pad = Pad(3)
out_port = UBInt32()
out_group = UBInt32()
pad2 = Pad(4)
cookie = UBInt64()
cookie_mask = UBInt64()
match = Match()
def __init__(self, table_id=Table.OFPTT_ALL, out_port=PortNo.OFPP_ANY,
out_group=Group.OFPG_ANY, cookie=0, cookie_mask=0,
match=None):
"""Create a FlowStatsRequest with the optional parameters below.
Args:
table_id (int): ID of table to read (from pyof_table_stats)
0xff for all tables or 0xfe for emergency.
out_port (:class:`int`, :class:`~pyof.v0x05.common.port.PortNo`):
Require matching entries to include this as an output port.
A value of :attr:`.PortNo.OFPP_ANY` indicates no restriction.
out_group: Require matching entries to include this as an output
group. A value of :attr:`Group.OFPG_ANY` indicates no
restriction.
cookie: Requires matching entries to contain this cookie value
cookie_mask: Mask used to restrict the cookie bits that must match.
A value of 0 indicates no restriction.
match (~pyof.v0x05.common.flow_match.Match): Fields to match.
"""
super().__init__()
self.table_id = table_id
self.out_port = out_port
self.out_group = out_group
self.cookie = cookie
self.cookie_mask = cookie_mask
self.match = Match() if match is None else match
class PortStatsRequest(GenericStruct):
"""Body for ofp_stats_request of type OFPST_PORT."""
port_no = UBInt32()
#: Align to 64-bits.
pad = Pad(4)
def __init__(self, port_no=PortNo.OFPP_ANY):
"""Create a PortStatsRequest with the optional parameters below.
Args:
port_no (:class:`int`, :class:`~pyof.v0x05.common.port.PortNo`):
:attr:`StatsType.OFPST_PORT` message must request statistics
either for a single port (specified in ``port_no``) or for all
ports (if ``port_no`` == :attr:`.PortNo.OFPP_ANY`).
"""
super().__init__()
self.port_no = port_no
class QueueStatsRequest(GenericStruct):
"""Implements the request body of a ``port_no``."""
port_no = UBInt32()
queue_id = UBInt32()
def __init__(self, port_no=PortNo.OFPP_ANY, queue_id=0xffffffff):
"""Create a QueueStatsRequest with the optional parameters below.
Args:
port_no (:class:`int`, :class:`~pyof.v0x05.common.port.Port`):
All ports if :attr:`.Port.OFPP_ALL`.
queue_id (int): All queues if OFPQ_ALL (``0xfffffff``).
"""
super().__init__()
self.port_no = port_no
self.queue_id = queue_id
class GroupStatsRequest(GenericStruct):
"""Body of OFPMP_GROUP request."""
#: Group id. All groups is OFPG_ALL
group_id = UBInt32()
#: Align to 64 bits
pad = Pad(4)
def __init__(self, group_id=Group.OFPG_ALL):
"""Create a GroupStatsRequest with the optional parameters below.
Args:
group_id(int): ID of group to read. OFPG_ALL to request informatio
for all groups.
"""
super().__init__()
self.group_id = group_id
class MeterMultipartRequest(GenericStruct):
"""MeterMultipartRequest structure.
This class represents the structure for ofp_meter_multipart_request.
This structure is a body of OFPMP_METER and OFPMP_METER_CONFIG requests.
"""
# Meter instance, or OFPM_ALL.
meter_id = UBInt32()
# Align to 64 bits.
pad = Pad(4)
def __init__(self, meter_id=Meter.OFPM_ALL):
"""Create a MeterMultipartRequest with the optional parameters below.
Args:
meter_id(Meter): Meter Indentify.The value Meter.OFPM_ALL is used
to refer to all Meters on the switch.
"""
super().__init__()
self.meter_id = meter_id
class FlowMonitorRequest(GenericStruct):
"""
Body for ofp_multipart_request of type OFPMP_FLOW_MONITOR.
The OFPMP_FLOW_MONITOR request’s body consists of an array of zero or more
instances of this structure. The request arranges to monitor the flows
that match the specified criteria, which are interpreted in the same way as
for OFPMP_FLOW.
’id’ identifies a particular monitor for the purpose of allowing it to be
canceled later with OFPFMC_DELETE. ’id’ must be unique among
existing monitors that have not already been canceled.
"""
#: Controller-assigned ID for this monitor
monitor_id = UBInt32()
#: Required output port, if not OFPP_ANY
out_port = UBInt32(enum_ref=PortNo)
#: Required group number, if not OFPG_ANY
out_group = UBInt32(enum_ref=Group)
#: OFPFMF_*
flags = UBInt16(enum_ref=FlowMonitorFlags)
#: One table’s ID or OFPTT_ALL (all tables)
table_id = UBInt8(enum_ref=Table)
#: One of OFPFMC_*
command = UBInt8(enum_ref=FlowMonitorCommand)
#: Fields to match. Variable size
match = Match()
def __init__(self, monitor_id=None, out_port=PortNo.OFPP_ANY, out_group=Group.OFPG_ANY, flags=FlowMonitorFlags,
table_id=Table.OFPTT_ALL,
command=FlowMonitorCommand, match=None):
"""
Create a FlowStatsRequest with the optional parameters below.
Args:
monitor_id (int): uniquely identifies a monitor for a specific controller connection within a switch
(from pyof_table_stats)
0xff for all tables or 0xfe for emergency.
out_port (:class:`int`, :class:`~pyof.v0x05.common.port.PortNo`):
Require matching entries to include this as an output port.
A value of :attr:`.PortNo.OFPP_ANY` indicates no restriction.
out_group: Require matching entries to include this as an output
group. A value of :attr:`Group.OFPG_ANY` indicates no
restriction.
table_id (int): ID of table to read (from pyof_table_stats)
0xff for all tables or 0xfe for emergency.
command: defines what operation must be done on that monitor
match (~pyof.v0x05.common.flow_match.Match): Fields to match.
"""
super().__init__()
self.monitor_id = monitor_id
self.out_port = out_port
self.out_group = out_group
self.flags = flags
self.table_id = table_id
self.command = command
self.match = Match() if match is None else match | 0.837985 | 0.239127 |
import mimetypes
import random
import string
import requests
import re
from .uploader import FileStreamUploader
from .settings import providers
class TransferSh(FileStreamUploader):
boundary: str
def __init__(self, *args, **kwargs):
self.url = providers['transfer.sh']['url']
super(TransferSh, self).__init__(*args, **kwargs)
def queue_http_start(self):
self.boundary = ''.join(random.choice(string.digits + string.ascii_letters) for i in range(30))
start = bytes('--' + self.boundary + '\r\n', 'utf-8')
start += bytes('Content-Disposition: form-data; name="file"; filename="' + self.filename + '"' + '\r\n', 'utf-8')
start += bytes('Content-Type: ' + str(mimetypes.guess_type(self.filename)[0]) + '\r\n', 'utf-8')
start += bytes('\r\n', 'utf-8')
self.queue.append(start)
def queue_file(self):
self.queue.append(open(self.filename, 'rb'))
def queue_http_end(self):
self.queue.append(bytes('\r\n--' + self.boundary + '--\r\n', 'utf-8'))
def upload_file(self):
r = requests.post(self.url, data=self, headers={
'Content-Type': 'multipart/form-data; boundary=' + self.boundary
})
return r.text
@staticmethod
def parse_file_identifier_from_url(url):
return re.search(r'[^/]+\/[^/]+$', url).group(0)
@staticmethod
def parse_host_from_url(url):
return re.search(r'(http|https)\:\/\/[^\/]+', url).group(0)
@staticmethod
def print_post_upload_message(uploaded_files):
if len(uploaded_files) > 1:
file_identifiers = []
for url in uploaded_files:
file_identifiers.append(TransferSh.parse_file_identifier_from_url(url))
base_url = TransferSh.parse_host_from_url(uploaded_files[0]) + '/'
base_archive_url = base_url + '(' + ','.join([fragment for fragment in file_identifiers]) + ')'
print('ZIP:', base_archive_url + '.zip')
print()
print('TAR.GZ:', base_archive_url + '.tar.gz') | pytransfer/services.py | import mimetypes
import random
import string
import requests
import re
from .uploader import FileStreamUploader
from .settings import providers
class TransferSh(FileStreamUploader):
boundary: str
def __init__(self, *args, **kwargs):
self.url = providers['transfer.sh']['url']
super(TransferSh, self).__init__(*args, **kwargs)
def queue_http_start(self):
self.boundary = ''.join(random.choice(string.digits + string.ascii_letters) for i in range(30))
start = bytes('--' + self.boundary + '\r\n', 'utf-8')
start += bytes('Content-Disposition: form-data; name="file"; filename="' + self.filename + '"' + '\r\n', 'utf-8')
start += bytes('Content-Type: ' + str(mimetypes.guess_type(self.filename)[0]) + '\r\n', 'utf-8')
start += bytes('\r\n', 'utf-8')
self.queue.append(start)
def queue_file(self):
self.queue.append(open(self.filename, 'rb'))
def queue_http_end(self):
self.queue.append(bytes('\r\n--' + self.boundary + '--\r\n', 'utf-8'))
def upload_file(self):
r = requests.post(self.url, data=self, headers={
'Content-Type': 'multipart/form-data; boundary=' + self.boundary
})
return r.text
@staticmethod
def parse_file_identifier_from_url(url):
return re.search(r'[^/]+\/[^/]+$', url).group(0)
@staticmethod
def parse_host_from_url(url):
return re.search(r'(http|https)\:\/\/[^\/]+', url).group(0)
@staticmethod
def print_post_upload_message(uploaded_files):
if len(uploaded_files) > 1:
file_identifiers = []
for url in uploaded_files:
file_identifiers.append(TransferSh.parse_file_identifier_from_url(url))
base_url = TransferSh.parse_host_from_url(uploaded_files[0]) + '/'
base_archive_url = base_url + '(' + ','.join([fragment for fragment in file_identifiers]) + ')'
print('ZIP:', base_archive_url + '.zip')
print()
print('TAR.GZ:', base_archive_url + '.tar.gz') | 0.366023 | 0.06357 |
import os, time, sys, datetime
from random import randint
from huepy import *
__version__ = "1.3.6"
def cc_gen(bin):
cc = ""
if len(bin) != 16:
while len(bin) != 16:
bin += 'x'
else:
pass
if len(bin) == 16:
for x in range(15):
if bin[x] in ("0", "1", "2", "3", "4", "5", "6", "7", "8", "9"):
cc += bin[x]
continue
elif bin[x] in ('x'):
cc += str(randint(0,9))
else:
print(bad(f"Invalid Format Bin: {bin}"))
sys.exit()
for i in range(10):
check_cc = cc
check_cc += str(i)
if ValidCC(check_cc):
cc = check_cc
break
else:
check_cc = cc
else:
print(bad(f"Invalid Format BIN: {bin}"))
return(cc)
def ValidCC(card_number): # Luhn Algorithm
sum = 0
num_digits = len(card_number)
oddeven = num_digits & 1
for count in range(0, num_digits):
digit = int(card_number[count])
if not (( count & 1 ) ^ oddeven ):
digit = digit * 2
if digit > 9:
digit = digit - 9
sum = sum + digit
return ( (sum % 10) == 0 )
def dategen(month, year):
if month == 'rnd' and year == 'rnd':
now = datetime.datetime.now()
month = int(randint(1, 12))
current_year = str(now.year)
year = str(randint(int(current_year[-2:]) + 1, int(current_year[-2:]) + 6))
if month < 10:
month = '0'+str(month)
else:
month = str(month)
date = month + "|" + year
return date
elif month == 'rnd' and year != 'rnd':
now = datetime.datetime.now()
month = int(randint(1,12))
if month < 10:
month = '0'+str(month)
else:
month = str(month)
date = month + "|" + year
return date
elif month != 'rnd' and year == 'rnd':
now = datetime.datetime.now()
current_year = str(now.year)
year = str(randint(int(current_year[-2:]) + 1, int(current_year[-2:]) + 6))
date = month + "|" + year
return date
elif month != 'rnd' and year != 'rnd':
date = month + "|" + year
return date
def ccvgen(cvv):
if cvv == 'rnd':
ccv = ""
num = randint(10,999)
if num < 100:
ccv = "0" + str(num)
else:
ccv = str(num)
return(ccv)
else:
return(cvv)
def clean():
if os.name == 'nt':
os.system('cls')
else:
os.system('clear')
def banner():
print(purple("""
.---. ,,
,, / \ ;,,'
;, ; ( o o ) ; ;
;,';,,, \ \/ / ,; ;
,,, ;,,,,;;,` '-,;'''',,,'
;,, ;,, ,,,, ,; ,,,'';;,,;''';
;,,,; ~~' '';,,''',,;''''
CC GENERATE \n"""))
def main():
clean()
banner()
try:
seses = int(input(info("Quantity > ")))
counter = 0
BIN = input(info("BIN > "))
MONTH = input(info("Month [MM / RND] > ")).lower()
YEAR = input(info("Year [YY / RND] > ")).lower()
CVV = input(info("CVV [CVV / RND] > ")).lower()
month = MONTH
year = YEAR
clean()
banner()
while counter != seses:
print(good(cc_gen(BIN) + "|" + dategen(month, year) + "|" + ccvgen(CVV)))
counter +=1
except:
print(bad(yellow("An Error Ocurred...")))
sys.exit()
if __name__ == "__main__":
print(info(lightred(("An Error Ocurred..."))))
else:
main() | tools/azathot/cc_gen.py | import os, time, sys, datetime
from random import randint
from huepy import *
__version__ = "1.3.6"
def cc_gen(bin):
cc = ""
if len(bin) != 16:
while len(bin) != 16:
bin += 'x'
else:
pass
if len(bin) == 16:
for x in range(15):
if bin[x] in ("0", "1", "2", "3", "4", "5", "6", "7", "8", "9"):
cc += bin[x]
continue
elif bin[x] in ('x'):
cc += str(randint(0,9))
else:
print(bad(f"Invalid Format Bin: {bin}"))
sys.exit()
for i in range(10):
check_cc = cc
check_cc += str(i)
if ValidCC(check_cc):
cc = check_cc
break
else:
check_cc = cc
else:
print(bad(f"Invalid Format BIN: {bin}"))
return(cc)
def ValidCC(card_number): # Luhn Algorithm
sum = 0
num_digits = len(card_number)
oddeven = num_digits & 1
for count in range(0, num_digits):
digit = int(card_number[count])
if not (( count & 1 ) ^ oddeven ):
digit = digit * 2
if digit > 9:
digit = digit - 9
sum = sum + digit
return ( (sum % 10) == 0 )
def dategen(month, year):
if month == 'rnd' and year == 'rnd':
now = datetime.datetime.now()
month = int(randint(1, 12))
current_year = str(now.year)
year = str(randint(int(current_year[-2:]) + 1, int(current_year[-2:]) + 6))
if month < 10:
month = '0'+str(month)
else:
month = str(month)
date = month + "|" + year
return date
elif month == 'rnd' and year != 'rnd':
now = datetime.datetime.now()
month = int(randint(1,12))
if month < 10:
month = '0'+str(month)
else:
month = str(month)
date = month + "|" + year
return date
elif month != 'rnd' and year == 'rnd':
now = datetime.datetime.now()
current_year = str(now.year)
year = str(randint(int(current_year[-2:]) + 1, int(current_year[-2:]) + 6))
date = month + "|" + year
return date
elif month != 'rnd' and year != 'rnd':
date = month + "|" + year
return date
def ccvgen(cvv):
if cvv == 'rnd':
ccv = ""
num = randint(10,999)
if num < 100:
ccv = "0" + str(num)
else:
ccv = str(num)
return(ccv)
else:
return(cvv)
def clean():
if os.name == 'nt':
os.system('cls')
else:
os.system('clear')
def banner():
print(purple("""
.---. ,,
,, / \ ;,,'
;, ; ( o o ) ; ;
;,';,,, \ \/ / ,; ;
,,, ;,,,,;;,` '-,;'''',,,'
;,, ;,, ,,,, ,; ,,,'';;,,;''';
;,,,; ~~' '';,,''',,;''''
CC GENERATE \n"""))
def main():
clean()
banner()
try:
seses = int(input(info("Quantity > ")))
counter = 0
BIN = input(info("BIN > "))
MONTH = input(info("Month [MM / RND] > ")).lower()
YEAR = input(info("Year [YY / RND] > ")).lower()
CVV = input(info("CVV [CVV / RND] > ")).lower()
month = MONTH
year = YEAR
clean()
banner()
while counter != seses:
print(good(cc_gen(BIN) + "|" + dategen(month, year) + "|" + ccvgen(CVV)))
counter +=1
except:
print(bad(yellow("An Error Ocurred...")))
sys.exit()
if __name__ == "__main__":
print(info(lightred(("An Error Ocurred..."))))
else:
main() | 0.061883 | 0.271427 |
import os
import torch
from transformers import GPT2LMHeadModel, GPT2Tokenizer
import logging
_question_prompt = '\nQ: '
_answer_prompt = '\nA: '
_path = os.path.dirname(__file__)
_forbidden_words = set([item.strip().lower()
for item in open(os.path.join(_path, '../data/bad-words.txt')).readlines()])
_logger = logging.getLogger(__file__)
_tokenizer = GPT2Tokenizer.from_pretrained('gpt2')
_model = GPT2LMHeadModel.from_pretrained('gpt2')
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
checkpoint = torch.load(os.path.join(_path, '../models/save_small6'), map_location=device)
_model.load_state_dict(checkpoint['model_state_dict'])
_model = _model.to(device)
def get_text_up_to_question_number(text, number):
pos = text.find(_answer_prompt)
for _ in range(number):
pos = text.find(_answer_prompt, pos + 1)
return text[0:pos + 1]
def get_answers_number(text):
return text.count(_answer_prompt)
def get_answer_number(text, number):
pos = text.find(_answer_prompt)
for _ in range(number):
pos = text.find(_answer_prompt, pos + 1)
end = text.find('\n', pos + len(_answer_prompt))
return text[pos + len(_answer_prompt):end]
def get_question_number(text, number):
pos = text.find(_question_prompt)
for _ in range(number):
pos = text.find(_question_prompt, pos + 1)
end = text.find('\n', pos + len(_question_prompt))
return text[pos + len(_question_prompt):end]
def get_all_answers(dev_dict, dev_index):
answers = [[item['input_text']
for item in dev_dict['data'][dev_index]['answers']]]
answers += [[item['input_text'] for item in dev_dict['data']
[dev_index]['additional_answers'][str(index)]] for index in range(3)]
return [list(set([answers[j][i] for j in range(len(answers))])) for i in range(len(answers[0]))]
def generate_answer(text, query, dialogue, length):
text = text.strip()
query = query.strip()
dialogue = dialogue.strip()
prompt = 'In the text below two people are discussing a story.\n\n'
prompt += 'Story:\n' + text + '\n\n'
prompt += 'Discussion:\n'
prompt += dialogue
prompt += '\nQ: ' + query + '\n'
tokens = _tokenizer.encode(prompt, return_tensors='pt')
tokens_length = tokens.shape[1]
out_tokens = _model.generate(
tokens.to(device),
max_length=tokens_length + length,
temperature=0,
pad_token_id=50256
)
generated_text = _tokenizer.decode(out_tokens[:, tokens_length:][0], skip_special_tokens=True)
score = float(_model(out_tokens, labels=out_tokens)[0])
start = 0
end = generated_text.find('\n', start + 1)
if end == -1:
end = len(generated_text)
answer = generated_text[start:end + 1].split('A:')[-1].strip()
if len(set(answer.split()) & _forbidden_words) > 0:
_logger.warning("A forbidden word was caught in the answer!")
answer = 'unknown'
return answer, score
def get_best_answer_and_paragraph(results, dialogue, query):
answers_and_scores = []
for paragraph, similarity in results:
answer, perplexity = generate_answer(paragraph, query, dialogue, length=50)
score = 0.02 * perplexity + (1 - similarity)
answers_and_scores.append((answer, score, paragraph))
answers_and_scores = sorted(answers_and_scores, key=lambda x: x[1])
final_answer = 'unknown'
final_paragraph = ''
index = 0
while final_answer == 'unknown':
final_answer = answers_and_scores[index][0]
final_paragraph = answers_and_scores[index][2]
index += 1
return final_answer, final_paragraph | src/qa.py | import os
import torch
from transformers import GPT2LMHeadModel, GPT2Tokenizer
import logging
_question_prompt = '\nQ: '
_answer_prompt = '\nA: '
_path = os.path.dirname(__file__)
_forbidden_words = set([item.strip().lower()
for item in open(os.path.join(_path, '../data/bad-words.txt')).readlines()])
_logger = logging.getLogger(__file__)
_tokenizer = GPT2Tokenizer.from_pretrained('gpt2')
_model = GPT2LMHeadModel.from_pretrained('gpt2')
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
checkpoint = torch.load(os.path.join(_path, '../models/save_small6'), map_location=device)
_model.load_state_dict(checkpoint['model_state_dict'])
_model = _model.to(device)
def get_text_up_to_question_number(text, number):
pos = text.find(_answer_prompt)
for _ in range(number):
pos = text.find(_answer_prompt, pos + 1)
return text[0:pos + 1]
def get_answers_number(text):
return text.count(_answer_prompt)
def get_answer_number(text, number):
pos = text.find(_answer_prompt)
for _ in range(number):
pos = text.find(_answer_prompt, pos + 1)
end = text.find('\n', pos + len(_answer_prompt))
return text[pos + len(_answer_prompt):end]
def get_question_number(text, number):
pos = text.find(_question_prompt)
for _ in range(number):
pos = text.find(_question_prompt, pos + 1)
end = text.find('\n', pos + len(_question_prompt))
return text[pos + len(_question_prompt):end]
def get_all_answers(dev_dict, dev_index):
answers = [[item['input_text']
for item in dev_dict['data'][dev_index]['answers']]]
answers += [[item['input_text'] for item in dev_dict['data']
[dev_index]['additional_answers'][str(index)]] for index in range(3)]
return [list(set([answers[j][i] for j in range(len(answers))])) for i in range(len(answers[0]))]
def generate_answer(text, query, dialogue, length):
text = text.strip()
query = query.strip()
dialogue = dialogue.strip()
prompt = 'In the text below two people are discussing a story.\n\n'
prompt += 'Story:\n' + text + '\n\n'
prompt += 'Discussion:\n'
prompt += dialogue
prompt += '\nQ: ' + query + '\n'
tokens = _tokenizer.encode(prompt, return_tensors='pt')
tokens_length = tokens.shape[1]
out_tokens = _model.generate(
tokens.to(device),
max_length=tokens_length + length,
temperature=0,
pad_token_id=50256
)
generated_text = _tokenizer.decode(out_tokens[:, tokens_length:][0], skip_special_tokens=True)
score = float(_model(out_tokens, labels=out_tokens)[0])
start = 0
end = generated_text.find('\n', start + 1)
if end == -1:
end = len(generated_text)
answer = generated_text[start:end + 1].split('A:')[-1].strip()
if len(set(answer.split()) & _forbidden_words) > 0:
_logger.warning("A forbidden word was caught in the answer!")
answer = 'unknown'
return answer, score
def get_best_answer_and_paragraph(results, dialogue, query):
answers_and_scores = []
for paragraph, similarity in results:
answer, perplexity = generate_answer(paragraph, query, dialogue, length=50)
score = 0.02 * perplexity + (1 - similarity)
answers_and_scores.append((answer, score, paragraph))
answers_and_scores = sorted(answers_and_scores, key=lambda x: x[1])
final_answer = 'unknown'
final_paragraph = ''
index = 0
while final_answer == 'unknown':
final_answer = answers_and_scores[index][0]
final_paragraph = answers_and_scores[index][2]
index += 1
return final_answer, final_paragraph | 0.294722 | 0.176352 |
from measurements import Measurement
from units.time import Second
from units.prefixes.large import Kilo
from units.prefixes.small import Milli
seconds = Measurement(1.2, Second())
print(f"seconds: {seconds}")
milliseconds = seconds.convertTo(Milli())
print(f"{seconds} = {milliseconds}")
seconds = milliseconds.inBaseUnits()
print(f"{milliseconds} = {seconds}")
kiloseconds = seconds.convertTo(Kilo())
print(f"{seconds} = {kiloseconds}")
seconds = kiloseconds.inBaseUnits()
print(f"{kiloseconds} = {seconds}")
milliseconds = kiloseconds.convertTo(Milli())
print(f"{kiloseconds} = {milliseconds}")
kiloseconds = milliseconds.convertTo(Kilo())
print(f"{milliseconds} = {kiloseconds}")
from geometry.circles import Circle
from geometry.rectangles import Rectangle, Square
cameraSensor = Rectangle(720, 720)
circumscribed = Circle.circumscribe(cameraSensor.length, cameraSensor.height)
print(f"Circumscribing cameraSensor [{cameraSensor.length}x{cameraSensor.height}]: circumscribed radius: {circumscribed.radius}")
inscribed = Square.inscribe(circumscribed.radius)
print(f"Inscribing circumscribed radius: [{circumscribed.radius}]: inscribed dimensions: [{inscribed.length}x{inscribed.height}]")
from camera.mount.circular import CircularMount
cameraMount = CircularMount(circumscribed.radius)
print(f"Circumscribed cameraSensor radius: [{circumscribed.radius}]: cameraMount diameter: {cameraMount.diameter}")
from utilities import millisecondsPerFrame
print(f"msPf: {millisecondsPerFrame(60)}")
from physics.vectors import Vector
linear = Vector(3)
print(f"Magnitude of {linear}: {linear.magnitude()}")
uLinear = linear.unit()
print(f"Unit vector of {linear}: {uLinear}")
print(f"Magnitude of unit vector of {linear}: {uLinear.magnitude()}")
planar = Vector(3, 4)
print(f"Magnitude of {planar}: {planar.magnitude()}")
uPlanar = planar.unit()
print(f"Unit vector of {planar}: {uPlanar}")
print(f"Magnitude of unit vector of {planar}: {uPlanar.magnitude()}")
volumetric = Vector(3, 4, 5)
print(f"Magnitude of {volumetric}: {volumetric.magnitude()}")
uVolumetric = volumetric.unit()
print(f"Unit vector of {volumetric}: {uVolumetric}")
print(f"Magnitude of unit vector of {volumetric}: {uVolumetric.magnitude()}")
from physics.forces.gravitational import Gravitational
print(f"Universal gravitational force: {Gravitational.G}") | testing.py | from measurements import Measurement
from units.time import Second
from units.prefixes.large import Kilo
from units.prefixes.small import Milli
seconds = Measurement(1.2, Second())
print(f"seconds: {seconds}")
milliseconds = seconds.convertTo(Milli())
print(f"{seconds} = {milliseconds}")
seconds = milliseconds.inBaseUnits()
print(f"{milliseconds} = {seconds}")
kiloseconds = seconds.convertTo(Kilo())
print(f"{seconds} = {kiloseconds}")
seconds = kiloseconds.inBaseUnits()
print(f"{kiloseconds} = {seconds}")
milliseconds = kiloseconds.convertTo(Milli())
print(f"{kiloseconds} = {milliseconds}")
kiloseconds = milliseconds.convertTo(Kilo())
print(f"{milliseconds} = {kiloseconds}")
from geometry.circles import Circle
from geometry.rectangles import Rectangle, Square
cameraSensor = Rectangle(720, 720)
circumscribed = Circle.circumscribe(cameraSensor.length, cameraSensor.height)
print(f"Circumscribing cameraSensor [{cameraSensor.length}x{cameraSensor.height}]: circumscribed radius: {circumscribed.radius}")
inscribed = Square.inscribe(circumscribed.radius)
print(f"Inscribing circumscribed radius: [{circumscribed.radius}]: inscribed dimensions: [{inscribed.length}x{inscribed.height}]")
from camera.mount.circular import CircularMount
cameraMount = CircularMount(circumscribed.radius)
print(f"Circumscribed cameraSensor radius: [{circumscribed.radius}]: cameraMount diameter: {cameraMount.diameter}")
from utilities import millisecondsPerFrame
print(f"msPf: {millisecondsPerFrame(60)}")
from physics.vectors import Vector
linear = Vector(3)
print(f"Magnitude of {linear}: {linear.magnitude()}")
uLinear = linear.unit()
print(f"Unit vector of {linear}: {uLinear}")
print(f"Magnitude of unit vector of {linear}: {uLinear.magnitude()}")
planar = Vector(3, 4)
print(f"Magnitude of {planar}: {planar.magnitude()}")
uPlanar = planar.unit()
print(f"Unit vector of {planar}: {uPlanar}")
print(f"Magnitude of unit vector of {planar}: {uPlanar.magnitude()}")
volumetric = Vector(3, 4, 5)
print(f"Magnitude of {volumetric}: {volumetric.magnitude()}")
uVolumetric = volumetric.unit()
print(f"Unit vector of {volumetric}: {uVolumetric}")
print(f"Magnitude of unit vector of {volumetric}: {uVolumetric.magnitude()}")
from physics.forces.gravitational import Gravitational
print(f"Universal gravitational force: {Gravitational.G}") | 0.798187 | 0.638469 |
import tkinter as tk
from tkinter import font
from tkinter import messagebox
from tkinter.ttk import *
from tkinter.filedialog import askopenfilename
from ttkbootstrap import Style
class GUI(tk.Tk):
def __init__(self, app) -> None:
super().__init__("Antimonium")
self.app = app
style = Style("darkly")
self.title("Antimonium")
self.resizable(False, False)
self.menu = tk.Menu(self)
self.list_menu = tk.Menu(self.menu, tearoff=0)
self.list_menu.add_command(label="Import list...",underline=0)
self.list_menu.add_command(label="Export list...",underline=0)
self.process_menu = tk.Menu(self.menu, tearoff=0)
self.process_menu.add_command(label="Stop all", underline=0)
self.help_menu = tk.Menu(self.menu, tearoff=0)
self.help_menu.add_command(label="About",command=self.about,underline=0)
self.help_menu.add_command(label="License",command=self.license,underline=0)
self.menu.add_cascade(label="File", menu=self.list_menu, underline=0)
self.menu.add_cascade(label="Process", menu=self.process_menu, underline=0)
self.menu.add_cascade(label="Help", menu=self.help_menu, underline=0)
self.config(menu=self.menu)
self.left_frame = LeftFrame(self)
self.frame_separator = Separator(self, orient="vertical")
self.right_frame = RightFrame(self)
self.left_frame.grid(row=0, column=0, padx=3, pady=3, sticky="ns")
self.frame_separator.grid(row=0, column=1, padx=3, pady=3, sticky="ns")
self.right_frame.grid(row=0, column=2, padx=3, pady=3, sticky="ns")
def about(*args):
messagebox.showinfo(title="About",message="about...")
def license(*args):
messagebox.showinfo(title="License",message="license goes here...")
class LeftFrame(Frame):
def __init__(self, parent, *args, **kwargs):
Frame.__init__(self, parent, *args, **kwargs)
self.parent = parent
self.currentSort = "a-z"
self.font1 = font.Font(self, size=15)
self.sort_btn = Button(self, text="Sorted A-Z", command=self.changeSort)
self.app_list = tk.Listbox(self, width=20, height=15, font=self.font1)
self.app_scroll = Scrollbar(self,
orient="vertical",
command=self.app_list.yview
)
self.sort_btn.grid(row=0, column=0, pady=(1,2))
self.app_list.grid(row=1, column=0)
self.app_scroll.grid(row=1, column=1, sticky="ns")
self.app_list.config(yscrollcommand=self.app_scroll.set)
self.app_list.bind("<<ListboxSelect>>", self.onSelect)
def updateList(self, items):
self.app_list.delete(0, "end")
self.app_list.insert("end", *items)
def getSelectedLabelname(self):
try:
return self.app_list.get(self.app_list.curselection())
except: return
def onSelect(self, event=None):
labelname = self.getSelectedLabelname()
if labelname:
self.parent.app.gui_updateInfo(labelname)
def changeSort(self):
if self.currentSort == "a-z":
self.currentSort = "z-a"
self.sort_btn["text"] = "Sorted Z-A"
self.parent.app.gui_changeSort("z-a")
elif self.currentSort == "z-a":
self.currentSort = "date"
self.sort_btn["text"] = "Sorted by Date Added"
self.parent.app.gui_changeSort("date")
elif self.currentSort == "date":
self.currentSort = "a-z"
self.sort_btn["text"] = "Sorted A-Z"
self.parent.app.gui_changeSort("a-z")
class RightFrame(Frame):
def __init__(self, parent, *args, **kwargs):
Frame.__init__(self, parent, *args, **kwargs)
self.parent = parent
self.options_frame = OptionsFrame(self)
self.info_frame = InfoFrame(self)
self.start_frame = StartFrame(self)
self.options_frame.pack()
self.info_frame.pack(fill="x", pady=(10,0))
self.start_frame.pack(side="bottom", fill="x")
class OptionsFrame(Frame):
def __init__(self, parent, *args, **kwargs):
Frame.__init__(self, parent, *args, **kwargs)
self.parent = parent
self.grid_rowconfigure(0, minsize=31)
self.add_btn = Button(self, text="Add a program", width=25, command=self.openFile)
self.rename_btn = Button(self, text="Rename selected", command=self.addRenameEntry)
self.remove_btn = Button(self, text="Remove selected", command=self.removeItem)
self.add_btn.grid(row=1, column=0, sticky="ew", pady=1)
self.rename_btn.grid(row=2, column=0, sticky="ew", pady=1)
self.remove_btn.grid(row=3, column=0, sticky="ew", pady=1)
def openFile(self):
filepath = askopenfilename(filetypes=(("Executables", "*.exe"),))
if filepath:
self.parent.parent.app.gui_addProgram(filepath)
def addRenameEntry(self):
if not (labelname := self.parent.parent.left_frame.getSelectedLabelname()):
return
label = self.parent.parent.app.manager.removeSuffix(labelname)
self.rename_btn["text"] = f"Renaming - {label}"
self.rename_btn["state"] = "disabled"
self.remove_btn.grid_forget()
self.rename_entry = Entry(self)
self.rename_entry.bind("<Return>", lambda event: self.renameItem(label))
self.rename_entry.insert(0, label)
self.rename_entry.focus()
self.rename_entry.selection_range(0, "end")
self.rename_cancel = Button(self, text="Cancel", style='danger.TButton', command=self.cancelRename)
self.rename_entry.grid(row=3, column=0, sticky="ew", pady=1)
self.rename_cancel.grid(row=4, column=0, sticky="ew", pady=1)
self.remove_btn.grid(row=5, column=0, sticky="ew", pady=1)
def renameItem(self, old_label):
new_label = self.rename_entry.get()
if new_label and not " (running)" in new_label:
self.parent.parent.app.gui_renameProgram(new_label, old_label)
self.cancelRename()
def cancelRename(self):
self.remove_btn.grid_forget()
self.rename_entry.destroy()
self.rename_cancel.destroy()
self.remove_btn.grid(row=3, column=0, sticky="ew", pady=1)
self.rename_btn.config(
text="Rename selected",
state="normal"
)
def removeItem(self):
if (labelname := self.parent.parent.left_frame.getSelectedLabelname()):
self.parent.parent.app.gui_removeProgram(labelname)
class InfoFrame(LabelFrame):
def __init__(self, parent, *args, **kwargs):
LabelFrame.__init__(self, parent, text="App Info", *args, **kwargs)
self.info1_label = Label(self, text="Path: File not selected.")
self.info2_label = Label(self, text="Date created: File not selected.")
self.info3_label = Label(self, text="Size: File not selected.")
self.info1_label.grid(row=0, column=0, sticky="w")
self.info2_label.grid(row=1, column=0, sticky="w")
self.info3_label.grid(row=2, column=0, sticky="w")
def setInfo(self, filepath, size, creation):
if len(filepath) > 35:
filepath = filepath[:33] + "..."
self.info1_label["text"] = f"Path: {filepath}"
self.info2_label["text"] = f"Date created: {creation}"
self.info3_label["text"] = f"Size: {size}"
class StartFrame(Frame):
def __init__(self, parent, *args, **kwargs):
Frame.__init__(self, parent, *args, **kwargs)
self.parent = parent
self.close_var = tk.IntVar()
self.close_var.set(1 if self.parent.parent.app.cache.read("closeOnLaunch") else 0)
self.close_check = Checkbutton(self, text="Close antimonium on launch", variable=self.close_var)
self.start_btn = Button(self, text="START", width=35, command=self.runItem)
self.close_check.grid(row=0, column=0, sticky="w", pady=5)
self.start_btn.grid(row=1, column=0, sticky="ew", ipady=5)
def runItem(self):
if (labelname := self.parent.parent.left_frame.getSelectedLabelname()):
self.parent.parent.app.gui_runProgram(labelname, self.close_var.get())
self.setRunning()
def stopItem(self):
if (labelname := self.parent.parent.left_frame.getSelectedLabelname()):
self.parent.parent.app.gui_stopProgram(labelname)
self.setRun()
def setRunning(self):
self.start_btn.config(
text="Stop",
command=self.stopItem,
style='warning.TButton'
)
def setRun(self):
self.start_btn.config(
text="START",
command=self.runItem,
style='primary.TButton'
)
class PlaceholderEntry(Entry):
def __init__(self, container,placeholder,placeholder_style,*args, **kwargs):
super().__init__(container, *args, **kwargs)
self.placeholder = placeholder
self.field_style = kwargs.pop("style", "TEntry")
self.placeholder_style=kwargs.pop("placeholder_style",self.field_style)
self["style"] = self.placeholder_style
self.insert("0", self.placeholder)
self["foreground"] = "gray"
self.bind("<FocusIn>", self._clear_placeholder)
self.bind("<FocusOut>", self._add_placeholder)
def _clear_placeholder(self, e):
if self["style"] == self.placeholder_style:
self.delete("0", "end")
self["style"] = self.field_style
self["foreground"] = "black"
def _add_placeholder(self, e):
if not self.get():
self.insert("0", self.placeholder)
self["style"] = self.placeholder_style
self["foreground"] = "gray" | modules/gui.py | import tkinter as tk
from tkinter import font
from tkinter import messagebox
from tkinter.ttk import *
from tkinter.filedialog import askopenfilename
from ttkbootstrap import Style
class GUI(tk.Tk):
def __init__(self, app) -> None:
super().__init__("Antimonium")
self.app = app
style = Style("darkly")
self.title("Antimonium")
self.resizable(False, False)
self.menu = tk.Menu(self)
self.list_menu = tk.Menu(self.menu, tearoff=0)
self.list_menu.add_command(label="Import list...",underline=0)
self.list_menu.add_command(label="Export list...",underline=0)
self.process_menu = tk.Menu(self.menu, tearoff=0)
self.process_menu.add_command(label="Stop all", underline=0)
self.help_menu = tk.Menu(self.menu, tearoff=0)
self.help_menu.add_command(label="About",command=self.about,underline=0)
self.help_menu.add_command(label="License",command=self.license,underline=0)
self.menu.add_cascade(label="File", menu=self.list_menu, underline=0)
self.menu.add_cascade(label="Process", menu=self.process_menu, underline=0)
self.menu.add_cascade(label="Help", menu=self.help_menu, underline=0)
self.config(menu=self.menu)
self.left_frame = LeftFrame(self)
self.frame_separator = Separator(self, orient="vertical")
self.right_frame = RightFrame(self)
self.left_frame.grid(row=0, column=0, padx=3, pady=3, sticky="ns")
self.frame_separator.grid(row=0, column=1, padx=3, pady=3, sticky="ns")
self.right_frame.grid(row=0, column=2, padx=3, pady=3, sticky="ns")
def about(*args):
messagebox.showinfo(title="About",message="about...")
def license(*args):
messagebox.showinfo(title="License",message="license goes here...")
class LeftFrame(Frame):
def __init__(self, parent, *args, **kwargs):
Frame.__init__(self, parent, *args, **kwargs)
self.parent = parent
self.currentSort = "a-z"
self.font1 = font.Font(self, size=15)
self.sort_btn = Button(self, text="Sorted A-Z", command=self.changeSort)
self.app_list = tk.Listbox(self, width=20, height=15, font=self.font1)
self.app_scroll = Scrollbar(self,
orient="vertical",
command=self.app_list.yview
)
self.sort_btn.grid(row=0, column=0, pady=(1,2))
self.app_list.grid(row=1, column=0)
self.app_scroll.grid(row=1, column=1, sticky="ns")
self.app_list.config(yscrollcommand=self.app_scroll.set)
self.app_list.bind("<<ListboxSelect>>", self.onSelect)
def updateList(self, items):
self.app_list.delete(0, "end")
self.app_list.insert("end", *items)
def getSelectedLabelname(self):
try:
return self.app_list.get(self.app_list.curselection())
except: return
def onSelect(self, event=None):
labelname = self.getSelectedLabelname()
if labelname:
self.parent.app.gui_updateInfo(labelname)
def changeSort(self):
if self.currentSort == "a-z":
self.currentSort = "z-a"
self.sort_btn["text"] = "Sorted Z-A"
self.parent.app.gui_changeSort("z-a")
elif self.currentSort == "z-a":
self.currentSort = "date"
self.sort_btn["text"] = "Sorted by Date Added"
self.parent.app.gui_changeSort("date")
elif self.currentSort == "date":
self.currentSort = "a-z"
self.sort_btn["text"] = "Sorted A-Z"
self.parent.app.gui_changeSort("a-z")
class RightFrame(Frame):
def __init__(self, parent, *args, **kwargs):
Frame.__init__(self, parent, *args, **kwargs)
self.parent = parent
self.options_frame = OptionsFrame(self)
self.info_frame = InfoFrame(self)
self.start_frame = StartFrame(self)
self.options_frame.pack()
self.info_frame.pack(fill="x", pady=(10,0))
self.start_frame.pack(side="bottom", fill="x")
class OptionsFrame(Frame):
def __init__(self, parent, *args, **kwargs):
Frame.__init__(self, parent, *args, **kwargs)
self.parent = parent
self.grid_rowconfigure(0, minsize=31)
self.add_btn = Button(self, text="Add a program", width=25, command=self.openFile)
self.rename_btn = Button(self, text="Rename selected", command=self.addRenameEntry)
self.remove_btn = Button(self, text="Remove selected", command=self.removeItem)
self.add_btn.grid(row=1, column=0, sticky="ew", pady=1)
self.rename_btn.grid(row=2, column=0, sticky="ew", pady=1)
self.remove_btn.grid(row=3, column=0, sticky="ew", pady=1)
def openFile(self):
filepath = askopenfilename(filetypes=(("Executables", "*.exe"),))
if filepath:
self.parent.parent.app.gui_addProgram(filepath)
def addRenameEntry(self):
if not (labelname := self.parent.parent.left_frame.getSelectedLabelname()):
return
label = self.parent.parent.app.manager.removeSuffix(labelname)
self.rename_btn["text"] = f"Renaming - {label}"
self.rename_btn["state"] = "disabled"
self.remove_btn.grid_forget()
self.rename_entry = Entry(self)
self.rename_entry.bind("<Return>", lambda event: self.renameItem(label))
self.rename_entry.insert(0, label)
self.rename_entry.focus()
self.rename_entry.selection_range(0, "end")
self.rename_cancel = Button(self, text="Cancel", style='danger.TButton', command=self.cancelRename)
self.rename_entry.grid(row=3, column=0, sticky="ew", pady=1)
self.rename_cancel.grid(row=4, column=0, sticky="ew", pady=1)
self.remove_btn.grid(row=5, column=0, sticky="ew", pady=1)
def renameItem(self, old_label):
new_label = self.rename_entry.get()
if new_label and not " (running)" in new_label:
self.parent.parent.app.gui_renameProgram(new_label, old_label)
self.cancelRename()
def cancelRename(self):
self.remove_btn.grid_forget()
self.rename_entry.destroy()
self.rename_cancel.destroy()
self.remove_btn.grid(row=3, column=0, sticky="ew", pady=1)
self.rename_btn.config(
text="Rename selected",
state="normal"
)
def removeItem(self):
if (labelname := self.parent.parent.left_frame.getSelectedLabelname()):
self.parent.parent.app.gui_removeProgram(labelname)
class InfoFrame(LabelFrame):
def __init__(self, parent, *args, **kwargs):
LabelFrame.__init__(self, parent, text="App Info", *args, **kwargs)
self.info1_label = Label(self, text="Path: File not selected.")
self.info2_label = Label(self, text="Date created: File not selected.")
self.info3_label = Label(self, text="Size: File not selected.")
self.info1_label.grid(row=0, column=0, sticky="w")
self.info2_label.grid(row=1, column=0, sticky="w")
self.info3_label.grid(row=2, column=0, sticky="w")
def setInfo(self, filepath, size, creation):
if len(filepath) > 35:
filepath = filepath[:33] + "..."
self.info1_label["text"] = f"Path: {filepath}"
self.info2_label["text"] = f"Date created: {creation}"
self.info3_label["text"] = f"Size: {size}"
class StartFrame(Frame):
def __init__(self, parent, *args, **kwargs):
Frame.__init__(self, parent, *args, **kwargs)
self.parent = parent
self.close_var = tk.IntVar()
self.close_var.set(1 if self.parent.parent.app.cache.read("closeOnLaunch") else 0)
self.close_check = Checkbutton(self, text="Close antimonium on launch", variable=self.close_var)
self.start_btn = Button(self, text="START", width=35, command=self.runItem)
self.close_check.grid(row=0, column=0, sticky="w", pady=5)
self.start_btn.grid(row=1, column=0, sticky="ew", ipady=5)
def runItem(self):
if (labelname := self.parent.parent.left_frame.getSelectedLabelname()):
self.parent.parent.app.gui_runProgram(labelname, self.close_var.get())
self.setRunning()
def stopItem(self):
if (labelname := self.parent.parent.left_frame.getSelectedLabelname()):
self.parent.parent.app.gui_stopProgram(labelname)
self.setRun()
def setRunning(self):
self.start_btn.config(
text="Stop",
command=self.stopItem,
style='warning.TButton'
)
def setRun(self):
self.start_btn.config(
text="START",
command=self.runItem,
style='primary.TButton'
)
class PlaceholderEntry(Entry):
def __init__(self, container,placeholder,placeholder_style,*args, **kwargs):
super().__init__(container, *args, **kwargs)
self.placeholder = placeholder
self.field_style = kwargs.pop("style", "TEntry")
self.placeholder_style=kwargs.pop("placeholder_style",self.field_style)
self["style"] = self.placeholder_style
self.insert("0", self.placeholder)
self["foreground"] = "gray"
self.bind("<FocusIn>", self._clear_placeholder)
self.bind("<FocusOut>", self._add_placeholder)
def _clear_placeholder(self, e):
if self["style"] == self.placeholder_style:
self.delete("0", "end")
self["style"] = self.field_style
self["foreground"] = "black"
def _add_placeholder(self, e):
if not self.get():
self.insert("0", self.placeholder)
self["style"] = self.placeholder_style
self["foreground"] = "gray" | 0.4231 | 0.057361 |
from collections import namedtuple
import sys
import matplotlib.pyplot as plt
import numpy as np
import pandas
import pickle
DEFAULT_INPUT_FILENAME = 'images/summary.csv'
class QuestionAndAbilityResult(object):
'''Draw reesults of the item response theory script'''
def __init__(self, argv):
in_filename = argv[1] if len(argv) > 1 else DEFAULT_INPUT_FILENAME
self.out_filename = in_filename.replace('.', '_') + '.png'
self.df = None
if '.csv' in in_filename:
self.df = pandas.read_csv(in_filename)
else:
with open(in_filename, 'rb') as f:
self.df = pickle.load(f)
self.df_success = self.df.loc[self.df['converged'] == True]
self.df_failure = self.df.loc[self.df['converged'] == False]
print('Successful trials', self.df_success['trial'].reshape(-1))
@staticmethod
def add_jitter(xs):
return xs * np.random.normal(loc=1.0, scale=0.025, size=len(xs))
@staticmethod
def point_size(df_target):
return np.clip(a=[40.0 * np.log1p(df_target['trial'])], a_min=40.0, a_max=200.0)
def draw_scatter(self, ax, df, label, color, marker, alpha):
xs = self.add_jitter(df['hmc_stepsize'])
ys = self.add_jitter(df['hmc_leapfrog_steps'])
ss = self.point_size(df)
ax.scatter(x=xs, y=ys, s=ss, label=label, c=color, marker=marker, alpha=alpha)
return ax
def draw(self):
fig = plt.figure()
ax = fig.add_subplot(1,1,1)
self.draw_scatter(ax, self.df_failure, 'Failure', 'royalblue', 'x', 0.8)
self.draw_scatter(ax, self.df_success, 'Success', 'darkorchid', 'o', 0.3)
ax.set_xscale('log')
ax.set_yscale('log')
ax.set_title('Result')
ax.set_xlabel('HMC stepsize')
ax.set_ylabel('HMC leapfrog steps')
ax.tick_params(direction='out', which='major', length=10, width=1)
ax.tick_params(direction='out', which='minor', length=8, width=1)
ax.legend(loc='upper center', bbox_to_anchor=(0.5, -0.15), ncol=2)
for i, hmc_stepsize in enumerate(self.df_success['hmc_stepsize']):
hmc_leapfrog_steps = self.df_success.iloc[i]['hmc_leapfrog_steps']
## txt = '{0:.3e}, {1}'.format(hmc_stepsize, int(hmc_leapfrog_steps))
## ax.annotate(txt, (hmc_stepsize, hmc_leapfrog_steps))
plt.savefig(self.out_filename, dpi=120, bbox_inches='tight')
plt.close()
if __name__ == '__main__':
QuestionAndAbilityResult(sys.argv).draw() | scripts/stock_price/item_response_theory_result.py | from collections import namedtuple
import sys
import matplotlib.pyplot as plt
import numpy as np
import pandas
import pickle
DEFAULT_INPUT_FILENAME = 'images/summary.csv'
class QuestionAndAbilityResult(object):
'''Draw reesults of the item response theory script'''
def __init__(self, argv):
in_filename = argv[1] if len(argv) > 1 else DEFAULT_INPUT_FILENAME
self.out_filename = in_filename.replace('.', '_') + '.png'
self.df = None
if '.csv' in in_filename:
self.df = pandas.read_csv(in_filename)
else:
with open(in_filename, 'rb') as f:
self.df = pickle.load(f)
self.df_success = self.df.loc[self.df['converged'] == True]
self.df_failure = self.df.loc[self.df['converged'] == False]
print('Successful trials', self.df_success['trial'].reshape(-1))
@staticmethod
def add_jitter(xs):
return xs * np.random.normal(loc=1.0, scale=0.025, size=len(xs))
@staticmethod
def point_size(df_target):
return np.clip(a=[40.0 * np.log1p(df_target['trial'])], a_min=40.0, a_max=200.0)
def draw_scatter(self, ax, df, label, color, marker, alpha):
xs = self.add_jitter(df['hmc_stepsize'])
ys = self.add_jitter(df['hmc_leapfrog_steps'])
ss = self.point_size(df)
ax.scatter(x=xs, y=ys, s=ss, label=label, c=color, marker=marker, alpha=alpha)
return ax
def draw(self):
fig = plt.figure()
ax = fig.add_subplot(1,1,1)
self.draw_scatter(ax, self.df_failure, 'Failure', 'royalblue', 'x', 0.8)
self.draw_scatter(ax, self.df_success, 'Success', 'darkorchid', 'o', 0.3)
ax.set_xscale('log')
ax.set_yscale('log')
ax.set_title('Result')
ax.set_xlabel('HMC stepsize')
ax.set_ylabel('HMC leapfrog steps')
ax.tick_params(direction='out', which='major', length=10, width=1)
ax.tick_params(direction='out', which='minor', length=8, width=1)
ax.legend(loc='upper center', bbox_to_anchor=(0.5, -0.15), ncol=2)
for i, hmc_stepsize in enumerate(self.df_success['hmc_stepsize']):
hmc_leapfrog_steps = self.df_success.iloc[i]['hmc_leapfrog_steps']
## txt = '{0:.3e}, {1}'.format(hmc_stepsize, int(hmc_leapfrog_steps))
## ax.annotate(txt, (hmc_stepsize, hmc_leapfrog_steps))
plt.savefig(self.out_filename, dpi=120, bbox_inches='tight')
plt.close()
if __name__ == '__main__':
QuestionAndAbilityResult(sys.argv).draw() | 0.333395 | 0.164349 |
import os
from flask import Flask, render_template, request, Response
import flask_assets as assets
from dictionary import Dictionary
from word import Word
from exceptions import LexicallyWebException
app = Flask(__name__)
app.config.from_object('config')
app.config['UPLOAD_FOLDER'] = 'uploads/'
app.config['ALLOWED_EXTENSION'] = set(['json'])
asset = assets.Environment(app)
scss = assets.Bundle('scss/main.scss', filters='scss', output='css/main.css')
coffee = assets.Bundle('coffee/main.coffee',
filters='coffeescript',
output='js/main.js')
asset.register('main_css', scss)
asset.register('main_coffee', coffee)
# http://stackoverflow.com/a/9511655
extra_dirs = ['templates',]
extra_files = extra_dirs[:]
for extra_dir in extra_dirs:
for dirname, dirs, files in os.walk(extra_dir):
for filename in files:
filename = os.path.join(dirname, filename)
if os.path.isfile(filename):
extra_files.append(filename)
d = Dictionary()
try:
d.load()
except:
pass
def allowed_file(filename):
return (
'.' in filename and
filename.rsplit('.', 1)[1] in app.config['ALLOWED_EXTENSIONS']
)
@app.route('/')
@app.route('/index')
def index():
return render_template('layout.html',
language=d.language,
dictionary=d)
@app.route('/', methods=['POST'])
def modify_data():
# Text Parameters
parent = str(request.form['parent']).split(",")
pos = str(request.form['pos'])
meaning = str(request.form['meaning'])
ipa = str(request.form['ipa'])
notes = str(request.form['notes'])
language = str(request.form['language'])
# File
file_ = request.files.get('file')
# Confirmation
submit_value = request.form['submit']
if submit_value == "Add Word":
d.add_word(Word(parent, pos, meaning, ipa, notes=notes))
elif submit_value == "Delete Word":
d.del_word(ipa)
elif submit_value == "Save":
return Response(d.save(),
mimetype='application/json',
headers={'Content-Disposition':
'attachment;filename=dictionary.json'}
)
elif submit_value == "Load":
if file_ and allowed_file(file_.filename):
d.load(file_.stream.read())
elif submit_value == "Export as HTML":
return Response(d.export_as_html(d.language))
elif submit_value == "Change Language":
d.language = language
return render_template('layout.html',
language=d.language,
dictionary=d)
if __name__ == '__main__':
app.run(debug=True, extra_files=extra_files) | lexically/app.py |
import os
from flask import Flask, render_template, request, Response
import flask_assets as assets
from dictionary import Dictionary
from word import Word
from exceptions import LexicallyWebException
app = Flask(__name__)
app.config.from_object('config')
app.config['UPLOAD_FOLDER'] = 'uploads/'
app.config['ALLOWED_EXTENSION'] = set(['json'])
asset = assets.Environment(app)
scss = assets.Bundle('scss/main.scss', filters='scss', output='css/main.css')
coffee = assets.Bundle('coffee/main.coffee',
filters='coffeescript',
output='js/main.js')
asset.register('main_css', scss)
asset.register('main_coffee', coffee)
# http://stackoverflow.com/a/9511655
extra_dirs = ['templates',]
extra_files = extra_dirs[:]
for extra_dir in extra_dirs:
for dirname, dirs, files in os.walk(extra_dir):
for filename in files:
filename = os.path.join(dirname, filename)
if os.path.isfile(filename):
extra_files.append(filename)
d = Dictionary()
try:
d.load()
except:
pass
def allowed_file(filename):
return (
'.' in filename and
filename.rsplit('.', 1)[1] in app.config['ALLOWED_EXTENSIONS']
)
@app.route('/')
@app.route('/index')
def index():
return render_template('layout.html',
language=d.language,
dictionary=d)
@app.route('/', methods=['POST'])
def modify_data():
# Text Parameters
parent = str(request.form['parent']).split(",")
pos = str(request.form['pos'])
meaning = str(request.form['meaning'])
ipa = str(request.form['ipa'])
notes = str(request.form['notes'])
language = str(request.form['language'])
# File
file_ = request.files.get('file')
# Confirmation
submit_value = request.form['submit']
if submit_value == "Add Word":
d.add_word(Word(parent, pos, meaning, ipa, notes=notes))
elif submit_value == "Delete Word":
d.del_word(ipa)
elif submit_value == "Save":
return Response(d.save(),
mimetype='application/json',
headers={'Content-Disposition':
'attachment;filename=dictionary.json'}
)
elif submit_value == "Load":
if file_ and allowed_file(file_.filename):
d.load(file_.stream.read())
elif submit_value == "Export as HTML":
return Response(d.export_as_html(d.language))
elif submit_value == "Change Language":
d.language = language
return render_template('layout.html',
language=d.language,
dictionary=d)
if __name__ == '__main__':
app.run(debug=True, extra_files=extra_files) | 0.301465 | 0.082734 |
import numpy as np
"""
This file contains constants specifically in baxter domain.
This file is refferenced in:
baxter_predicates
baxter_sampling
test_baxter_predicates
"""
"""
Following Constants are used in baxter_predicates
"""
# Baxter dimension constant
BASE_DIM = 3
JOINT_DIM = 6
ROBOT_ATTR_DIM = 8
JOINT_FAST_VELOCITY = 0.1
JOINT_SLOW_VELOCITY = 0.01
# Baxter Movement Constraints
BASE_MOVE = 0.3
JOINT_MOVE_FACTOR = 15
ROT_LB = -np.pi
ROT_UB = np.pi
GRIPPER_OPEN = 0.75
GRIPPER_CLOSE = 0.5
GRIPPER_Y_OFFSET = 0.078
GRIPPER_OFFSET_ANGLE = 0.163 # Angle of line segment from robot x, y to hand x, y
GRIPPER_OFFSET_DISP = 0.480 # Distance from robot x, y to hand x, y
HAND_DIST = -0.04 # Distance from where the hand link registers to the center of the hand
COLLISION_DOF_INDICES = [0, 1, 2, 3, 4]
# EEReachable Constants
APPROACH_DIST = 0.02
RETREAT_DIST = 0.02
EEREACHABLE_STEPS = 5
# Collision Constants
DIST_SAFE = 1e-3
RCOLLIDES_DSAFE = 1e-3
COLLIDES_DSAFE = 1e-3
# Plan Coefficient
EEREACHABLE_COEFF = 5e-3
EEREACHABLE_ROT_COEFF = 5e-3
IN_GRIPPER_COEFF = 1e-1
IN_GRIPPER_ROT_COEFF = 1e-1
WASHER_IN_GRIPPER_ROT_COEFF = 1e-2
GRIPPER_AT_COEFF = 1e-2
GRIPPER_AT_ROT_COEFF = 1e-2
OBSTRUCTS_COEFF = 1e0
COLLIDE_COEFF = 4e1
RCOLLIDE_COEFF = 1e-1
MAX_CONTACT_DISTANCE = .1
GRASP_VALID_COEFF = 7.5e1
EEGRASP_VALID_COEFF = 1e2
# BASKET_OFFSET = 0.317
# BASKET_OFFSET = 0.325
BASKET_OFFSET = 0.33
BASKET_GRIP_OFFSET = 0.03
BASKET_SHALLOW_GRIP_OFFSET = 0.05
# How far to go into the washer
WASHER_DEPTH_OFFSET = 0
# Added height from rotor base
ROTOR_BASE_HEIGHT = 0.12
# Height difference from table top to bottom of basket
BASKET_BASE_DELTA = 0.035
"""
Following constants are used in baxter_sampling
"""
EE_ANGLE_SAMPLE_SIZE = 8
NUM_RESAMPLES = 10
MAX_ITERATION_STEP = 200
BIAS_RADIUS = 0.1
ROT_BIAS = np.pi/8
RESAMPLE_FACTOR = [0.005,0.005,0.25]
RESAMPLE_DIR = [1,1,0.5]
RESAMPLE_ROT = [np.pi/2, 0, 0]
RESAMPLE_OPENED_DOOR_ROT = [np.pi/2, 0, 0]
RESAMPLE_CLOSED_DOOR_ROT = [5*np.pi/6, 0, 0]
RESAMPLE_FACTOR_LR = [0.1, 0.1, 0.05]
"""
Following constants are for testing purposes
"""
TOL = 1e-4
TEST_GRAD = True
'''
Following constants are for computing torque controllers
'''
time_delta = 0.005
'''
Following constants are for general use
'''
joints = []
PRODUCTION = False | opentamp/src/core/util_classes/hsr_constants.py | import numpy as np
"""
This file contains constants specifically in baxter domain.
This file is refferenced in:
baxter_predicates
baxter_sampling
test_baxter_predicates
"""
"""
Following Constants are used in baxter_predicates
"""
# Baxter dimension constant
BASE_DIM = 3
JOINT_DIM = 6
ROBOT_ATTR_DIM = 8
JOINT_FAST_VELOCITY = 0.1
JOINT_SLOW_VELOCITY = 0.01
# Baxter Movement Constraints
BASE_MOVE = 0.3
JOINT_MOVE_FACTOR = 15
ROT_LB = -np.pi
ROT_UB = np.pi
GRIPPER_OPEN = 0.75
GRIPPER_CLOSE = 0.5
GRIPPER_Y_OFFSET = 0.078
GRIPPER_OFFSET_ANGLE = 0.163 # Angle of line segment from robot x, y to hand x, y
GRIPPER_OFFSET_DISP = 0.480 # Distance from robot x, y to hand x, y
HAND_DIST = -0.04 # Distance from where the hand link registers to the center of the hand
COLLISION_DOF_INDICES = [0, 1, 2, 3, 4]
# EEReachable Constants
APPROACH_DIST = 0.02
RETREAT_DIST = 0.02
EEREACHABLE_STEPS = 5
# Collision Constants
DIST_SAFE = 1e-3
RCOLLIDES_DSAFE = 1e-3
COLLIDES_DSAFE = 1e-3
# Plan Coefficient
EEREACHABLE_COEFF = 5e-3
EEREACHABLE_ROT_COEFF = 5e-3
IN_GRIPPER_COEFF = 1e-1
IN_GRIPPER_ROT_COEFF = 1e-1
WASHER_IN_GRIPPER_ROT_COEFF = 1e-2
GRIPPER_AT_COEFF = 1e-2
GRIPPER_AT_ROT_COEFF = 1e-2
OBSTRUCTS_COEFF = 1e0
COLLIDE_COEFF = 4e1
RCOLLIDE_COEFF = 1e-1
MAX_CONTACT_DISTANCE = .1
GRASP_VALID_COEFF = 7.5e1
EEGRASP_VALID_COEFF = 1e2
# BASKET_OFFSET = 0.317
# BASKET_OFFSET = 0.325
BASKET_OFFSET = 0.33
BASKET_GRIP_OFFSET = 0.03
BASKET_SHALLOW_GRIP_OFFSET = 0.05
# How far to go into the washer
WASHER_DEPTH_OFFSET = 0
# Added height from rotor base
ROTOR_BASE_HEIGHT = 0.12
# Height difference from table top to bottom of basket
BASKET_BASE_DELTA = 0.035
"""
Following constants are used in baxter_sampling
"""
EE_ANGLE_SAMPLE_SIZE = 8
NUM_RESAMPLES = 10
MAX_ITERATION_STEP = 200
BIAS_RADIUS = 0.1
ROT_BIAS = np.pi/8
RESAMPLE_FACTOR = [0.005,0.005,0.25]
RESAMPLE_DIR = [1,1,0.5]
RESAMPLE_ROT = [np.pi/2, 0, 0]
RESAMPLE_OPENED_DOOR_ROT = [np.pi/2, 0, 0]
RESAMPLE_CLOSED_DOOR_ROT = [5*np.pi/6, 0, 0]
RESAMPLE_FACTOR_LR = [0.1, 0.1, 0.05]
"""
Following constants are for testing purposes
"""
TOL = 1e-4
TEST_GRAD = True
'''
Following constants are for computing torque controllers
'''
time_delta = 0.005
'''
Following constants are for general use
'''
joints = []
PRODUCTION = False | 0.47025 | 0.458894 |
# ================== i18n.py =====================
# It localizes website elements.
# Hook type: pre_build (modifies config file)
# Configuration:
# Create a i18n.yaml file in your project root. Look at i18n.yaml and i18n.example.yaml
# to get a feel for the structure.
# Add the correct id to every element (via react-template.yaml)
import json
import os
import sys
import shutil
# External libs
# pip install pyyaml
import yaml
CODEC = "utf-8"
DATA_PATH = "i18n.yaml"
DATA_PLACEHOLDER = "__I18N_JSON__"
JS_OUTPUT_NAME = "i18n.js"
JS_INPUT_PATH = "template-tools/i18n/i18n_temlate.js"
CONFIG_PATH = "react-template.yaml"
CUSTOM_HTML_HEAD_FIELD = "customHtmlHead"
SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
LANGUAGE_CHOOSER_DOM_FIELD = "language_chooser_dom"
def load_config(project_dir: str) -> dict:
# Load the project data file (if it exists)
try:
project_data_path = os.path.join(project_dir, DATA_PATH)
project_data = parse_yaml_file(project_data_path) or {}
except Exception:
project_data = {}
# Check if the project should be merged with the defaults
ignore_defaults = project_data.get("ignore_defaults", False)
if ignore_defaults:
# Just use the project data, ignore the defaults
return project_data
else:
# Load the template data file (defaults)
template_data_path = os.path.join(SCRIPT_DIR, DATA_PATH)
template_data = parse_yaml_file(template_data_path)
# Merge the two data files
merged_data = template_data
if project_data:
# Merge the individual config items
for [key, data] in project_data.items():
if key == "ignore_defaults":
# Already processed
pass
elif key == "languages":
# Overwrite language list
merged_data[key] = data
elif key == "translations":
# Merge translations dict
translations = template_data.get(key, {})
translations.update(data)
template_data[key] = translations
else:
raise Exception(f"Unsupported config key: '{key}'")
text = yaml.safe_dump(merged_data)
write_file_bytes(
"template-tools/debug/i18n.merged.yaml", text.encode(CODEC))
return merged_data
def create_i18n_js(i18n_config: dict, project_dir: str):
translations = i18n_config.get("translations", {})
languages = set()
for translation_dict in translations.values():
languages.update(translation_dict.keys())
js_data = {
"languages": list(sorted(languages)),
"translations": translations,
}
# Inject the data into the file
js_output_path = "public/"+JS_OUTPUT_NAME
inject_data_into_js_file(js_data, JS_INPUT_PATH, js_output_path)
def inject_data_into_js_file(data, js_input_file: str, js_output_file: str):
text = read_file_bytes(js_input_file).decode(CODEC)
# Sorting them forces them in a deterministic order. Same input -> same output
json_string = json.dumps(data, sort_keys=True)
new_text = text.replace(DATA_PLACEHOLDER, json_string)
if new_text == text:
raise Exception("JS input template has no placeholder for the data")
write_file_bytes(js_output_file, new_text.encode(CODEC))
def inject_script_url_into_config(i18n_config: dict, project_dir: str):
yaml_path = os.path.join(project_dir, CONFIG_PATH)
config = parse_yaml_file(yaml_path)
# Inject script tag to load i18n.js
script_tag = f'<script src="%PUBLIC_URL%/{JS_OUTPUT_NAME}"></script>'
custom_html_head = config.get(CUSTOM_HTML_HEAD_FIELD, "")
custom_html_head += script_tag
# Inject dom for language chooser
languages = i18n_config.get("languages", [])
if languages:
lang_select = f'''<select id="page-language-chooser">
{"".join([
f'<option value="{lang_obj["code"]}">{lang_obj["title"]}</option>'
for lang_obj in languages
])
}
</select>'''
config[LANGUAGE_CHOOSER_DOM_FIELD] = lang_select
# Append the css link or language selector
# custom_html_head += "<link rel=stylesheet href=%PUBLIC_URL%/i18n.css>"
# shutil.move("template-tools/i18n/i18n.scss",
# "public/i18n.scss")
shutil.move("template-tools/i18n/languageicon-org.png",
"public/languageicon-org.png")
else:
config[LANGUAGE_CHOOSER_DOM_FIELD] = ""
config[CUSTOM_HTML_HEAD_FIELD] = custom_html_head
text = yaml.safe_dump(config)
write_file_bytes(CONFIG_PATH, text.encode(CODEC))
def parse_yaml_file(yamlPath: str):
yamlText = read_file_bytes(yamlPath).decode(CODEC)
return yaml.safe_load(yamlText)
def write_file_bytes(path: str, content: bytes):
try:
os.makedirs(os.path.dirname(path))
except Exception:
pass
with open(path, "wb") as f:
f.write(content)
def read_file_bytes(path: str) -> bytes:
with open(path, "rb") as f:
return f.read()
def main():
if len(sys.argv) < 2:
print(f"Usage: {sys.argv[0]} <react_project_folder>")
sys.exit(1)
project_dir = sys.argv[1]
print("Project dir:", project_dir)
i18n_config = load_config(project_dir)
# Do the important parts here
create_i18n_js(i18n_config, project_dir)
inject_script_url_into_config(i18n_config, project_dir)
if __name__ == "__main__":
main() | template/template-tools/i18n/i18n.py |
# ================== i18n.py =====================
# It localizes website elements.
# Hook type: pre_build (modifies config file)
# Configuration:
# Create a i18n.yaml file in your project root. Look at i18n.yaml and i18n.example.yaml
# to get a feel for the structure.
# Add the correct id to every element (via react-template.yaml)
import json
import os
import sys
import shutil
# External libs
# pip install pyyaml
import yaml
CODEC = "utf-8"
DATA_PATH = "i18n.yaml"
DATA_PLACEHOLDER = "__I18N_JSON__"
JS_OUTPUT_NAME = "i18n.js"
JS_INPUT_PATH = "template-tools/i18n/i18n_temlate.js"
CONFIG_PATH = "react-template.yaml"
CUSTOM_HTML_HEAD_FIELD = "customHtmlHead"
SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
LANGUAGE_CHOOSER_DOM_FIELD = "language_chooser_dom"
def load_config(project_dir: str) -> dict:
# Load the project data file (if it exists)
try:
project_data_path = os.path.join(project_dir, DATA_PATH)
project_data = parse_yaml_file(project_data_path) or {}
except Exception:
project_data = {}
# Check if the project should be merged with the defaults
ignore_defaults = project_data.get("ignore_defaults", False)
if ignore_defaults:
# Just use the project data, ignore the defaults
return project_data
else:
# Load the template data file (defaults)
template_data_path = os.path.join(SCRIPT_DIR, DATA_PATH)
template_data = parse_yaml_file(template_data_path)
# Merge the two data files
merged_data = template_data
if project_data:
# Merge the individual config items
for [key, data] in project_data.items():
if key == "ignore_defaults":
# Already processed
pass
elif key == "languages":
# Overwrite language list
merged_data[key] = data
elif key == "translations":
# Merge translations dict
translations = template_data.get(key, {})
translations.update(data)
template_data[key] = translations
else:
raise Exception(f"Unsupported config key: '{key}'")
text = yaml.safe_dump(merged_data)
write_file_bytes(
"template-tools/debug/i18n.merged.yaml", text.encode(CODEC))
return merged_data
def create_i18n_js(i18n_config: dict, project_dir: str):
translations = i18n_config.get("translations", {})
languages = set()
for translation_dict in translations.values():
languages.update(translation_dict.keys())
js_data = {
"languages": list(sorted(languages)),
"translations": translations,
}
# Inject the data into the file
js_output_path = "public/"+JS_OUTPUT_NAME
inject_data_into_js_file(js_data, JS_INPUT_PATH, js_output_path)
def inject_data_into_js_file(data, js_input_file: str, js_output_file: str):
text = read_file_bytes(js_input_file).decode(CODEC)
# Sorting them forces them in a deterministic order. Same input -> same output
json_string = json.dumps(data, sort_keys=True)
new_text = text.replace(DATA_PLACEHOLDER, json_string)
if new_text == text:
raise Exception("JS input template has no placeholder for the data")
write_file_bytes(js_output_file, new_text.encode(CODEC))
def inject_script_url_into_config(i18n_config: dict, project_dir: str):
yaml_path = os.path.join(project_dir, CONFIG_PATH)
config = parse_yaml_file(yaml_path)
# Inject script tag to load i18n.js
script_tag = f'<script src="%PUBLIC_URL%/{JS_OUTPUT_NAME}"></script>'
custom_html_head = config.get(CUSTOM_HTML_HEAD_FIELD, "")
custom_html_head += script_tag
# Inject dom for language chooser
languages = i18n_config.get("languages", [])
if languages:
lang_select = f'''<select id="page-language-chooser">
{"".join([
f'<option value="{lang_obj["code"]}">{lang_obj["title"]}</option>'
for lang_obj in languages
])
}
</select>'''
config[LANGUAGE_CHOOSER_DOM_FIELD] = lang_select
# Append the css link or language selector
# custom_html_head += "<link rel=stylesheet href=%PUBLIC_URL%/i18n.css>"
# shutil.move("template-tools/i18n/i18n.scss",
# "public/i18n.scss")
shutil.move("template-tools/i18n/languageicon-org.png",
"public/languageicon-org.png")
else:
config[LANGUAGE_CHOOSER_DOM_FIELD] = ""
config[CUSTOM_HTML_HEAD_FIELD] = custom_html_head
text = yaml.safe_dump(config)
write_file_bytes(CONFIG_PATH, text.encode(CODEC))
def parse_yaml_file(yamlPath: str):
yamlText = read_file_bytes(yamlPath).decode(CODEC)
return yaml.safe_load(yamlText)
def write_file_bytes(path: str, content: bytes):
try:
os.makedirs(os.path.dirname(path))
except Exception:
pass
with open(path, "wb") as f:
f.write(content)
def read_file_bytes(path: str) -> bytes:
with open(path, "rb") as f:
return f.read()
def main():
if len(sys.argv) < 2:
print(f"Usage: {sys.argv[0]} <react_project_folder>")
sys.exit(1)
project_dir = sys.argv[1]
print("Project dir:", project_dir)
i18n_config = load_config(project_dir)
# Do the important parts here
create_i18n_js(i18n_config, project_dir)
inject_script_url_into_config(i18n_config, project_dir)
if __name__ == "__main__":
main() | 0.405449 | 0.1526 |
import requests
import os
import urllib
import re
os.chdir("downpic")
path="urls.txt"
"""
<span class="article-nav-prev">上一篇<br><a href="https://www.3sgif.com/47814.html" rel="prev">GIF出处:美女gif出处不看后悔 口技很好!</a></span>
<span class="article-nav-next">下一篇<br><a href="https://www.3sgif.com/47839.html" rel="next">GIF出处:经典gif动态出处 这腿你能玩多久?</a></span>
<div class="article-paging"> <a href="https://www.3sgif.com/47838.html"><span>1</span></a> <a href="https://www.3sgif.com/47838.html/2/"><span>2</span></a> <span>3</span> <a href="https://www.3sgif.com/47838.html/4/"><span>4</span></a> <a href="https://www.3sgif.com/47838.html/5/"><span>5</span></a> <a href="https://www.3sgif.com/47838.html/6/"><span>6</span></a> <a href="https://www.3sgif.com/47838.html/7/"><span>7</span></a></div>
https://www.gifwu.net/wp-content/uploads/2018/06/IPZ-809.gif
"""
"""
print("downloading with requests")
url = "https://ac.qq.com/ComicView/index/id/512063/cid/143"
r = requests.get(url)
with open("pic.png", "wb") as code:
code.write(r.content)
"""
def gethtml(url):
"""
获取网页的源代码,并转为string格式
"""
page = urllib.request.urlopen(url)
html = page.read()
s=str(html,encoding="UTF-8")
return s
def get_urls():
"""
从一个url开始获取urls
"""
print("****down fig****")
with open(path,"w") as us:
urls=["https://www.3sgif.com/47839.html"]
print(urls)
for i in range(49):
try:
s=get_prev_url(urls[i])
urls.append(s)
us.write(s+"\n")
except:
continue
print("end")
def get_prev_url(url):
"""
特定的前向访问
"""
prev_prt=re.compile("上一篇<br><a href=\"https://www.3sgif.com/\d+\.html\" rel=\"prev\">")
#start
html=gethtml(url)
#print(html)
res=re.findall(prev_prt,html)
return res[0][16:-13]
def get_gif_url(url):
"""
通过正则找出gif图的url
"""
gif_ptr=re.compile("<img src=.+\.gif\"")
html=gethtml(url)
res=re.findall(gif_ptr,html)
return res[0][10:]
def down_gif():
"""
下载gif的主要函数
"""
i=25
with open(path,"r") as us:
for j in us.readlines():
url=j[:-1]
num=get_gif_numbers(url)
print(num)
for k in range(num):
try:
gif_url=get_gif_url(url+"/"+str(k+1))
print(gif_url)
down(gif_url,str(i))
except:
continue
i=i+1
def get_gif_numbers(url):
"""
获取一个网页中gif的数量
"""
url_ptr=re.compile("<span>\d+</span>")
html=gethtml(url)
res=re.findall(url_ptr,html)
return len(res)
def down(url,i):
"""
下载文件的函数
"""
r = requests.get(url)
with open(i+".gif", "wb") as code:
code.write(r.content)
if __name__=="__main__":
down_gif() | use_requestes.py | import requests
import os
import urllib
import re
os.chdir("downpic")
path="urls.txt"
"""
<span class="article-nav-prev">上一篇<br><a href="https://www.3sgif.com/47814.html" rel="prev">GIF出处:美女gif出处不看后悔 口技很好!</a></span>
<span class="article-nav-next">下一篇<br><a href="https://www.3sgif.com/47839.html" rel="next">GIF出处:经典gif动态出处 这腿你能玩多久?</a></span>
<div class="article-paging"> <a href="https://www.3sgif.com/47838.html"><span>1</span></a> <a href="https://www.3sgif.com/47838.html/2/"><span>2</span></a> <span>3</span> <a href="https://www.3sgif.com/47838.html/4/"><span>4</span></a> <a href="https://www.3sgif.com/47838.html/5/"><span>5</span></a> <a href="https://www.3sgif.com/47838.html/6/"><span>6</span></a> <a href="https://www.3sgif.com/47838.html/7/"><span>7</span></a></div>
https://www.gifwu.net/wp-content/uploads/2018/06/IPZ-809.gif
"""
"""
print("downloading with requests")
url = "https://ac.qq.com/ComicView/index/id/512063/cid/143"
r = requests.get(url)
with open("pic.png", "wb") as code:
code.write(r.content)
"""
def gethtml(url):
"""
获取网页的源代码,并转为string格式
"""
page = urllib.request.urlopen(url)
html = page.read()
s=str(html,encoding="UTF-8")
return s
def get_urls():
"""
从一个url开始获取urls
"""
print("****down fig****")
with open(path,"w") as us:
urls=["https://www.3sgif.com/47839.html"]
print(urls)
for i in range(49):
try:
s=get_prev_url(urls[i])
urls.append(s)
us.write(s+"\n")
except:
continue
print("end")
def get_prev_url(url):
"""
特定的前向访问
"""
prev_prt=re.compile("上一篇<br><a href=\"https://www.3sgif.com/\d+\.html\" rel=\"prev\">")
#start
html=gethtml(url)
#print(html)
res=re.findall(prev_prt,html)
return res[0][16:-13]
def get_gif_url(url):
"""
通过正则找出gif图的url
"""
gif_ptr=re.compile("<img src=.+\.gif\"")
html=gethtml(url)
res=re.findall(gif_ptr,html)
return res[0][10:]
def down_gif():
"""
下载gif的主要函数
"""
i=25
with open(path,"r") as us:
for j in us.readlines():
url=j[:-1]
num=get_gif_numbers(url)
print(num)
for k in range(num):
try:
gif_url=get_gif_url(url+"/"+str(k+1))
print(gif_url)
down(gif_url,str(i))
except:
continue
i=i+1
def get_gif_numbers(url):
"""
获取一个网页中gif的数量
"""
url_ptr=re.compile("<span>\d+</span>")
html=gethtml(url)
res=re.findall(url_ptr,html)
return len(res)
def down(url,i):
"""
下载文件的函数
"""
r = requests.get(url)
with open(i+".gif", "wb") as code:
code.write(r.content)
if __name__=="__main__":
down_gif() | 0.045384 | 0.208965 |
import os
import pprint
import subprocess
import sys
from optparse import make_option
from urllib import quote_plus
from urlparse import urljoin
import dateutil.parser
import requests
from django.conf import settings
from django.core.management import BaseCommand, CommandError
from six import python_2_unicode_compatible
ORGANIZATION_NAME = 'org'
PROJECT_NAME = 'project'
class Command(BaseCommand):
help = 'CircleCI Command Line Interface'
option_list = BaseCommand.option_list + (
make_option('--ssh', action='store_true', default=False),
make_option('--cancel', action='store_true', default=False),
make_option('--artifacts', action='store_true', default=False),
make_option('--me', action='store_true', default=False),
make_option('--cancel-redundant-builds', action='store_true'),
make_option('--start'),
)
def __init__(self):
super(Command, self).__init__()
token = getattr(settings, 'CIRCLECI_TOKEN', None) or os.environ.get('CIRCLECI_TOKEN')
if not token:
raise CommandError('You need to specify a circleci access token either in your settings or '
'in your environment')
self.cci = CircleCi(token)
def handle(self, build_id=None, *args, **options):
# Some commands don't require a build
if options['me']:
pprint.pprint(self.cci.me)
return 0
elif options['cancel_redundant_builds']:
self.cancel_redundant_builds()
return 0
elif options['start']:
self.start_build(options['start'])
return 0
# From here on, we need a build number to operate
if not build_id:
error('Please specify a build number.')
build = self.cci.build(build_id)
if options['ssh']:
build_dict = build.data
if not build_dict['ssh_enabled']:
error('This build does not have SSH enabled.')
node = build_dict['node'][0]
ip_addr = node['public_ip_addr']
port = node['port']
cmd = ['ssh', 'ubuntu@{}'.format(ip_addr),
'-p', str(port),
'-o', 'UserKnownHostsFile /dev/null',
'-o', 'StrictHostKeyChecking=no']
print('Running: {}'.format(cmd))
p = subprocess.Popen(cmd, stdout=sys.stdout, stdin=sys.stdin, stderr=sys.stderr)
p.communicate()
elif options['cancel']:
build.cancel()
elif options['artifacts']:
artifacts = build.artifacts
for a in artifacts:
print(a)
print('{} artifact(s).'.format(len(artifacts)))
else:
pprint.pprint(self.cci.build(build_id))
def cancel_redundant_builds(self):
active_builds = {}
for build in self.cci.builds:
if not build.active:
continue
if 'branch' not in build.data:
print('Got weird build #{} without a branch...?'.format(build.build_num))
continue
if not build.queued_at:
print('Looks like build #{} was not queued...?'.format(build.build_num))
pprint.pprint(build)
continue
branch = build.data['branch']
active_builds.setdefault(branch, []).append((build.queued_at, build))
for branch, builds in active_builds.iteritems():
if len(builds) > 1:
builds = sorted(builds)
for queued_at, build in builds[:-1]:
build.cancel()
def start_build(self, branch):
self.cci.post_project('tree/{}'.format(quote_plus(branch)))
class CircleCi(object):
BASE_URL = 'https://circleci.com/api/v1/'
def __init__(self, access_token):
self.token = access_token
@property
def project_base_path(self):
return 'project/{}/{}/'.format(ORGANIZATION_NAME, PROJECT_NAME)
def request(self, method, path, **kwargs):
kwargs.setdefault('params', {}).update(**{'circle-token': self.token})
kwargs.setdefault('headers', {}).update(**{'Accept': 'application/json'})
url = urljoin(self.BASE_URL, path)
print('\x1b[1m{} {}\x1b[0m'.format(method, url))
r = requests.request(method, url, **kwargs)
r.raise_for_status()
return r
def get(self, *args, **kwargs):
r = self.request('GET', *args, **kwargs)
return r.json()
def get_project(self, path='', *args, **kwargs):
path = urljoin(self.project_base_path, path)
return self.get(path, *args, **kwargs)
def post(self, *args, **kwargs):
return self.request('POST', *args, **kwargs)
def post_project(self, path, *args, **kwargs):
path = urljoin(self.project_base_path, path)
return self.post(path, *args, **kwargs)
@property
def builds(self):
builds_data = self.get_project()
return [CircleCiBuild(self, data=build) for build in builds_data]
@property
def me(self):
return self.get('me')
def build(self, build_num):
return CircleCiBuild(self, build_num)
@python_2_unicode_compatible
class CircleCiBuild(object):
def __init__(self, api, build_num=None, data=None):
self.api = api
self.build_num = int(build_num or data['build_num'])
self._data = data or None
def __str__(self):
commits = self.data.get('all_commit_details')
subject = commits[-1]['subject'] if commits and len(commits) > 0 else '(No subject)'
return u'#{} {} {} {} {}'.format(self.build_num, self.queued_at, self.data['status'], self.data['branch'], subject)
def __repr__(self):
self_str = unicode(self).encode('ascii', 'backslashreplace')
return '<{}: {}>'.format(self.__class__.__name__, self_str)
def cancel(self):
print('Canceling build: {}'.format(self))
return self.api.post_project('{}/cancel'.format(self.build_num))
@property
def queued_at(self):
queued_at = self.data.get('usage_queued_at')
return queued_at and dateutil.parser.parse(queued_at)
@property
def data(self):
if self._data is None:
self._data = self.api.get_project('{}'.format(self.build_num))
return self._data
@property
def artifacts(self):
artifacts = self.api.get_project('{}/artifacts'.format(self.build_num))
return [a['url'] for a in artifacts]
@property
def status(self):
return self.data['status']
@property
def active(self):
if self.status in ['success', 'timedout', 'fixed', 'canceled', 'failed', 'not_run', 'retried', 'no_tests']:
return False
if self.status in ['not_running', 'scheduled', 'running', 'queued']:
return True
raise CommandError('Unknown CircleCI status: {!r}'.format(self.status))
def error(s, *args, **kwargs):
print(s.format(*args, **kwargs))
sys.exit(1) | hard-gists/2fe1c16a7cc27ef01c1f/snippet.py | import os
import pprint
import subprocess
import sys
from optparse import make_option
from urllib import quote_plus
from urlparse import urljoin
import dateutil.parser
import requests
from django.conf import settings
from django.core.management import BaseCommand, CommandError
from six import python_2_unicode_compatible
ORGANIZATION_NAME = 'org'
PROJECT_NAME = 'project'
class Command(BaseCommand):
help = 'CircleCI Command Line Interface'
option_list = BaseCommand.option_list + (
make_option('--ssh', action='store_true', default=False),
make_option('--cancel', action='store_true', default=False),
make_option('--artifacts', action='store_true', default=False),
make_option('--me', action='store_true', default=False),
make_option('--cancel-redundant-builds', action='store_true'),
make_option('--start'),
)
def __init__(self):
super(Command, self).__init__()
token = getattr(settings, 'CIRCLECI_TOKEN', None) or os.environ.get('CIRCLECI_TOKEN')
if not token:
raise CommandError('You need to specify a circleci access token either in your settings or '
'in your environment')
self.cci = CircleCi(token)
def handle(self, build_id=None, *args, **options):
# Some commands don't require a build
if options['me']:
pprint.pprint(self.cci.me)
return 0
elif options['cancel_redundant_builds']:
self.cancel_redundant_builds()
return 0
elif options['start']:
self.start_build(options['start'])
return 0
# From here on, we need a build number to operate
if not build_id:
error('Please specify a build number.')
build = self.cci.build(build_id)
if options['ssh']:
build_dict = build.data
if not build_dict['ssh_enabled']:
error('This build does not have SSH enabled.')
node = build_dict['node'][0]
ip_addr = node['public_ip_addr']
port = node['port']
cmd = ['ssh', 'ubuntu@{}'.format(ip_addr),
'-p', str(port),
'-o', 'UserKnownHostsFile /dev/null',
'-o', 'StrictHostKeyChecking=no']
print('Running: {}'.format(cmd))
p = subprocess.Popen(cmd, stdout=sys.stdout, stdin=sys.stdin, stderr=sys.stderr)
p.communicate()
elif options['cancel']:
build.cancel()
elif options['artifacts']:
artifacts = build.artifacts
for a in artifacts:
print(a)
print('{} artifact(s).'.format(len(artifacts)))
else:
pprint.pprint(self.cci.build(build_id))
def cancel_redundant_builds(self):
active_builds = {}
for build in self.cci.builds:
if not build.active:
continue
if 'branch' not in build.data:
print('Got weird build #{} without a branch...?'.format(build.build_num))
continue
if not build.queued_at:
print('Looks like build #{} was not queued...?'.format(build.build_num))
pprint.pprint(build)
continue
branch = build.data['branch']
active_builds.setdefault(branch, []).append((build.queued_at, build))
for branch, builds in active_builds.iteritems():
if len(builds) > 1:
builds = sorted(builds)
for queued_at, build in builds[:-1]:
build.cancel()
def start_build(self, branch):
self.cci.post_project('tree/{}'.format(quote_plus(branch)))
class CircleCi(object):
BASE_URL = 'https://circleci.com/api/v1/'
def __init__(self, access_token):
self.token = access_token
@property
def project_base_path(self):
return 'project/{}/{}/'.format(ORGANIZATION_NAME, PROJECT_NAME)
def request(self, method, path, **kwargs):
kwargs.setdefault('params', {}).update(**{'circle-token': self.token})
kwargs.setdefault('headers', {}).update(**{'Accept': 'application/json'})
url = urljoin(self.BASE_URL, path)
print('\x1b[1m{} {}\x1b[0m'.format(method, url))
r = requests.request(method, url, **kwargs)
r.raise_for_status()
return r
def get(self, *args, **kwargs):
r = self.request('GET', *args, **kwargs)
return r.json()
def get_project(self, path='', *args, **kwargs):
path = urljoin(self.project_base_path, path)
return self.get(path, *args, **kwargs)
def post(self, *args, **kwargs):
return self.request('POST', *args, **kwargs)
def post_project(self, path, *args, **kwargs):
path = urljoin(self.project_base_path, path)
return self.post(path, *args, **kwargs)
@property
def builds(self):
builds_data = self.get_project()
return [CircleCiBuild(self, data=build) for build in builds_data]
@property
def me(self):
return self.get('me')
def build(self, build_num):
return CircleCiBuild(self, build_num)
@python_2_unicode_compatible
class CircleCiBuild(object):
def __init__(self, api, build_num=None, data=None):
self.api = api
self.build_num = int(build_num or data['build_num'])
self._data = data or None
def __str__(self):
commits = self.data.get('all_commit_details')
subject = commits[-1]['subject'] if commits and len(commits) > 0 else '(No subject)'
return u'#{} {} {} {} {}'.format(self.build_num, self.queued_at, self.data['status'], self.data['branch'], subject)
def __repr__(self):
self_str = unicode(self).encode('ascii', 'backslashreplace')
return '<{}: {}>'.format(self.__class__.__name__, self_str)
def cancel(self):
print('Canceling build: {}'.format(self))
return self.api.post_project('{}/cancel'.format(self.build_num))
@property
def queued_at(self):
queued_at = self.data.get('usage_queued_at')
return queued_at and dateutil.parser.parse(queued_at)
@property
def data(self):
if self._data is None:
self._data = self.api.get_project('{}'.format(self.build_num))
return self._data
@property
def artifacts(self):
artifacts = self.api.get_project('{}/artifacts'.format(self.build_num))
return [a['url'] for a in artifacts]
@property
def status(self):
return self.data['status']
@property
def active(self):
if self.status in ['success', 'timedout', 'fixed', 'canceled', 'failed', 'not_run', 'retried', 'no_tests']:
return False
if self.status in ['not_running', 'scheduled', 'running', 'queued']:
return True
raise CommandError('Unknown CircleCI status: {!r}'.format(self.status))
def error(s, *args, **kwargs):
print(s.format(*args, **kwargs))
sys.exit(1) | 0.439026 | 0.082328 |
#All the changes from the original code were made by Tom Sander, but added by JC Layoun in the repos.
## convert the text/attention list to latex code, which will further generates the text heatmap based on attention weights.
import numpy as np
latex_special_token = ["!@#$%^&*()"]
def generate(text_list, attention_list, latex_file, color='red', label=0, prediction=0, rescale_value = False, test=0):
#print('label :', label, 'prediction :', prediction)
assert(len(text_list) == len(attention_list))
if rescale_value:
attention_list = rescale(attention_list)
word_num = len(text_list)
text_list = clean_word(text_list)
with open(latex_file,'w') as f:
f.write(r'''\documentclass[varwidth]{standalone}
\special{papersize=210mm,297mm}
\usepackage{color}
\usepackage{tcolorbox}
\usepackage{CJK}
\usepackage{adjustbox}
\tcbset{width=0.9\textwidth,boxrule=0pt,colback=red,arc=0pt,auto outer arc,left=0pt,right=0pt,boxsep=5pt}
\begin{document}
\begin{CJK*}{UTF8}{gbsn}'''+'\n')
string = r'''{\setlength{\fboxsep}{0pt}\colorbox{white!0}{\parbox{0.9\textwidth}{'''+"\n"
string+="label : {}, prediction {}".format(label,prediction)+"\\newline \\newline"+"\n"
for idx in range(word_num):
string += "\\colorbox{%s!%s}{"%(color, attention_list[idx])+"\\strut " + text_list[idx]+"} "
string += "\n}}}"
f.write(string+'\n')
f.write(r'''\end{CJK*}
\end{document}''')
def rescale(input_list):
the_array= np.asarray(input_list)
the_max= np.max(the_array)
the_min = np.min(the_array)
rescale = (the_array - the_min)/(the_max-the_min)*100
return rescale.tolist()
def clean_word(word_list):
new_word_list = []
for word in word_list:
for latex_sensitive in ["\\", "%", "&", "^", "#", "_", "{", "}"]:
if latex_sensitive in word:
word = word.replace(latex_sensitive, '\\'+latex_sensitive)
new_word_list.append(word)
return new_word_list
if __name__ == '__main__':
## This is a demo:
sent = '''the USS Ronald Reagan - an aircraft carrier docked in Japan - during his tour of the region, vowing to "defeat any attack and meet any use of conventional or nuclear weapons with an overwhelming and effective American response".
North Korea and the US have ratcheted up tensions in recent weeks and the movement of the strike group had raised the question of a pre-emptive strike by the US.
On Wednesday, Mr Pence described the country as the "most dangerous and urgent threat to peace and security" in the Asia-Pacific.'''
sent = '''我 回忆 起 我 曾经 在 大学 年代 , 我们 经常 喜欢 玩 “ Hawaii guitar ” 。 说起 Guitar , 我 想起 了 西游记 里 的 琵琶精 。
今年 下半年 , 中 美 合拍 的 西游记 即将 正式 开机 , 我 继续 扮演 美猴王 孙悟空 , 我 会 用 美猴王 艺术 形象 努力 创造 一 个 正能量 的 形象 , 文 体 两 开花 , 弘扬 中华 文化 , 希望 大家 能 多多 关注 。'''
words = sent.split()
word_num = len(words)
attention = [(x+1.)/word_num*100 for x in range(word_num)]
import random
random.seed(42)
random.shuffle(attention)
color = 'red'
generate(words, attention, "sample.tex", color) | plot_annotation_matrix.py |
#All the changes from the original code were made by Tom Sander, but added by JC Layoun in the repos.
## convert the text/attention list to latex code, which will further generates the text heatmap based on attention weights.
import numpy as np
latex_special_token = ["!@#$%^&*()"]
def generate(text_list, attention_list, latex_file, color='red', label=0, prediction=0, rescale_value = False, test=0):
#print('label :', label, 'prediction :', prediction)
assert(len(text_list) == len(attention_list))
if rescale_value:
attention_list = rescale(attention_list)
word_num = len(text_list)
text_list = clean_word(text_list)
with open(latex_file,'w') as f:
f.write(r'''\documentclass[varwidth]{standalone}
\special{papersize=210mm,297mm}
\usepackage{color}
\usepackage{tcolorbox}
\usepackage{CJK}
\usepackage{adjustbox}
\tcbset{width=0.9\textwidth,boxrule=0pt,colback=red,arc=0pt,auto outer arc,left=0pt,right=0pt,boxsep=5pt}
\begin{document}
\begin{CJK*}{UTF8}{gbsn}'''+'\n')
string = r'''{\setlength{\fboxsep}{0pt}\colorbox{white!0}{\parbox{0.9\textwidth}{'''+"\n"
string+="label : {}, prediction {}".format(label,prediction)+"\\newline \\newline"+"\n"
for idx in range(word_num):
string += "\\colorbox{%s!%s}{"%(color, attention_list[idx])+"\\strut " + text_list[idx]+"} "
string += "\n}}}"
f.write(string+'\n')
f.write(r'''\end{CJK*}
\end{document}''')
def rescale(input_list):
the_array= np.asarray(input_list)
the_max= np.max(the_array)
the_min = np.min(the_array)
rescale = (the_array - the_min)/(the_max-the_min)*100
return rescale.tolist()
def clean_word(word_list):
new_word_list = []
for word in word_list:
for latex_sensitive in ["\\", "%", "&", "^", "#", "_", "{", "}"]:
if latex_sensitive in word:
word = word.replace(latex_sensitive, '\\'+latex_sensitive)
new_word_list.append(word)
return new_word_list
if __name__ == '__main__':
## This is a demo:
sent = '''the USS Ronald Reagan - an aircraft carrier docked in Japan - during his tour of the region, vowing to "defeat any attack and meet any use of conventional or nuclear weapons with an overwhelming and effective American response".
North Korea and the US have ratcheted up tensions in recent weeks and the movement of the strike group had raised the question of a pre-emptive strike by the US.
On Wednesday, Mr Pence described the country as the "most dangerous and urgent threat to peace and security" in the Asia-Pacific.'''
sent = '''我 回忆 起 我 曾经 在 大学 年代 , 我们 经常 喜欢 玩 “ Hawaii guitar ” 。 说起 Guitar , 我 想起 了 西游记 里 的 琵琶精 。
今年 下半年 , 中 美 合拍 的 西游记 即将 正式 开机 , 我 继续 扮演 美猴王 孙悟空 , 我 会 用 美猴王 艺术 形象 努力 创造 一 个 正能量 的 形象 , 文 体 两 开花 , 弘扬 中华 文化 , 希望 大家 能 多多 关注 。'''
words = sent.split()
word_num = len(words)
attention = [(x+1.)/word_num*100 for x in range(word_num)]
import random
random.seed(42)
random.shuffle(attention)
color = 'red'
generate(words, attention, "sample.tex", color) | 0.194904 | 0.249945 |
from http import HTTPStatus
from flask_login import current_user
from flask_restplus import Resource, reqparse, abort
from app.api.models import ProfilePaginationModel
from app.api.namespaces import profiles
from database.models import User, FavoriteUser, Pagination
@profiles.route('')
class ProfileList(Resource):
profile_filter_parser = reqparse.RequestParser()
profile_filter_parser.add_argument('q', location='args', type=str, help="Profile search keyword")
profile_filter_parser.add_argument('location', type=str, location='args', help="Search location", **dict(
choices=['all', 'favorites'], default='all',
))
profile_filter_parser.add_argument('page', location='args', type=int, default=1, help="Result page number")
@profiles.expect(profile_filter_parser)
@profiles.marshal_with(ProfilePaginationModel)
def get(self):
"""
Filter profiles
* User can view **their favorite** profiles
* User can view **all** profiles
* View with filtration and pagination
"""
args = self.profile_filter_parser.parse_args()
items_per_page = 20
page_number = args['page']
if page_number < 1:
return abort(HTTPStatus.BAD_REQUEST, message="'page' must be > 0")
if args['location'] == 'all':
items_query = User.query
else:
if current_user.is_anonymous:
return Pagination(items_per_page=items_per_page, items=[])
items_query = User.query.join(User.favorite_by_backref).filter(
FavoriteUser.user_id == current_user.id
)
if args['q'] is not None:
items_query = items_query.filter(User.fullname.ilike(f"%{args['q']}%"))
total_items = items_query.count()
items_query = items_query.offset(items_per_page * (page_number - 1)).limit(items_per_page)
return Pagination(
page=page_number,
total_items=total_items,
items_per_page=items_per_page,
items=items_query.all()
) | src/backend/app/api/public/profiles/profiles.py | from http import HTTPStatus
from flask_login import current_user
from flask_restplus import Resource, reqparse, abort
from app.api.models import ProfilePaginationModel
from app.api.namespaces import profiles
from database.models import User, FavoriteUser, Pagination
@profiles.route('')
class ProfileList(Resource):
profile_filter_parser = reqparse.RequestParser()
profile_filter_parser.add_argument('q', location='args', type=str, help="Profile search keyword")
profile_filter_parser.add_argument('location', type=str, location='args', help="Search location", **dict(
choices=['all', 'favorites'], default='all',
))
profile_filter_parser.add_argument('page', location='args', type=int, default=1, help="Result page number")
@profiles.expect(profile_filter_parser)
@profiles.marshal_with(ProfilePaginationModel)
def get(self):
"""
Filter profiles
* User can view **their favorite** profiles
* User can view **all** profiles
* View with filtration and pagination
"""
args = self.profile_filter_parser.parse_args()
items_per_page = 20
page_number = args['page']
if page_number < 1:
return abort(HTTPStatus.BAD_REQUEST, message="'page' must be > 0")
if args['location'] == 'all':
items_query = User.query
else:
if current_user.is_anonymous:
return Pagination(items_per_page=items_per_page, items=[])
items_query = User.query.join(User.favorite_by_backref).filter(
FavoriteUser.user_id == current_user.id
)
if args['q'] is not None:
items_query = items_query.filter(User.fullname.ilike(f"%{args['q']}%"))
total_items = items_query.count()
items_query = items_query.offset(items_per_page * (page_number - 1)).limit(items_per_page)
return Pagination(
page=page_number,
total_items=total_items,
items_per_page=items_per_page,
items=items_query.all()
) | 0.638835 | 0.06256 |
from multiprocessing import Process
import sys
import getpass
import re
import mechanicalsoup
import os
import pandas as pd
import auto_iMutant2
import auto_ponp2
import auto_muPro
import auto_mutPred2
import auto_phdSNP
import auto_mutAssessor
import auto_provean
import auto_panther
import auto_polyphen2
import auto_snpsGO
import auto_metaSNP
import auto_duet
import auto_dynamut2
import auto_maestro
import auto_foldx
def runAll1(fastaF,mutationF,pdbF,uniprotID,password,firstChain):
auto_iMutant2.runIMutant(fastaF,mutationF)
auto_ponp2.runPonP2(fastaF,mutationF,password)
auto_muPro.runMuPro(fastaF,mutationF)
auto_metaSNP.runMetaSNP(fastaF,mutationF)
auto_foldx.runFoldx(pdbF,mutationF,firstChain)
def runAll2(fastaF,mutationF,pdbF,uniprotID,password,firstChain):
auto_provean.runProvean(uniprotID,mutationF)
auto_panther.runPanther(fastaF,mutationF)
auto_snpsGO.runSnpsGO(fastaF,mutationF)
auto_phdSNP.runPhdSNP(fastaF,mutationF)
auto_dynamut2.runDynamut(pdbF,mutationF,firstChain)
def runAll3(fastaF,mutationF,pdbF,uniprotID,password,firstChain):
auto_mutAssessor.runMutAssessor(fastaF,mutationF)
auto_mutPred2.runMutPred(fastaF,mutationF)
auto_maestro.runMaestro(pdbF,mutationF,firstChain)
auto_polyphen2.runPolyphen2(uniprotID,mutationF)
auto_duet.runDuet(pdbF,mutationF,firstChain)
"""def runAll(fastaF,mutationF,pdbF,uniprotID,password,firstChain):
auto_iMutant2.runIMutant(fastaF,mutationF)
auto_ponp2.runPonP2(fastaF,mutationF,password)
auto_muPro.runMuPro(fastaF,mutationF)
auto_metaSNP.runMetaSNP(fastaF,mutationF)
auto_foldx.runFoldx(pdbF,mutationF,firstChain)
auto_provean.runProvean(uniprotID,mutationF)
auto_panther.runPanther(fastaF,mutationF)
auto_snpsGO.runSnpsGO(fastaF,mutationF)
auto_phdSNP.runPhdSNP(fastaF,mutationF)
auto_dynamut2.runDynamut(pdbF,mutationF,firstChain)
auto_mutAssessor.runMutAssessor(fastaF,mutationF)
auto_mutPred2.runMutPred(fastaF,mutationF)
auto_maestro.runMaestro(pdbF,mutationF,firstChain)
auto_polyphen2.runPolyphen2(uniprotID,mutationF)
auto_duet.runDuet(pdbF,mutationF,firstChain)"""
fastaFile = sys.argv[1]
mutationFile = sys.argv[2]
pdbFile = sys.argv[3]
uniprot = sys.argv[4]
passwd = getpass.getpass(prompt='Enter the system password: ')
#Create directories for output files and logfiles
if os.path.exists("outFiles"):
pass
else:
os.system("mkdir outFiles")
if os.path.exists("logFiles"):
pass
else:
os.system("mkdir logFiles")
#Download the FASTA from UNIPROT
"""br = mechanicalsoup.StatefulBrowser()
br.open("https://www.uniprot.org/uniprot/"+uniprot+".fasta")
if br.page:
if "this page was not found" in br.page.text:
raise Exception("Provide a valid UNIPROT ID")
else:
if os.path.exists(uniprot+".fasta"):
pass
else:
os.system("wget https://www.uniprot.org/uniprot/"+uniprot+".fasta")
fastaFile = uniprot+".fasta"""
#Check FASTA file
readFasta = open(fastaFile,"r")
head = readFasta.readline()
if head.startswith(">"):
pass
else:
sys.exit("The sequence file is not in FASTA format. Check the file before submission.")
#If there is any invalid mutation, the lines containing those invalid mutations will be removed and only valid ones will be used for prediction
with open(mutationFile,"r") as mutFile:
muts = mutFile.readlines()
mutFile.close()
muts = [x.strip() for x in muts]
newRes = [x[-1] for x in muts]
oldRes = [x[0] for x in muts]
pos = []
for x in muts:
position = ''.join(re.findall('\d',x))
pos.append(int(position))
newMuts = []
for i in range(len(pos)):
muts = [x.upper() for x in muts]
if newRes[i] not in "BJOUXZ" and oldRes[i] not in "BJOUXZ":
newMuts.append(muts[i])
pos = []
for x in newMuts:
position = ''.join(re.findall('\d',x))
pos.append(int(position))
df=pd.DataFrame({"pos":pos,"Mut":newMuts})
df1 = df.sort_values(by=['pos'])
head=["Mut"]
df1.to_csv(mutationFile,index=False,header=False,columns=head)
#To get the first chain in PDB file
pdb=open(pdbFile,"r")
pdbline=pdb.readlines()
for lines in pdbline:
if re.match("^ATOM",lines):
chain = re.split('\s+',lines)[4]
break
#Start the functions in 3 different processors
myProcess1=Process(target=runAll1,args=(fastaFile,mutationFile,pdbFile,uniprot,passwd,chain))
myProcess1.start()
myProcess2=Process(target=runAll2,args=(fastaFile,mutationFile,pdbFile,uniprot,passwd,chain))
myProcess2.start()
myProcess3=Process(target=runAll3,args=(fastaFile,mutationFile,pdbFile,uniprot,passwd,chain))
myProcess3.start()
myProcess1.join()
myProcess2.join()
myProcess3.join()
#runAll(fastaFile,mutationFile,pdbFile,uniprot,passwd,chain)
#Stop the daemon prcess and remove mails and files from PON-P2
comd = "sudo service cron stop"
os.system('echo %s | sudo -S %s' % (passwd, comd))
os.system("rm SQ*")
os.system("bash -c 'mailx <<< d*'") | automate.py |
from multiprocessing import Process
import sys
import getpass
import re
import mechanicalsoup
import os
import pandas as pd
import auto_iMutant2
import auto_ponp2
import auto_muPro
import auto_mutPred2
import auto_phdSNP
import auto_mutAssessor
import auto_provean
import auto_panther
import auto_polyphen2
import auto_snpsGO
import auto_metaSNP
import auto_duet
import auto_dynamut2
import auto_maestro
import auto_foldx
def runAll1(fastaF,mutationF,pdbF,uniprotID,password,firstChain):
auto_iMutant2.runIMutant(fastaF,mutationF)
auto_ponp2.runPonP2(fastaF,mutationF,password)
auto_muPro.runMuPro(fastaF,mutationF)
auto_metaSNP.runMetaSNP(fastaF,mutationF)
auto_foldx.runFoldx(pdbF,mutationF,firstChain)
def runAll2(fastaF,mutationF,pdbF,uniprotID,password,firstChain):
auto_provean.runProvean(uniprotID,mutationF)
auto_panther.runPanther(fastaF,mutationF)
auto_snpsGO.runSnpsGO(fastaF,mutationF)
auto_phdSNP.runPhdSNP(fastaF,mutationF)
auto_dynamut2.runDynamut(pdbF,mutationF,firstChain)
def runAll3(fastaF,mutationF,pdbF,uniprotID,password,firstChain):
auto_mutAssessor.runMutAssessor(fastaF,mutationF)
auto_mutPred2.runMutPred(fastaF,mutationF)
auto_maestro.runMaestro(pdbF,mutationF,firstChain)
auto_polyphen2.runPolyphen2(uniprotID,mutationF)
auto_duet.runDuet(pdbF,mutationF,firstChain)
"""def runAll(fastaF,mutationF,pdbF,uniprotID,password,firstChain):
auto_iMutant2.runIMutant(fastaF,mutationF)
auto_ponp2.runPonP2(fastaF,mutationF,password)
auto_muPro.runMuPro(fastaF,mutationF)
auto_metaSNP.runMetaSNP(fastaF,mutationF)
auto_foldx.runFoldx(pdbF,mutationF,firstChain)
auto_provean.runProvean(uniprotID,mutationF)
auto_panther.runPanther(fastaF,mutationF)
auto_snpsGO.runSnpsGO(fastaF,mutationF)
auto_phdSNP.runPhdSNP(fastaF,mutationF)
auto_dynamut2.runDynamut(pdbF,mutationF,firstChain)
auto_mutAssessor.runMutAssessor(fastaF,mutationF)
auto_mutPred2.runMutPred(fastaF,mutationF)
auto_maestro.runMaestro(pdbF,mutationF,firstChain)
auto_polyphen2.runPolyphen2(uniprotID,mutationF)
auto_duet.runDuet(pdbF,mutationF,firstChain)"""
fastaFile = sys.argv[1]
mutationFile = sys.argv[2]
pdbFile = sys.argv[3]
uniprot = sys.argv[4]
passwd = getpass.getpass(prompt='Enter the system password: ')
#Create directories for output files and logfiles
if os.path.exists("outFiles"):
pass
else:
os.system("mkdir outFiles")
if os.path.exists("logFiles"):
pass
else:
os.system("mkdir logFiles")
#Download the FASTA from UNIPROT
"""br = mechanicalsoup.StatefulBrowser()
br.open("https://www.uniprot.org/uniprot/"+uniprot+".fasta")
if br.page:
if "this page was not found" in br.page.text:
raise Exception("Provide a valid UNIPROT ID")
else:
if os.path.exists(uniprot+".fasta"):
pass
else:
os.system("wget https://www.uniprot.org/uniprot/"+uniprot+".fasta")
fastaFile = uniprot+".fasta"""
#Check FASTA file
readFasta = open(fastaFile,"r")
head = readFasta.readline()
if head.startswith(">"):
pass
else:
sys.exit("The sequence file is not in FASTA format. Check the file before submission.")
#If there is any invalid mutation, the lines containing those invalid mutations will be removed and only valid ones will be used for prediction
with open(mutationFile,"r") as mutFile:
muts = mutFile.readlines()
mutFile.close()
muts = [x.strip() for x in muts]
newRes = [x[-1] for x in muts]
oldRes = [x[0] for x in muts]
pos = []
for x in muts:
position = ''.join(re.findall('\d',x))
pos.append(int(position))
newMuts = []
for i in range(len(pos)):
muts = [x.upper() for x in muts]
if newRes[i] not in "BJOUXZ" and oldRes[i] not in "BJOUXZ":
newMuts.append(muts[i])
pos = []
for x in newMuts:
position = ''.join(re.findall('\d',x))
pos.append(int(position))
df=pd.DataFrame({"pos":pos,"Mut":newMuts})
df1 = df.sort_values(by=['pos'])
head=["Mut"]
df1.to_csv(mutationFile,index=False,header=False,columns=head)
#To get the first chain in PDB file
pdb=open(pdbFile,"r")
pdbline=pdb.readlines()
for lines in pdbline:
if re.match("^ATOM",lines):
chain = re.split('\s+',lines)[4]
break
#Start the functions in 3 different processors
myProcess1=Process(target=runAll1,args=(fastaFile,mutationFile,pdbFile,uniprot,passwd,chain))
myProcess1.start()
myProcess2=Process(target=runAll2,args=(fastaFile,mutationFile,pdbFile,uniprot,passwd,chain))
myProcess2.start()
myProcess3=Process(target=runAll3,args=(fastaFile,mutationFile,pdbFile,uniprot,passwd,chain))
myProcess3.start()
myProcess1.join()
myProcess2.join()
myProcess3.join()
#runAll(fastaFile,mutationFile,pdbFile,uniprot,passwd,chain)
#Stop the daemon prcess and remove mails and files from PON-P2
comd = "sudo service cron stop"
os.system('echo %s | sudo -S %s' % (passwd, comd))
os.system("rm SQ*")
os.system("bash -c 'mailx <<< d*'") | 0.121295 | 0.147801 |
from unittest.mock import MagicMock
from vdk.api.plugin.plugin_registry import IPluginRegistry
from vdk.internal.builtin_plugins import builtin_hook_impl
from vdk.internal.core.config import ConfigurationBuilder
from vdk.internal.core.context import CoreContext
from vdk.internal.core.statestore import CommonStoreKeys
from vdk.internal.core.statestore import StateStore
class TestLocalIdSet:
@classmethod
def setup_method(cls):
cls.configuration = ConfigurationBuilder().build()
cls.plugin_registry = MagicMock(spec=IPluginRegistry)
cls.state = StateStore()
cls.context = CoreContext(cls.plugin_registry, cls.configuration, cls.state)
cls.initializer = builtin_hook_impl.RuntimeStateInitializePlugin()
cls.initializer.vdk_initialize(cls.context)
def test_auto_generated_execution_id(self):
assert self.context.state.get(CommonStoreKeys.EXECUTION_ID)
def test_auto_generated_attempt_id(self):
assert self.context.state.get(CommonStoreKeys.ATTEMPT_ID)
def test_auto_generated_op_id(self):
assert self.context.state.get(CommonStoreKeys.OP_ID) == self.context.state.get(
CommonStoreKeys.EXECUTION_ID
)
def test_execution_id_len(self):
# job name is uuid 36 chars + - + timestamp 10 chars = 47
assert len(self.context.state.get(CommonStoreKeys.EXECUTION_ID)) == 47
def test_op_id_len(self):
# same as execution_id
assert len(self.context.state.get(CommonStoreKeys.OP_ID)) == 47
def test_attempt_id_len(self):
# execution id len + - + 5 chars = 53
assert len(self.context.state.get(CommonStoreKeys.ATTEMPT_ID)) == 53
class TestExternalIdSet:
@classmethod
def setup_method(cls):
cls.configuration = (
ConfigurationBuilder()
.add("ATTEMPT_ID", "mzhivkov-test-job-1234567890-akmvy")
.build()
)
cls.plugin_registry = MagicMock(spec=IPluginRegistry)
cls.state = StateStore()
cls.context = CoreContext(cls.plugin_registry, cls.configuration, cls.state)
cls.initializer = builtin_hook_impl.RuntimeStateInitializePlugin()
cls.initializer.vdk_initialize(cls.context)
def test_execution_id(self):
assert (
self.context.state.get(CommonStoreKeys.EXECUTION_ID)
== "mzhivkov-test-job-1234567890"
)
def test_op_id(self):
assert (
self.context.state.get(CommonStoreKeys.OP_ID)
== "mzhivkov-test-job-1234567890"
)
def test_attempt_id(self):
assert (
self.context.state.get(CommonStoreKeys.ATTEMPT_ID)
== "mzhivkov-test-job-1234567890-akmvy"
)
class TestExecutionIdSet:
@classmethod
def setup_method(cls):
cls.configuration = (
ConfigurationBuilder()
.add("EXECUTION_ID", "mzhivkov-test-job-1234567890")
.build()
)
cls.plugin_registry = MagicMock(spec=IPluginRegistry)
cls.state = StateStore()
cls.context = CoreContext(cls.plugin_registry, cls.configuration, cls.state)
cls.initializer = builtin_hook_impl.RuntimeStateInitializePlugin()
cls.initializer.vdk_initialize(cls.context)
def test_execution_id_set(self):
assert (
self.context.state.get(CommonStoreKeys.EXECUTION_ID)
== "mzhivkov-test-job-1234567890"
)
def test_attempt_id(self):
assert self.context.state.get(CommonStoreKeys.ATTEMPT_ID)
def test_op_id(self):
assert self.context.state.get(CommonStoreKeys.OP_ID) == self.context.state.get(
CommonStoreKeys.EXECUTION_ID
)
def test_attempt_id_startswith_execution_id(self):
# In case Attempt id is not set we append "-" plus 5 random chars to the end of execution id and assign the result to attempt id
assert self.context.state.get(CommonStoreKeys.ATTEMPT_ID).startswith(
self.context.state.get(CommonStoreKeys.EXECUTION_ID)
)
def test_attempt_id_longer_than_execution_id(self):
# In case Attempt id is not set we append "-" plus 5 random chars to the end of execution id and assign the result to attempt id
assert (
len(self.context.state.get(CommonStoreKeys.ATTEMPT_ID))
- len(self.context.state.get(CommonStoreKeys.EXECUTION_ID))
== 6
) | projects/vdk-core/tests/vdk/internal/builtin_plugins/test_builtin_hook_impl.py | from unittest.mock import MagicMock
from vdk.api.plugin.plugin_registry import IPluginRegistry
from vdk.internal.builtin_plugins import builtin_hook_impl
from vdk.internal.core.config import ConfigurationBuilder
from vdk.internal.core.context import CoreContext
from vdk.internal.core.statestore import CommonStoreKeys
from vdk.internal.core.statestore import StateStore
class TestLocalIdSet:
@classmethod
def setup_method(cls):
cls.configuration = ConfigurationBuilder().build()
cls.plugin_registry = MagicMock(spec=IPluginRegistry)
cls.state = StateStore()
cls.context = CoreContext(cls.plugin_registry, cls.configuration, cls.state)
cls.initializer = builtin_hook_impl.RuntimeStateInitializePlugin()
cls.initializer.vdk_initialize(cls.context)
def test_auto_generated_execution_id(self):
assert self.context.state.get(CommonStoreKeys.EXECUTION_ID)
def test_auto_generated_attempt_id(self):
assert self.context.state.get(CommonStoreKeys.ATTEMPT_ID)
def test_auto_generated_op_id(self):
assert self.context.state.get(CommonStoreKeys.OP_ID) == self.context.state.get(
CommonStoreKeys.EXECUTION_ID
)
def test_execution_id_len(self):
# job name is uuid 36 chars + - + timestamp 10 chars = 47
assert len(self.context.state.get(CommonStoreKeys.EXECUTION_ID)) == 47
def test_op_id_len(self):
# same as execution_id
assert len(self.context.state.get(CommonStoreKeys.OP_ID)) == 47
def test_attempt_id_len(self):
# execution id len + - + 5 chars = 53
assert len(self.context.state.get(CommonStoreKeys.ATTEMPT_ID)) == 53
class TestExternalIdSet:
@classmethod
def setup_method(cls):
cls.configuration = (
ConfigurationBuilder()
.add("ATTEMPT_ID", "mzhivkov-test-job-1234567890-akmvy")
.build()
)
cls.plugin_registry = MagicMock(spec=IPluginRegistry)
cls.state = StateStore()
cls.context = CoreContext(cls.plugin_registry, cls.configuration, cls.state)
cls.initializer = builtin_hook_impl.RuntimeStateInitializePlugin()
cls.initializer.vdk_initialize(cls.context)
def test_execution_id(self):
assert (
self.context.state.get(CommonStoreKeys.EXECUTION_ID)
== "mzhivkov-test-job-1234567890"
)
def test_op_id(self):
assert (
self.context.state.get(CommonStoreKeys.OP_ID)
== "mzhivkov-test-job-1234567890"
)
def test_attempt_id(self):
assert (
self.context.state.get(CommonStoreKeys.ATTEMPT_ID)
== "mzhivkov-test-job-1234567890-akmvy"
)
class TestExecutionIdSet:
@classmethod
def setup_method(cls):
cls.configuration = (
ConfigurationBuilder()
.add("EXECUTION_ID", "mzhivkov-test-job-1234567890")
.build()
)
cls.plugin_registry = MagicMock(spec=IPluginRegistry)
cls.state = StateStore()
cls.context = CoreContext(cls.plugin_registry, cls.configuration, cls.state)
cls.initializer = builtin_hook_impl.RuntimeStateInitializePlugin()
cls.initializer.vdk_initialize(cls.context)
def test_execution_id_set(self):
assert (
self.context.state.get(CommonStoreKeys.EXECUTION_ID)
== "mzhivkov-test-job-1234567890"
)
def test_attempt_id(self):
assert self.context.state.get(CommonStoreKeys.ATTEMPT_ID)
def test_op_id(self):
assert self.context.state.get(CommonStoreKeys.OP_ID) == self.context.state.get(
CommonStoreKeys.EXECUTION_ID
)
def test_attempt_id_startswith_execution_id(self):
# In case Attempt id is not set we append "-" plus 5 random chars to the end of execution id and assign the result to attempt id
assert self.context.state.get(CommonStoreKeys.ATTEMPT_ID).startswith(
self.context.state.get(CommonStoreKeys.EXECUTION_ID)
)
def test_attempt_id_longer_than_execution_id(self):
# In case Attempt id is not set we append "-" plus 5 random chars to the end of execution id and assign the result to attempt id
assert (
len(self.context.state.get(CommonStoreKeys.ATTEMPT_ID))
- len(self.context.state.get(CommonStoreKeys.EXECUTION_ID))
== 6
) | 0.646906 | 0.225342 |
import pytest
from waterbutler.providers.owncloud.metadata import OwnCloudFileRevisionMetadata
from tests.providers.owncloud.fixtures import (
file_metadata_object,
file_metadata_object_less_info,
folder_metadata_object,
folder_metadata_object_less_info,
revision_metadata_object
)
class TestFileMetadata:
def test_file_metadata(self, file_metadata_object):
assert file_metadata_object.provider == 'owncloud'
assert file_metadata_object.name == 'dissertation.aux'
assert file_metadata_object.path == '/Documents/dissertation.aux'
assert file_metadata_object.materialized_path == '/Documents/dissertation.aux'
assert file_metadata_object.kind == 'file'
assert file_metadata_object.size == '3011'
assert file_metadata_object.size_as_int == 3011
assert type(file_metadata_object.size_as_int) == int
assert file_metadata_object.etag == '"a3c411808d58977a9ecd7485b5b7958e"'
assert file_metadata_object.modified == 'Sun, 10 Jul 2016 23:28:31 GMT'
assert file_metadata_object.modified_utc == '2016-07-10T23:28:31+00:00'
assert file_metadata_object.created_utc is None
assert file_metadata_object.content_type == 'application/octet-stream'
assert file_metadata_object.extra == {}
json_api_links = {'delete': 'http://localhost:7777/v1/resources/guid0/providers/owncloud/'
'Documents/dissertation.aux',
'download': 'http://localhost:7777/v1/resources/guid0/providers/owncloud/'
'Documents/dissertation.aux',
'move': 'http://localhost:7777/v1/resources/guid0/providers/owncloud/'
'Documents/dissertation.aux',
'upload': 'http://localhost:7777/v1/resources/guid0/providers/owncloud/'
'Documents/dissertation.aux?kind=file'}
assert file_metadata_object._json_api_links('guid0') == json_api_links
def test_file_metadata_less_info(self, file_metadata_object_less_info):
assert file_metadata_object_less_info.provider == 'owncloud'
assert file_metadata_object_less_info.name == 'dissertation.aux'
assert file_metadata_object_less_info.path == '/Documents/dissertation.aux'
assert file_metadata_object_less_info.materialized_path == '/Documents/dissertation.aux'
assert file_metadata_object_less_info.kind == 'file'
assert file_metadata_object_less_info.size is None
assert file_metadata_object_less_info.size_as_int is None
assert file_metadata_object_less_info.etag == '"a3c411808d58977a9ecd7485b5b7958e"'
assert file_metadata_object_less_info.modified == 'Sun, 10 Jul 2016 23:28:31 GMT'
assert file_metadata_object_less_info.modified_utc == '2016-07-10T23:28:31+00:00'
assert file_metadata_object_less_info.created_utc is None
assert file_metadata_object_less_info.content_type is None
assert file_metadata_object_less_info.extra == {}
json_api_links = {'delete': 'http://localhost:7777/v1/resources/guid0/providers/owncloud/'
'Documents/dissertation.aux',
'download': 'http://localhost:7777/v1/resources/guid0/providers/owncloud/'
'Documents/dissertation.aux',
'move': 'http://localhost:7777/v1/resources/guid0/providers/owncloud/'
'Documents/dissertation.aux',
'upload': 'http://localhost:7777/v1/resources/guid0/providers/owncloud/'
'Documents/dissertation.aux?kind=file'}
assert file_metadata_object_less_info._json_api_links('guid0') == json_api_links
class TestFolderMetadata:
def test_folder_metadata(self, folder_metadata_object):
assert folder_metadata_object.provider == 'owncloud'
assert folder_metadata_object.name == 'Documents'
assert folder_metadata_object.path == '/'
assert folder_metadata_object.materialized_path == '/'
assert folder_metadata_object.kind == 'folder'
assert folder_metadata_object.content_type == 'httpd/unix-directory'
assert folder_metadata_object.size is None
assert folder_metadata_object.etag == '"57688dd3584b0"'
assert folder_metadata_object.extra == {}
json_api_links = {'delete': 'http://localhost:7777/v1/resources/guid0/providers/owncloud/',
'move': 'http://localhost:7777/v1/resources/guid0/providers/owncloud/',
'new_folder': 'http://localhost:7777/v1/resources/guid0/providers'
'/owncloud/?kind=folder',
'upload': 'http://localhost:7777/v1/resources/guid0/providers/owncloud/'
'?kind=file'}
assert folder_metadata_object._json_api_links('guid0') == json_api_links
def test_folder_metadata_less_info(self, folder_metadata_object_less_info):
assert folder_metadata_object_less_info.provider == 'owncloud'
assert folder_metadata_object_less_info.name == 'Documents'
assert folder_metadata_object_less_info.path == '/'
assert folder_metadata_object_less_info.materialized_path == '/'
assert folder_metadata_object_less_info.kind == 'folder'
assert folder_metadata_object_less_info.content_type == 'httpd/unix-directory'
assert folder_metadata_object_less_info.size is None
assert folder_metadata_object_less_info.etag == '"a3c411808d58977a9ecd7485b5b7958e"'
assert folder_metadata_object_less_info.extra == {}
json_api_links = {'delete': 'http://localhost:7777/v1/resources/guid0/providers/owncloud/',
'move': 'http://localhost:7777/v1/resources/guid0/providers/owncloud/',
'new_folder': 'http://localhost:7777/v1/resources/guid0/providers/'
'owncloud/?kind=folder',
'upload': 'http://localhost:7777/v1/resources/guid0/providers/'
'owncloud/?kind=file'}
assert folder_metadata_object_less_info._json_api_links('guid0') == json_api_links
class TestRevisionMetadata:
def test_revision_metadata(self, revision_metadata_object):
assert revision_metadata_object.version_identifier == 'revision'
assert revision_metadata_object.version == 'latest'
assert revision_metadata_object.modified == 'Sun, 10 Jul 2016 23:28:31 GMT'
assert revision_metadata_object.extra == {}
serialized = {'extra': {},
'modified': 'Sun, 10 Jul 2016 23:28:31 GMT',
'modified_utc': '2016-07-10T23:28:31+00:00',
'version': 'latest',
'versionIdentifier': 'revision'}
assert revision_metadata_object.serialized() == serialized
json_api_serialized = {'attributes':
{'extra': {},
'modified': 'Sun, 10 Jul 2016 23:28:31 GMT',
'modified_utc': '2016-07-10T23:28:31+00:00',
'version': 'latest',
'versionIdentifier': 'revision'},
'id': 'latest',
'type': 'file_versions'}
assert revision_metadata_object.json_api_serialized() == json_api_serialized
def test_revision_from_metadata(self, revision_metadata_object, file_metadata_object):
revision = OwnCloudFileRevisionMetadata.from_metadata(file_metadata_object)
assert revision == revision_metadata_object | tests/providers/owncloud/test_metadata.py | import pytest
from waterbutler.providers.owncloud.metadata import OwnCloudFileRevisionMetadata
from tests.providers.owncloud.fixtures import (
file_metadata_object,
file_metadata_object_less_info,
folder_metadata_object,
folder_metadata_object_less_info,
revision_metadata_object
)
class TestFileMetadata:
def test_file_metadata(self, file_metadata_object):
assert file_metadata_object.provider == 'owncloud'
assert file_metadata_object.name == 'dissertation.aux'
assert file_metadata_object.path == '/Documents/dissertation.aux'
assert file_metadata_object.materialized_path == '/Documents/dissertation.aux'
assert file_metadata_object.kind == 'file'
assert file_metadata_object.size == '3011'
assert file_metadata_object.size_as_int == 3011
assert type(file_metadata_object.size_as_int) == int
assert file_metadata_object.etag == '"a3c411808d58977a9ecd7485b5b7958e"'
assert file_metadata_object.modified == 'Sun, 10 Jul 2016 23:28:31 GMT'
assert file_metadata_object.modified_utc == '2016-07-10T23:28:31+00:00'
assert file_metadata_object.created_utc is None
assert file_metadata_object.content_type == 'application/octet-stream'
assert file_metadata_object.extra == {}
json_api_links = {'delete': 'http://localhost:7777/v1/resources/guid0/providers/owncloud/'
'Documents/dissertation.aux',
'download': 'http://localhost:7777/v1/resources/guid0/providers/owncloud/'
'Documents/dissertation.aux',
'move': 'http://localhost:7777/v1/resources/guid0/providers/owncloud/'
'Documents/dissertation.aux',
'upload': 'http://localhost:7777/v1/resources/guid0/providers/owncloud/'
'Documents/dissertation.aux?kind=file'}
assert file_metadata_object._json_api_links('guid0') == json_api_links
def test_file_metadata_less_info(self, file_metadata_object_less_info):
assert file_metadata_object_less_info.provider == 'owncloud'
assert file_metadata_object_less_info.name == 'dissertation.aux'
assert file_metadata_object_less_info.path == '/Documents/dissertation.aux'
assert file_metadata_object_less_info.materialized_path == '/Documents/dissertation.aux'
assert file_metadata_object_less_info.kind == 'file'
assert file_metadata_object_less_info.size is None
assert file_metadata_object_less_info.size_as_int is None
assert file_metadata_object_less_info.etag == '"a3c411808d58977a9ecd7485b5b7958e"'
assert file_metadata_object_less_info.modified == 'Sun, 10 Jul 2016 23:28:31 GMT'
assert file_metadata_object_less_info.modified_utc == '2016-07-10T23:28:31+00:00'
assert file_metadata_object_less_info.created_utc is None
assert file_metadata_object_less_info.content_type is None
assert file_metadata_object_less_info.extra == {}
json_api_links = {'delete': 'http://localhost:7777/v1/resources/guid0/providers/owncloud/'
'Documents/dissertation.aux',
'download': 'http://localhost:7777/v1/resources/guid0/providers/owncloud/'
'Documents/dissertation.aux',
'move': 'http://localhost:7777/v1/resources/guid0/providers/owncloud/'
'Documents/dissertation.aux',
'upload': 'http://localhost:7777/v1/resources/guid0/providers/owncloud/'
'Documents/dissertation.aux?kind=file'}
assert file_metadata_object_less_info._json_api_links('guid0') == json_api_links
class TestFolderMetadata:
def test_folder_metadata(self, folder_metadata_object):
assert folder_metadata_object.provider == 'owncloud'
assert folder_metadata_object.name == 'Documents'
assert folder_metadata_object.path == '/'
assert folder_metadata_object.materialized_path == '/'
assert folder_metadata_object.kind == 'folder'
assert folder_metadata_object.content_type == 'httpd/unix-directory'
assert folder_metadata_object.size is None
assert folder_metadata_object.etag == '"57688dd3584b0"'
assert folder_metadata_object.extra == {}
json_api_links = {'delete': 'http://localhost:7777/v1/resources/guid0/providers/owncloud/',
'move': 'http://localhost:7777/v1/resources/guid0/providers/owncloud/',
'new_folder': 'http://localhost:7777/v1/resources/guid0/providers'
'/owncloud/?kind=folder',
'upload': 'http://localhost:7777/v1/resources/guid0/providers/owncloud/'
'?kind=file'}
assert folder_metadata_object._json_api_links('guid0') == json_api_links
def test_folder_metadata_less_info(self, folder_metadata_object_less_info):
assert folder_metadata_object_less_info.provider == 'owncloud'
assert folder_metadata_object_less_info.name == 'Documents'
assert folder_metadata_object_less_info.path == '/'
assert folder_metadata_object_less_info.materialized_path == '/'
assert folder_metadata_object_less_info.kind == 'folder'
assert folder_metadata_object_less_info.content_type == 'httpd/unix-directory'
assert folder_metadata_object_less_info.size is None
assert folder_metadata_object_less_info.etag == '"a3c411808d58977a9ecd7485b5b7958e"'
assert folder_metadata_object_less_info.extra == {}
json_api_links = {'delete': 'http://localhost:7777/v1/resources/guid0/providers/owncloud/',
'move': 'http://localhost:7777/v1/resources/guid0/providers/owncloud/',
'new_folder': 'http://localhost:7777/v1/resources/guid0/providers/'
'owncloud/?kind=folder',
'upload': 'http://localhost:7777/v1/resources/guid0/providers/'
'owncloud/?kind=file'}
assert folder_metadata_object_less_info._json_api_links('guid0') == json_api_links
class TestRevisionMetadata:
def test_revision_metadata(self, revision_metadata_object):
assert revision_metadata_object.version_identifier == 'revision'
assert revision_metadata_object.version == 'latest'
assert revision_metadata_object.modified == 'Sun, 10 Jul 2016 23:28:31 GMT'
assert revision_metadata_object.extra == {}
serialized = {'extra': {},
'modified': 'Sun, 10 Jul 2016 23:28:31 GMT',
'modified_utc': '2016-07-10T23:28:31+00:00',
'version': 'latest',
'versionIdentifier': 'revision'}
assert revision_metadata_object.serialized() == serialized
json_api_serialized = {'attributes':
{'extra': {},
'modified': 'Sun, 10 Jul 2016 23:28:31 GMT',
'modified_utc': '2016-07-10T23:28:31+00:00',
'version': 'latest',
'versionIdentifier': 'revision'},
'id': 'latest',
'type': 'file_versions'}
assert revision_metadata_object.json_api_serialized() == json_api_serialized
def test_revision_from_metadata(self, revision_metadata_object, file_metadata_object):
revision = OwnCloudFileRevisionMetadata.from_metadata(file_metadata_object)
assert revision == revision_metadata_object | 0.314471 | 0.205904 |
from imports import *
from rescale_numeric_feature import *
"""
This class calculates feature importance
Input:
"""
class calculate_shap():
def __init__(self):
super(calculate_shap, self).__init__()
self.param = None
def xgboost_shap(self, model, X):
# explain the model's predictions using SHAP
# (same syntax works for LightGBM, CatBoost, scikit-learn and spark models)
explainer = shap.TreeExplainer(model)
shap_values = explainer.shap_values(X)
pd_shap = pd.DataFrame(shap_values)
all_columns = list(X.columns)
shap_columns = []
for i in all_columns:
shap_columns.append(i + "_impact")
pd_shap.columns = shap_columns
Y = X.copy()
for c in shap_columns:
Y[c] = list(pd_shap[c])
return Y, explainer
def catboost_shap(self, model, df, y_variable=None):
import catboost
from catboost import CatBoostClassifier, Pool
from catboost import CatBoostRegressor
from catboost.utils import get_confusion_matrix
# explain the model's predictions using SHAP
if y_variable != None:
try:
df = df.drop(y_variable, axis=1)
except:
df = df
# find categorical variables and it's index
g = get_cols()
cat, cat_index = g.cate_col_with_index(df)
all_columns = list(df.columns)
# convert dataframe in to array
df_array = df.to_numpy()
# call the function
shap_values = self.get_shap_values(df_array, model, all_columns, cat_index)
# append the results with the original file
# final_df = df.join(shap_values)
shap_columns = shap_values.columns
Y = df.copy()
for c in shap_columns:
Y[c] = list(shap_values[c])
return Y
def kernel_shap(self, model, X_train):
# use Kernel SHAP to explain test set predictions
explainer = shap.KernelExplainer(model.predict_proba, X_train)
shap_values = explainer.shap_values(X_train, nsamples=100)
pd_shap = pd.DataFrame(shap_values)
all_columns = list(X_train.columns)
shap_columns = []
for i in all_columns:
shap_columns.append(i + "_impact")
pd_shap.columns = shap_columns
Y = X_train.copy()
for c in shap_columns:
Y[c] = list(pd_shap[c])
return Y, explainer
def kernel_shap_classification(self, model, X_train, prediction_col):
# use Kernel SHAP to explain test set predictions
explainer = shap.KernelExplainer(model.predict_proba, X_train)
shap_values = explainer.shap_values(X_train, nsamples=100)
pd_shap = self.select_row_shap_values(shap_values, prediction_col)
all_columns = list(X_train.columns)
shap_columns = []
for i in all_columns:
shap_columns.append(i + "_impact")
pd_shap.columns = shap_columns
Y = X_train.copy()
for c in shap_columns:
Y[c] = list(pd_shap[c])
return Y, explainer
def h2o_shap_results(self, model, h2o_df, X_train, prediction_col):
pd_shap = model.predict_contributions(h2o_df)
pd_shap = pd_shap.as_data_frame()
pd_shap.drop(['BiasTerm'],axis=1,inplace=True,errors='ignore')
shap_columns = [i + "_impact" for i in pd_shap.columns]
pd_shap.columns = shap_columns
print(shap_columns)
y = X_train.copy()
for c in shap_columns:
y[c] = list(pd_shap[c])
return y, pd_shap
def select_row_shap_values(self, shap_values, prediction_col):
num_of_classes = len(shap_values)
if num_of_classes == len(prediction_col):
df_final = pd.DataFrame(shap_values)
return df_final
point_no = 0
df_array = []
for p in prediction_col:
df_array.append(shap_values[p][point_no])
point_no = point_no + 1
df_final = pd.DataFrame(df_array)
return df_final
def randomforest_shap_classification(self, model, X, prediction_col):
explainer = shap.TreeExplainer(model)
shap_values = explainer.shap_values(X, approximate=True)
pd_shap = self.select_row_shap_values(shap_values, prediction_col)
all_columns = list(X.columns)
pd_shap.columns = [f"{y}_impact" for y in all_columns]
shap_columns = pd_shap.columns
Y = X.copy()
for c in shap_columns:
Y[c] = list(pd_shap[c])
return Y, explainer
def randomforest_shap(self, model, X):
explainer = shap.TreeExplainer(model)
shap_values = explainer.shap_values(X, approximate=True)
pd_shap = pd.DataFrame(shap_values)
all_columns = list(X.columns)
pd_shap.columns = [f"{y}_impact" for y in all_columns]
shap_columns = pd_shap.columns
Y = X.copy()
for c in shap_columns:
Y[c] = list(pd_shap[c])
return Y, explainer
def get_shap_values(self, x_array, model, x_variable, cat_index):
"""
SHAP VALUES CALCULATED
"""
from catboost import Pool
shap_values = model.get_feature_importance(Pool(x_array, cat_features=cat_index), type='ShapValues')
shap_values = shap_values[:, :-1]
total_columns = x_variable
total_columns = [i + '_impact' for i in total_columns]
shap_values = pd.DataFrame(data=shap_values, columns=total_columns)
return shap_values
def find(self, model, df, prediction_col, is_classification, model_name="xgboost"):
if model_name == "xgboost":
df2, explainer = self.xgboost_shap(model, df)
return df2, explainer
elif model_name == "lightgbm":
df2, explainer = self.xgboost_shap(model, df)
return df2, explainer
elif model_name == "catboost":
df2 = self.catboost_shap(model, df)
explainer = None
return df2, explainer
elif model_name == 'h2o':
df2, explainer = self.h2o_shap_results(model, df, df.as_data_frame(), prediction_col)
return df2, explainer
elif model_name == "randomforest":
if is_classification:
df2, explainer = self.randomforest_shap_classification(model, df, prediction_col)
else:
df2, explainer = self.randomforest_shap(model, df)
return df2, explainer
elif model_name == "svm":
if is_classification:
df2, explainer = self.kernel_shap_classification(model, df, prediction_col)
else:
df2, explainer = self.kernel_shap(model, df)
return df2, explainer
elif model_name == "knn":
if is_classification:
df2, explainer = self.kernel_shap_classification(model, df, prediction_col)
else:
df2, explainer = self.kernel_shap(model, df)
return df2, explainer
elif model_name == "logisticregression":
if is_classification:
df2, explainer = self.kernel_shap_classification(model, df, prediction_col)
else:
df2, explainer = self.kernel_shap(model, df)
return df2, explainer
elif model_name == "decisiontree":
if is_classification:
df2, explainer = self.kernel_shap_classification(model, df, prediction_col)
else:
df2, explainer = self.kernel_shap(model, df)
return df2, explainer
elif model_name == "neuralnetwork":
if is_classification:
df2, explainer = self.kernel_shap_classification(model, df, prediction_col)
else:
df2, explainer = self.kernel_shap(model, df)
return df2, explainer
elif model_name == "gradientboostingregressor":
df2, explainer = self.xgboost_shap(model, df)
return df2, explainer
elif "gradientboosting" in model_name:
df2, explainer = self.xgboost_shap(model, df)
return df2, explainer
else:
if is_classification:
df2, explainer = self.kernel_shap_classification(model, df, prediction_col)
else:
df2, explainer = self.kernel_shap(model, df)
return df2, explainer | lib/calculate_shap.py | from imports import *
from rescale_numeric_feature import *
"""
This class calculates feature importance
Input:
"""
class calculate_shap():
def __init__(self):
super(calculate_shap, self).__init__()
self.param = None
def xgboost_shap(self, model, X):
# explain the model's predictions using SHAP
# (same syntax works for LightGBM, CatBoost, scikit-learn and spark models)
explainer = shap.TreeExplainer(model)
shap_values = explainer.shap_values(X)
pd_shap = pd.DataFrame(shap_values)
all_columns = list(X.columns)
shap_columns = []
for i in all_columns:
shap_columns.append(i + "_impact")
pd_shap.columns = shap_columns
Y = X.copy()
for c in shap_columns:
Y[c] = list(pd_shap[c])
return Y, explainer
def catboost_shap(self, model, df, y_variable=None):
import catboost
from catboost import CatBoostClassifier, Pool
from catboost import CatBoostRegressor
from catboost.utils import get_confusion_matrix
# explain the model's predictions using SHAP
if y_variable != None:
try:
df = df.drop(y_variable, axis=1)
except:
df = df
# find categorical variables and it's index
g = get_cols()
cat, cat_index = g.cate_col_with_index(df)
all_columns = list(df.columns)
# convert dataframe in to array
df_array = df.to_numpy()
# call the function
shap_values = self.get_shap_values(df_array, model, all_columns, cat_index)
# append the results with the original file
# final_df = df.join(shap_values)
shap_columns = shap_values.columns
Y = df.copy()
for c in shap_columns:
Y[c] = list(shap_values[c])
return Y
def kernel_shap(self, model, X_train):
# use Kernel SHAP to explain test set predictions
explainer = shap.KernelExplainer(model.predict_proba, X_train)
shap_values = explainer.shap_values(X_train, nsamples=100)
pd_shap = pd.DataFrame(shap_values)
all_columns = list(X_train.columns)
shap_columns = []
for i in all_columns:
shap_columns.append(i + "_impact")
pd_shap.columns = shap_columns
Y = X_train.copy()
for c in shap_columns:
Y[c] = list(pd_shap[c])
return Y, explainer
def kernel_shap_classification(self, model, X_train, prediction_col):
# use Kernel SHAP to explain test set predictions
explainer = shap.KernelExplainer(model.predict_proba, X_train)
shap_values = explainer.shap_values(X_train, nsamples=100)
pd_shap = self.select_row_shap_values(shap_values, prediction_col)
all_columns = list(X_train.columns)
shap_columns = []
for i in all_columns:
shap_columns.append(i + "_impact")
pd_shap.columns = shap_columns
Y = X_train.copy()
for c in shap_columns:
Y[c] = list(pd_shap[c])
return Y, explainer
def h2o_shap_results(self, model, h2o_df, X_train, prediction_col):
pd_shap = model.predict_contributions(h2o_df)
pd_shap = pd_shap.as_data_frame()
pd_shap.drop(['BiasTerm'],axis=1,inplace=True,errors='ignore')
shap_columns = [i + "_impact" for i in pd_shap.columns]
pd_shap.columns = shap_columns
print(shap_columns)
y = X_train.copy()
for c in shap_columns:
y[c] = list(pd_shap[c])
return y, pd_shap
def select_row_shap_values(self, shap_values, prediction_col):
num_of_classes = len(shap_values)
if num_of_classes == len(prediction_col):
df_final = pd.DataFrame(shap_values)
return df_final
point_no = 0
df_array = []
for p in prediction_col:
df_array.append(shap_values[p][point_no])
point_no = point_no + 1
df_final = pd.DataFrame(df_array)
return df_final
def randomforest_shap_classification(self, model, X, prediction_col):
explainer = shap.TreeExplainer(model)
shap_values = explainer.shap_values(X, approximate=True)
pd_shap = self.select_row_shap_values(shap_values, prediction_col)
all_columns = list(X.columns)
pd_shap.columns = [f"{y}_impact" for y in all_columns]
shap_columns = pd_shap.columns
Y = X.copy()
for c in shap_columns:
Y[c] = list(pd_shap[c])
return Y, explainer
def randomforest_shap(self, model, X):
explainer = shap.TreeExplainer(model)
shap_values = explainer.shap_values(X, approximate=True)
pd_shap = pd.DataFrame(shap_values)
all_columns = list(X.columns)
pd_shap.columns = [f"{y}_impact" for y in all_columns]
shap_columns = pd_shap.columns
Y = X.copy()
for c in shap_columns:
Y[c] = list(pd_shap[c])
return Y, explainer
def get_shap_values(self, x_array, model, x_variable, cat_index):
"""
SHAP VALUES CALCULATED
"""
from catboost import Pool
shap_values = model.get_feature_importance(Pool(x_array, cat_features=cat_index), type='ShapValues')
shap_values = shap_values[:, :-1]
total_columns = x_variable
total_columns = [i + '_impact' for i in total_columns]
shap_values = pd.DataFrame(data=shap_values, columns=total_columns)
return shap_values
def find(self, model, df, prediction_col, is_classification, model_name="xgboost"):
if model_name == "xgboost":
df2, explainer = self.xgboost_shap(model, df)
return df2, explainer
elif model_name == "lightgbm":
df2, explainer = self.xgboost_shap(model, df)
return df2, explainer
elif model_name == "catboost":
df2 = self.catboost_shap(model, df)
explainer = None
return df2, explainer
elif model_name == 'h2o':
df2, explainer = self.h2o_shap_results(model, df, df.as_data_frame(), prediction_col)
return df2, explainer
elif model_name == "randomforest":
if is_classification:
df2, explainer = self.randomforest_shap_classification(model, df, prediction_col)
else:
df2, explainer = self.randomforest_shap(model, df)
return df2, explainer
elif model_name == "svm":
if is_classification:
df2, explainer = self.kernel_shap_classification(model, df, prediction_col)
else:
df2, explainer = self.kernel_shap(model, df)
return df2, explainer
elif model_name == "knn":
if is_classification:
df2, explainer = self.kernel_shap_classification(model, df, prediction_col)
else:
df2, explainer = self.kernel_shap(model, df)
return df2, explainer
elif model_name == "logisticregression":
if is_classification:
df2, explainer = self.kernel_shap_classification(model, df, prediction_col)
else:
df2, explainer = self.kernel_shap(model, df)
return df2, explainer
elif model_name == "decisiontree":
if is_classification:
df2, explainer = self.kernel_shap_classification(model, df, prediction_col)
else:
df2, explainer = self.kernel_shap(model, df)
return df2, explainer
elif model_name == "neuralnetwork":
if is_classification:
df2, explainer = self.kernel_shap_classification(model, df, prediction_col)
else:
df2, explainer = self.kernel_shap(model, df)
return df2, explainer
elif model_name == "gradientboostingregressor":
df2, explainer = self.xgboost_shap(model, df)
return df2, explainer
elif "gradientboosting" in model_name:
df2, explainer = self.xgboost_shap(model, df)
return df2, explainer
else:
if is_classification:
df2, explainer = self.kernel_shap_classification(model, df, prediction_col)
else:
df2, explainer = self.kernel_shap(model, df)
return df2, explainer | 0.735642 | 0.60092 |
import json, os
from romUtils import GAME_FILE_PATH
from data.moveData import move_list
from data.typeData import type_map
from generateUtils import *
with open(GAME_FILE_PATH, 'rb') as game_file:
game_file.seek(0x3679A0)
move_json_array = []
for move in move_list:
move_json = {}
move_json['name'] = move
move_json['namePointer'] = read_pointer(game_file)
# move_json['address'] = get_current_address(game_file)
move_json['power'] = read_u8(game_file)
read_u8(game_file)
move_json['type'] = type_map[read_u8(game_file)]
read_u8(game_file)
move_json['targetingFlags'] = read_binary16(game_file)
move_json['aiTargetingFlags'] = read_binary16(game_file)
move_json['maxPP'] = read_u8(game_file)
move_json['weight'] = read_u8(game_file)
move_json['accuracy1'] = read_u8(game_file)
move_json['accuracy2'] = read_u8(game_file)
move_json['useChance'] = read_u8(game_file)
move_json['hitCount'] = read_u8(game_file)
assign_nondefault(move_json, 'unk12', read_u8(game_file))
assign_nondefault(move_json, 'criticalHitChance', read_u8(game_file))
assign_nondefault(move_json, 'affectedByMagicCoat', read_bool8(game_file))
assign_nondefault(move_json, 'targetsUser', read_bool8(game_file))
assign_nondefault(move_json, 'affectedByMuzzled', read_bool8(game_file))
move_json['cannotHitFrozen'] = read_bool8(game_file)
assign_nondefault(move_json, 'dealsDirectDamage', read_bool8(game_file))
move_json['unk19'] = read_u8(game_file)
read_u16(game_file)
move_json['descriptionPointer'] = read_pointer(game_file)
move_json['useText'] = read_pointer(game_file)
move_json_array.append(move_json)
replace_names_name = {
'Iswatching': 'IsWatching',
'Regularattack': 'RegularAttack',
'$$$': 'Placeholder',
}
replace_names_description = {
'AirCutter': 'HighCritical',
'Aromatherapy': 'HealTeamStatus',
'Astonish': 'Cringe',
'Bubble': 'LowerSpeedChanceDistance',
'BulletSeed': 'MultiHitDistance',
'Clamp': 'Constriction',
'Confusion': 'ConfuseChance',
'Crunch': 'LowerSpecialDefenseChance',
'Disable': 'Paralyze',
'DoomDesire': 'FixedDamage',
'DoubleKick': 'HitTwice',
'Doubleslap': 'MultiHit',
'DoubleTeam': 'BoostEvasion',
'Extremespeed': 'TwoTilesAhead',
'FlameWheel': 'BurnChance',
'GigaDrain': 'Drain',
'Grasswhistle': 'Sleep',
'Harden': 'BoostDefense',
'HornDrill': 'OneHit',
'IceBall': 'MultiHitUntilMiss',
'IronDefense': 'BoostDefenseTwo',
'IronTail': 'LowerDefenseChance',
'Iswatching': 'IsWatching',
'PoisonGas': 'Poison',
'PowderSnow': 'FreezeChanceRoom',
'Psybeam': 'ConfuseChanceDistance',
'Pursuit': 'Counter',
'RazorLeaf': 'HighCriticalDistance',
'Regularattack': 'Null',
'RockThrow': 'Damage',
'RockTomb': 'DamageLowerSpeed',
'SandAttack': 'LowerAccuracy',
'ScaryFace': 'LowerSpeed',
'ShadowPunch': 'NeverMiss',
'Sharpen': 'BoostAttack',
'Smog': 'PoisonChance',
'SpiderWeb': 'LegHolder',
'Submission': 'Recoil',
'Supersonic': 'Confuse',
'TailWhip': 'LowerDefense',
'Thunderpunch': 'ParalyzeChance',
'$$$': 'Placeholder',
}
replace_names_use = {
'Bide2': 'Bide',
'IronTail': 'Use',
'Regularattack': 'RegularAttack',
}
skip_names = {
'Wish': 'SpeciesCategoryJirachi',
'Bounce': 'SpeciesCategorySpoink',
'Meditate': 'SpeciesCategoryMeditite',
'ArmThrust': 'SpeciesCategoryHariyama',
'Swallow': 'SpeciesCategorySwellow',
'Bite': 'SpeciesCategoryPoochyena',
'Thunder': 'SpeciesCategoryRaikou',
'Screech': 'SpeciesCategoryMisdreavus',
'Moonlight': 'SpeciesCategoryUmbreon',
'Transform': 'SpeciesCategoryDitto',
'Barrier': 'SpeciesCategoryMrMime',
'Spikes': 'SpeciesCategoryRhyhorn',
'PoisonGas': 'SpeciesCategoryKoffing',
'Hypnosis': 'SpeciesCategoryDrowzee',
'Sludge': 'SpeciesCategoryGrimer',
'Superpower': 'SpeciesCategoryMachop',
'Eruption': 'SpeciesCategoryNone',
}
fields = [
JsonStringField('namePointer', 'MoveName', replace_names_name, skip_names),
JsonStringField('descriptionPointer', 'MoveDescription', replace_names_description),
JsonStringField('useText', 'MoveUseText', replace_names_use),
]
generate_string_file(game_file, move_json_array, 'move_names.s', fields)
with open(os.path.join('json', 'move_data.json'), 'w') as json_file:
json_file.write(json.dumps(move_json_array, indent=4) + '\n') | generateMoveJson.py | import json, os
from romUtils import GAME_FILE_PATH
from data.moveData import move_list
from data.typeData import type_map
from generateUtils import *
with open(GAME_FILE_PATH, 'rb') as game_file:
game_file.seek(0x3679A0)
move_json_array = []
for move in move_list:
move_json = {}
move_json['name'] = move
move_json['namePointer'] = read_pointer(game_file)
# move_json['address'] = get_current_address(game_file)
move_json['power'] = read_u8(game_file)
read_u8(game_file)
move_json['type'] = type_map[read_u8(game_file)]
read_u8(game_file)
move_json['targetingFlags'] = read_binary16(game_file)
move_json['aiTargetingFlags'] = read_binary16(game_file)
move_json['maxPP'] = read_u8(game_file)
move_json['weight'] = read_u8(game_file)
move_json['accuracy1'] = read_u8(game_file)
move_json['accuracy2'] = read_u8(game_file)
move_json['useChance'] = read_u8(game_file)
move_json['hitCount'] = read_u8(game_file)
assign_nondefault(move_json, 'unk12', read_u8(game_file))
assign_nondefault(move_json, 'criticalHitChance', read_u8(game_file))
assign_nondefault(move_json, 'affectedByMagicCoat', read_bool8(game_file))
assign_nondefault(move_json, 'targetsUser', read_bool8(game_file))
assign_nondefault(move_json, 'affectedByMuzzled', read_bool8(game_file))
move_json['cannotHitFrozen'] = read_bool8(game_file)
assign_nondefault(move_json, 'dealsDirectDamage', read_bool8(game_file))
move_json['unk19'] = read_u8(game_file)
read_u16(game_file)
move_json['descriptionPointer'] = read_pointer(game_file)
move_json['useText'] = read_pointer(game_file)
move_json_array.append(move_json)
replace_names_name = {
'Iswatching': 'IsWatching',
'Regularattack': 'RegularAttack',
'$$$': 'Placeholder',
}
replace_names_description = {
'AirCutter': 'HighCritical',
'Aromatherapy': 'HealTeamStatus',
'Astonish': 'Cringe',
'Bubble': 'LowerSpeedChanceDistance',
'BulletSeed': 'MultiHitDistance',
'Clamp': 'Constriction',
'Confusion': 'ConfuseChance',
'Crunch': 'LowerSpecialDefenseChance',
'Disable': 'Paralyze',
'DoomDesire': 'FixedDamage',
'DoubleKick': 'HitTwice',
'Doubleslap': 'MultiHit',
'DoubleTeam': 'BoostEvasion',
'Extremespeed': 'TwoTilesAhead',
'FlameWheel': 'BurnChance',
'GigaDrain': 'Drain',
'Grasswhistle': 'Sleep',
'Harden': 'BoostDefense',
'HornDrill': 'OneHit',
'IceBall': 'MultiHitUntilMiss',
'IronDefense': 'BoostDefenseTwo',
'IronTail': 'LowerDefenseChance',
'Iswatching': 'IsWatching',
'PoisonGas': 'Poison',
'PowderSnow': 'FreezeChanceRoom',
'Psybeam': 'ConfuseChanceDistance',
'Pursuit': 'Counter',
'RazorLeaf': 'HighCriticalDistance',
'Regularattack': 'Null',
'RockThrow': 'Damage',
'RockTomb': 'DamageLowerSpeed',
'SandAttack': 'LowerAccuracy',
'ScaryFace': 'LowerSpeed',
'ShadowPunch': 'NeverMiss',
'Sharpen': 'BoostAttack',
'Smog': 'PoisonChance',
'SpiderWeb': 'LegHolder',
'Submission': 'Recoil',
'Supersonic': 'Confuse',
'TailWhip': 'LowerDefense',
'Thunderpunch': 'ParalyzeChance',
'$$$': 'Placeholder',
}
replace_names_use = {
'Bide2': 'Bide',
'IronTail': 'Use',
'Regularattack': 'RegularAttack',
}
skip_names = {
'Wish': 'SpeciesCategoryJirachi',
'Bounce': 'SpeciesCategorySpoink',
'Meditate': 'SpeciesCategoryMeditite',
'ArmThrust': 'SpeciesCategoryHariyama',
'Swallow': 'SpeciesCategorySwellow',
'Bite': 'SpeciesCategoryPoochyena',
'Thunder': 'SpeciesCategoryRaikou',
'Screech': 'SpeciesCategoryMisdreavus',
'Moonlight': 'SpeciesCategoryUmbreon',
'Transform': 'SpeciesCategoryDitto',
'Barrier': 'SpeciesCategoryMrMime',
'Spikes': 'SpeciesCategoryRhyhorn',
'PoisonGas': 'SpeciesCategoryKoffing',
'Hypnosis': 'SpeciesCategoryDrowzee',
'Sludge': 'SpeciesCategoryGrimer',
'Superpower': 'SpeciesCategoryMachop',
'Eruption': 'SpeciesCategoryNone',
}
fields = [
JsonStringField('namePointer', 'MoveName', replace_names_name, skip_names),
JsonStringField('descriptionPointer', 'MoveDescription', replace_names_description),
JsonStringField('useText', 'MoveUseText', replace_names_use),
]
generate_string_file(game_file, move_json_array, 'move_names.s', fields)
with open(os.path.join('json', 'move_data.json'), 'w') as json_file:
json_file.write(json.dumps(move_json_array, indent=4) + '\n') | 0.245175 | 0.119588 |
# Autor: <NAME>
# Datum: Tue Sep 14 18:01:02 2021
# Python 3.8.8
# Ubuntu 20.04.1
import logging
from typing import Any
import pandas as pd
from sklearn.dummy import DummyClassifier
from sklearn.metrics import f1_score
from sklearn.svm import SVC
logger = logging.getLogger(__name__)
def compute_micro_f1(y_true: Any, y_pred: Any) -> float:
"""
Computes micro F1 for labels. Returns average of F1 scores per label.
F1 scores for each label will be logged.
Parameters
----------
y_true : Any
Array of true class labels.
y_pred : Any
Array of predicted class labels.
Returns
-------
float
Average of micro F1 scores for all labels.
"""
f1_scores_per_label = []
for i in range(y_true.shape[1]):
f1_scores_per_label.append(
f1_score(y_true[:, i], y_pred[:, i], average="micro")
)
logger.info(f"f1 score per label of best classifier: {f1_scores_per_label}")
return sum(f1_scores_per_label) / len(f1_scores_per_label)
def majority_class_baseline(
X_train: pd.DataFrame, y_train: pd.Series
) -> DummyClassifier:
"""
Trains baseline classifier for majority class baseline.
Parameters
----------
X_train : pd.DataFrame
Training data.
y_train : pd.Series
Labels of training data.
Returns
-------
DummyClassifier
Majority baseline classifier.
"""
baseline_classifier = DummyClassifier(strategy="most_frequent")
baseline_classifier.fit(X_train, y_train)
return baseline_classifier
def get_best_classifier(scores: dict) -> SVC:
"""Finds best classifier from cross-validation"""
return scores["estimator"][
list(scores["test_score"]).index(max(scores["test_score"]))
]
def transform_categorical_data(data: Any, label_columns: list) -> pd.DataFrame:
"""
Transforms data from categorical to one-hot encoded data in order
to be processed by Decision tree classifier.
Parameters
----------
data : Any
Data to transform, array or pd.DataFrame.
label_columns : list
List of original column names.
Returns
-------
DataFrame with transformed data
"""
data = pd.DataFrame(data, columns=label_columns)
new_data = pd.get_dummies(data)
new_label_columns = create_new_label_columns(label_columns)
for column in new_label_columns:
if column not in new_data.columns:
new_data[column] = 0
return new_data[new_label_columns]
def create_new_label_columns(label_columns: list) -> list:
"""
Extracts names for new label columns for one-hot-encoded data
"""
transformed_label_columns = []
for column in label_columns:
transformed_label_columns.append(column + "_" + "none")
transformed_label_columns.append(column + "_" + "favor")
transformed_label_columns.append(column + "_" + "against")
return transformed_label_columns | classify.py |
# Autor: <NAME>
# Datum: Tue Sep 14 18:01:02 2021
# Python 3.8.8
# Ubuntu 20.04.1
import logging
from typing import Any
import pandas as pd
from sklearn.dummy import DummyClassifier
from sklearn.metrics import f1_score
from sklearn.svm import SVC
logger = logging.getLogger(__name__)
def compute_micro_f1(y_true: Any, y_pred: Any) -> float:
"""
Computes micro F1 for labels. Returns average of F1 scores per label.
F1 scores for each label will be logged.
Parameters
----------
y_true : Any
Array of true class labels.
y_pred : Any
Array of predicted class labels.
Returns
-------
float
Average of micro F1 scores for all labels.
"""
f1_scores_per_label = []
for i in range(y_true.shape[1]):
f1_scores_per_label.append(
f1_score(y_true[:, i], y_pred[:, i], average="micro")
)
logger.info(f"f1 score per label of best classifier: {f1_scores_per_label}")
return sum(f1_scores_per_label) / len(f1_scores_per_label)
def majority_class_baseline(
X_train: pd.DataFrame, y_train: pd.Series
) -> DummyClassifier:
"""
Trains baseline classifier for majority class baseline.
Parameters
----------
X_train : pd.DataFrame
Training data.
y_train : pd.Series
Labels of training data.
Returns
-------
DummyClassifier
Majority baseline classifier.
"""
baseline_classifier = DummyClassifier(strategy="most_frequent")
baseline_classifier.fit(X_train, y_train)
return baseline_classifier
def get_best_classifier(scores: dict) -> SVC:
"""Finds best classifier from cross-validation"""
return scores["estimator"][
list(scores["test_score"]).index(max(scores["test_score"]))
]
def transform_categorical_data(data: Any, label_columns: list) -> pd.DataFrame:
"""
Transforms data from categorical to one-hot encoded data in order
to be processed by Decision tree classifier.
Parameters
----------
data : Any
Data to transform, array or pd.DataFrame.
label_columns : list
List of original column names.
Returns
-------
DataFrame with transformed data
"""
data = pd.DataFrame(data, columns=label_columns)
new_data = pd.get_dummies(data)
new_label_columns = create_new_label_columns(label_columns)
for column in new_label_columns:
if column not in new_data.columns:
new_data[column] = 0
return new_data[new_label_columns]
def create_new_label_columns(label_columns: list) -> list:
"""
Extracts names for new label columns for one-hot-encoded data
"""
transformed_label_columns = []
for column in label_columns:
transformed_label_columns.append(column + "_" + "none")
transformed_label_columns.append(column + "_" + "favor")
transformed_label_columns.append(column + "_" + "against")
return transformed_label_columns | 0.879845 | 0.605362 |
import dace
from copy import deepcopy as dcpy
from dace import data, symbolic, dtypes, subsets
from dace.graph import edges, nodes, nxutil
from dace.transformation import pattern_matching
from math import ceil
import sympy
import networkx as nx
class MapToForLoop(pattern_matching.Transformation):
""" Implements the Map to for-loop transformation.
Takes a map and enforces a sequential schedule by transforming it into
a state-machine of a for-loop. Creates a nested SDFG, if necessary.
"""
_map_entry = nodes.MapEntry(nodes.Map("", [], []))
@staticmethod
def annotates_memlets():
return True
@staticmethod
def expressions():
return [nxutil.node_path_graph(MapToForLoop._map_entry)]
@staticmethod
def can_be_applied(graph, candidate, expr_index, sdfg, strict=False):
# Only uni-dimensional maps are accepted.
map_entry = graph.nodes()[candidate[MapToForLoop._map_entry]]
if len(map_entry.map.params) > 1:
return False
return True
@staticmethod
def match_to_str(graph, candidate):
map_entry = graph.nodes()[candidate[MapToForLoop._map_entry]]
return map_entry.map.label + ': ' + str(map_entry.map.params)
def apply(self, sdfg):
# Retrieve map entry and exit nodes.
graph = sdfg.nodes()[self.state_id]
map_entry = graph.nodes()[self.subgraph[MapToForLoop._map_entry]]
map_exits = graph.exit_nodes(map_entry)
loop_idx = map_entry.map.params[0]
loop_from, loop_to, loop_step = map_entry.map.range[0]
nested_sdfg = dace.SDFG(graph.label + '_' + map_entry.map.label)
# Construct nested SDFG
begin = nested_sdfg.add_state('begin')
guard = nested_sdfg.add_state('guard')
body = nested_sdfg.add_state('body')
end = nested_sdfg.add_state('end')
nested_sdfg.add_edge(
begin,
guard,
edges.InterstateEdge(assignments={str(loop_idx): str(loop_from)}))
nested_sdfg.add_edge(
guard,
body,
edges.InterstateEdge(condition = str(loop_idx) + ' <= ' + \
str(loop_to))
)
nested_sdfg.add_edge(
guard,
end,
edges.InterstateEdge(condition = str(loop_idx) + ' > ' + \
str(loop_to))
)
nested_sdfg.add_edge(
body,
guard,
edges.InterstateEdge(assignments = {str(loop_idx): str(loop_idx) + \
' + ' +str(loop_step)})
)
# Add map contents
map_subgraph = graph.scope_subgraph(map_entry)
for node in map_subgraph.nodes():
if node is not map_entry and node not in map_exits:
body.add_node(node)
for src, src_conn, dst, dst_conn, memlet in map_subgraph.edges():
if src is not map_entry and dst not in map_exits:
body.add_edge(src, src_conn, dst, dst_conn, memlet)
# Reconnect inputs
nested_in_data_nodes = {}
nested_in_connectors = {}
nested_in_memlets = {}
for i, edge in enumerate(graph.in_edges(map_entry)):
src, src_conn, dst, dst_conn, memlet = edge
data_label = '_in_' + memlet.data
memdata = sdfg.arrays[memlet.data]
if isinstance(memdata, data.Array):
data_array = sdfg.add_array(data_label, memdata.dtype, [
symbolic.overapproximate(r)
for r in memlet.bounding_box_size()
])
elif isinstance(memdata, data.Scalar):
data_array = sdfg.add_scalar(data_label, memdata.dtype)
else:
raise NotImplementedError()
data_node = nodes.AccessNode(data_label)
body.add_node(data_node)
nested_in_data_nodes.update({i: data_node})
nested_in_connectors.update({i: data_label})
nested_in_memlets.update({i: memlet})
for _, _, _, _, old_memlet in body.edges():
if old_memlet.data == memlet.data:
old_memlet.data = data_label
#body.add_edge(data_node, None, dst, dst_conn, memlet)
# Reconnect outputs
nested_out_data_nodes = {}
nested_out_connectors = {}
nested_out_memlets = {}
for map_exit in map_exits:
for i, edge in enumerate(graph.out_edges(map_exit)):
src, src_conn, dst, dst_conn, memlet = edge
data_label = '_out_' + memlet.data
memdata = sdfg.arrays[memlet.data]
if isinstance(memdata, data.Array):
data_array = sdfg.add_array(data_label, memdata.dtype, [
symbolic.overapproximate(r)
for r in memlet.bounding_box_size()
])
elif isinstance(memdata, data.Scalar):
data_array = sdfg.add_scalar(data_label, memdata.dtype)
else:
raise NotImplementedError()
data_node = nodes.AccessNode(data_label)
body.add_node(data_node)
nested_out_data_nodes.update({i: data_node})
nested_out_connectors.update({i: data_label})
nested_out_memlets.update({i: memlet})
for _, _, _, _, old_memlet in body.edges():
if old_memlet.data == memlet.data:
old_memlet.data = data_label
#body.add_edge(src, src_conn, data_node, None, memlet)
# Add nested SDFG and reconnect it
nested_node = graph.add_nested_sdfg(
nested_sdfg, sdfg, set(nested_in_connectors.values()),
set(nested_out_connectors.values()))
for i, edge in enumerate(graph.in_edges(map_entry)):
src, src_conn, dst, dst_conn, memlet = edge
graph.add_edge(src, src_conn, nested_node, nested_in_connectors[i],
nested_in_memlets[i])
for map_exit in map_exits:
for i, edge in enumerate(graph.out_edges(map_exit)):
src, src_conn, dst, dst_conn, memlet = edge
graph.add_edge(nested_node, nested_out_connectors[i], dst,
dst_conn, nested_out_memlets[i])
for src, src_conn, dst, dst_conn, memlet in graph.out_edges(map_entry):
i = int(src_conn[4:]) - 1
new_memlet = dcpy(memlet)
new_memlet.data = nested_in_data_nodes[i].data
body.add_edge(nested_in_data_nodes[i], None, dst, dst_conn,
new_memlet)
for map_exit in map_exits:
for src, src_conn, dst, dst_conn, memlet in graph.in_edges(
map_exit):
i = int(dst_conn[3:]) - 1
new_memlet = dcpy(memlet)
new_memlet.data = nested_out_data_nodes[i].data
body.add_edge(src, src_conn, nested_out_data_nodes[i], None,
new_memlet)
for node in map_subgraph:
graph.remove_node(node)
pattern_matching.Transformation.register_pattern(MapToForLoop) | dace/transformation/dataflow/map_for_loop.py | import dace
from copy import deepcopy as dcpy
from dace import data, symbolic, dtypes, subsets
from dace.graph import edges, nodes, nxutil
from dace.transformation import pattern_matching
from math import ceil
import sympy
import networkx as nx
class MapToForLoop(pattern_matching.Transformation):
""" Implements the Map to for-loop transformation.
Takes a map and enforces a sequential schedule by transforming it into
a state-machine of a for-loop. Creates a nested SDFG, if necessary.
"""
_map_entry = nodes.MapEntry(nodes.Map("", [], []))
@staticmethod
def annotates_memlets():
return True
@staticmethod
def expressions():
return [nxutil.node_path_graph(MapToForLoop._map_entry)]
@staticmethod
def can_be_applied(graph, candidate, expr_index, sdfg, strict=False):
# Only uni-dimensional maps are accepted.
map_entry = graph.nodes()[candidate[MapToForLoop._map_entry]]
if len(map_entry.map.params) > 1:
return False
return True
@staticmethod
def match_to_str(graph, candidate):
map_entry = graph.nodes()[candidate[MapToForLoop._map_entry]]
return map_entry.map.label + ': ' + str(map_entry.map.params)
def apply(self, sdfg):
# Retrieve map entry and exit nodes.
graph = sdfg.nodes()[self.state_id]
map_entry = graph.nodes()[self.subgraph[MapToForLoop._map_entry]]
map_exits = graph.exit_nodes(map_entry)
loop_idx = map_entry.map.params[0]
loop_from, loop_to, loop_step = map_entry.map.range[0]
nested_sdfg = dace.SDFG(graph.label + '_' + map_entry.map.label)
# Construct nested SDFG
begin = nested_sdfg.add_state('begin')
guard = nested_sdfg.add_state('guard')
body = nested_sdfg.add_state('body')
end = nested_sdfg.add_state('end')
nested_sdfg.add_edge(
begin,
guard,
edges.InterstateEdge(assignments={str(loop_idx): str(loop_from)}))
nested_sdfg.add_edge(
guard,
body,
edges.InterstateEdge(condition = str(loop_idx) + ' <= ' + \
str(loop_to))
)
nested_sdfg.add_edge(
guard,
end,
edges.InterstateEdge(condition = str(loop_idx) + ' > ' + \
str(loop_to))
)
nested_sdfg.add_edge(
body,
guard,
edges.InterstateEdge(assignments = {str(loop_idx): str(loop_idx) + \
' + ' +str(loop_step)})
)
# Add map contents
map_subgraph = graph.scope_subgraph(map_entry)
for node in map_subgraph.nodes():
if node is not map_entry and node not in map_exits:
body.add_node(node)
for src, src_conn, dst, dst_conn, memlet in map_subgraph.edges():
if src is not map_entry and dst not in map_exits:
body.add_edge(src, src_conn, dst, dst_conn, memlet)
# Reconnect inputs
nested_in_data_nodes = {}
nested_in_connectors = {}
nested_in_memlets = {}
for i, edge in enumerate(graph.in_edges(map_entry)):
src, src_conn, dst, dst_conn, memlet = edge
data_label = '_in_' + memlet.data
memdata = sdfg.arrays[memlet.data]
if isinstance(memdata, data.Array):
data_array = sdfg.add_array(data_label, memdata.dtype, [
symbolic.overapproximate(r)
for r in memlet.bounding_box_size()
])
elif isinstance(memdata, data.Scalar):
data_array = sdfg.add_scalar(data_label, memdata.dtype)
else:
raise NotImplementedError()
data_node = nodes.AccessNode(data_label)
body.add_node(data_node)
nested_in_data_nodes.update({i: data_node})
nested_in_connectors.update({i: data_label})
nested_in_memlets.update({i: memlet})
for _, _, _, _, old_memlet in body.edges():
if old_memlet.data == memlet.data:
old_memlet.data = data_label
#body.add_edge(data_node, None, dst, dst_conn, memlet)
# Reconnect outputs
nested_out_data_nodes = {}
nested_out_connectors = {}
nested_out_memlets = {}
for map_exit in map_exits:
for i, edge in enumerate(graph.out_edges(map_exit)):
src, src_conn, dst, dst_conn, memlet = edge
data_label = '_out_' + memlet.data
memdata = sdfg.arrays[memlet.data]
if isinstance(memdata, data.Array):
data_array = sdfg.add_array(data_label, memdata.dtype, [
symbolic.overapproximate(r)
for r in memlet.bounding_box_size()
])
elif isinstance(memdata, data.Scalar):
data_array = sdfg.add_scalar(data_label, memdata.dtype)
else:
raise NotImplementedError()
data_node = nodes.AccessNode(data_label)
body.add_node(data_node)
nested_out_data_nodes.update({i: data_node})
nested_out_connectors.update({i: data_label})
nested_out_memlets.update({i: memlet})
for _, _, _, _, old_memlet in body.edges():
if old_memlet.data == memlet.data:
old_memlet.data = data_label
#body.add_edge(src, src_conn, data_node, None, memlet)
# Add nested SDFG and reconnect it
nested_node = graph.add_nested_sdfg(
nested_sdfg, sdfg, set(nested_in_connectors.values()),
set(nested_out_connectors.values()))
for i, edge in enumerate(graph.in_edges(map_entry)):
src, src_conn, dst, dst_conn, memlet = edge
graph.add_edge(src, src_conn, nested_node, nested_in_connectors[i],
nested_in_memlets[i])
for map_exit in map_exits:
for i, edge in enumerate(graph.out_edges(map_exit)):
src, src_conn, dst, dst_conn, memlet = edge
graph.add_edge(nested_node, nested_out_connectors[i], dst,
dst_conn, nested_out_memlets[i])
for src, src_conn, dst, dst_conn, memlet in graph.out_edges(map_entry):
i = int(src_conn[4:]) - 1
new_memlet = dcpy(memlet)
new_memlet.data = nested_in_data_nodes[i].data
body.add_edge(nested_in_data_nodes[i], None, dst, dst_conn,
new_memlet)
for map_exit in map_exits:
for src, src_conn, dst, dst_conn, memlet in graph.in_edges(
map_exit):
i = int(dst_conn[3:]) - 1
new_memlet = dcpy(memlet)
new_memlet.data = nested_out_data_nodes[i].data
body.add_edge(src, src_conn, nested_out_data_nodes[i], None,
new_memlet)
for node in map_subgraph:
graph.remove_node(node)
pattern_matching.Transformation.register_pattern(MapToForLoop) | 0.586404 | 0.408985 |
import numpy
import os
from PIL import Image, ImageOps
import random
import tensorflow as tf
class DataSet(object):
def __init__(self, images, labels, dtype=tf.float32):
"""
Construct a DataSet.
`dtype` can be either `uint8` to leave the input as `[0, 255]`,
or `float32` to rescale into `[0, 1]`.
"""
dtype = tf.as_dtype(dtype).base_dtype
if dtype not in (tf.uint8, tf.float32):
raise TypeError('Invalid image dtype %r, expected uint8 or float32' % dtype)
assert images.shape[0] == labels.shape[0], (
'images.shape: %s labels.shape: %s' % (images.shape, labels.shape))
self._num_examples = images.shape[0]
# Convert shape from [num examples, rows, columns, depth]
# to [num examples, rows*columns] (assuming depth == 1)
assert images.shape[3] == 1
# Store the width and height of the images before flattening it, if only for reference.
image_height, image_width = images.shape[1], images.shape[2]
self.original_image_width = image_width
self.original_image_height = image_height
images = images.reshape(images.shape[0], images.shape[1] * images.shape[2])
if dtype == tf.float32:
# Convert from [0, 255] -> [0.0, 1.0]
images = images.astype(numpy.float32)
images = numpy.multiply(images, 1.0 / 255.0)
self._images = images
self._labels = labels
self._epochs_completed = 0
self._index_in_epoch = 0
@property
def images(self):
return self._images
@property
def labels(self):
return self._labels
@property
def num_examples(self):
return self._num_examples
@property
def epochs_completed(self):
return self._epochs_completed
def next_batch(self, batch_size):
"""Return the next `batch_size` examples from this data set."""
start = self._index_in_epoch
self._index_in_epoch += batch_size
if self._index_in_epoch > self._num_examples:
# Finished epoch
self._epochs_completed += 1
# Shuffle the data
perm = numpy.arange(self._num_examples)
numpy.random.shuffle(perm)
self._images = self._images[perm]
self._labels = self._labels[perm]
# Start next epoch
start = 0
self._index_in_epoch = batch_size
assert batch_size <= self._num_examples
end = self._index_in_epoch
return self._images[start:end], self._labels[start:end]
def get_image_info_from_filename(image_filename):
"""
Return num_edges, width, height from the given image_filename.
image_filenames are like: polygon_4_480_640_145696672781244.png
or full paths to a file with a basename of that form.
"""
base_filename = os.path.basename(image_filename) # just the polygon_4_480_640_14....png part
underscore_splits = base_filename.split('_')
__, num_edges, width, height = underscore_splits[:4]
num_edges, width, height = map(int, [num_edges, width, height])
return num_edges, width, height
def is_valid_image_filename(image_filename):
if not image_filename.endswith('.png'):
return False
return True
def get_image_filenames_of_size(width, height, images_dir):
"""
Return a list of filenames in the given directory labelled with the given width and height.
"""
filenames = []
for filename in os.listdir(images_dir):
if not is_valid_image_filename(filename):
continue
num_edges, img_width, img_height = get_image_info_from_filename(filename)
if img_width == width and img_height == height:
filenames.append(os.path.join(images_dir, filename))
return filenames
def extract_images_and_labels(images_dir, width, height, num_labels=10):
"""
Extracts from images in the given directory, of the given dimensions,
into a 4D uint8 numpy array [index, y, x, depth],
and a 2D numpy_array of one_hot labels of shape (num_images, num_labels)
"""
eligible_files = get_image_filenames_of_size(width, height, images_dir=images_dir)
num_images = len(eligible_files)
# Initialize a numpy array to hold all the images, and reshape (only 3D for now)
images_array = numpy.zeros(num_images * width * height, dtype=numpy.uint8)
images_array = images_array.reshape(num_images, height, width)
# Initalize a 1D array for the labels
labels_array = numpy.zeros(num_images * num_labels, dtype=numpy.float32)
labels_array = labels_array.reshape(num_images, num_labels)
print("Extracting %s images and labels from %s/..." % (num_images, images_dir))
# Shuffle the filenames to randomize the order of data.
random.shuffle(eligible_files)
for index, image_filename in enumerate(eligible_files):
# Get info we'll need from the filename itself (we only really need the label)
label, width_in_filename, height_in_filename = get_image_info_from_filename(image_filename)
assert width_in_filename == width
assert height_in_filename == height
# double-withs is a workaround for PIL bug causing ResourceWarning: unclosed file
# described here: https://github.com/python-pillow/Pillow/issues/835
with open(image_filename, 'rb') as img_file:
with Image.open(img_file) as open_pil_img:
pil_image = open_pil_img.convert("L")
pil_image = ImageOps.invert(pil_image)
image_array = numpy.asarray(pil_image, dtype=numpy.uint8)
images_array[index] = image_array
# Now set the one_hot value for this label
labels_array[index][label] = 1
# Reshape to add a depth dimension
images_array = images_array.reshape(num_images, width, height, 1)
return images_array, labels_array
def read_data_sets(collection_directory, dtype=tf.float32):
"""
Return a container DataSets object holding training and test DataSet objects extracted from
images of the given size in /train and /test directiories under collection_dir.
Requires all images be the same shape.
"""
class DataSets(object):
pass
data_sets = DataSets()
assert os.path.isdir(collection_directory)
# Extact the image shape from the directory name, something like images/coll_28_28_1457065046/
width, height = map(int, collection_directory.split('coll_')[1].split('_')[0:2])
# Get our training and testing data sets
train_dir = os.path.join(collection_directory, "train")
test_dir = os.path.join(collection_directory, "test")
train_images, train_labels = extract_images_and_labels(train_dir, width, height)
test_images, test_labels = extract_images_and_labels(test_dir, width, height)
data_sets.train = DataSet(train_images, train_labels, dtype=dtype)
data_sets.test = DataSet(test_images, test_labels, dtype=dtype)
return data_sets | datasets.py | import numpy
import os
from PIL import Image, ImageOps
import random
import tensorflow as tf
class DataSet(object):
def __init__(self, images, labels, dtype=tf.float32):
"""
Construct a DataSet.
`dtype` can be either `uint8` to leave the input as `[0, 255]`,
or `float32` to rescale into `[0, 1]`.
"""
dtype = tf.as_dtype(dtype).base_dtype
if dtype not in (tf.uint8, tf.float32):
raise TypeError('Invalid image dtype %r, expected uint8 or float32' % dtype)
assert images.shape[0] == labels.shape[0], (
'images.shape: %s labels.shape: %s' % (images.shape, labels.shape))
self._num_examples = images.shape[0]
# Convert shape from [num examples, rows, columns, depth]
# to [num examples, rows*columns] (assuming depth == 1)
assert images.shape[3] == 1
# Store the width and height of the images before flattening it, if only for reference.
image_height, image_width = images.shape[1], images.shape[2]
self.original_image_width = image_width
self.original_image_height = image_height
images = images.reshape(images.shape[0], images.shape[1] * images.shape[2])
if dtype == tf.float32:
# Convert from [0, 255] -> [0.0, 1.0]
images = images.astype(numpy.float32)
images = numpy.multiply(images, 1.0 / 255.0)
self._images = images
self._labels = labels
self._epochs_completed = 0
self._index_in_epoch = 0
@property
def images(self):
return self._images
@property
def labels(self):
return self._labels
@property
def num_examples(self):
return self._num_examples
@property
def epochs_completed(self):
return self._epochs_completed
def next_batch(self, batch_size):
"""Return the next `batch_size` examples from this data set."""
start = self._index_in_epoch
self._index_in_epoch += batch_size
if self._index_in_epoch > self._num_examples:
# Finished epoch
self._epochs_completed += 1
# Shuffle the data
perm = numpy.arange(self._num_examples)
numpy.random.shuffle(perm)
self._images = self._images[perm]
self._labels = self._labels[perm]
# Start next epoch
start = 0
self._index_in_epoch = batch_size
assert batch_size <= self._num_examples
end = self._index_in_epoch
return self._images[start:end], self._labels[start:end]
def get_image_info_from_filename(image_filename):
"""
Return num_edges, width, height from the given image_filename.
image_filenames are like: polygon_4_480_640_145696672781244.png
or full paths to a file with a basename of that form.
"""
base_filename = os.path.basename(image_filename) # just the polygon_4_480_640_14....png part
underscore_splits = base_filename.split('_')
__, num_edges, width, height = underscore_splits[:4]
num_edges, width, height = map(int, [num_edges, width, height])
return num_edges, width, height
def is_valid_image_filename(image_filename):
if not image_filename.endswith('.png'):
return False
return True
def get_image_filenames_of_size(width, height, images_dir):
"""
Return a list of filenames in the given directory labelled with the given width and height.
"""
filenames = []
for filename in os.listdir(images_dir):
if not is_valid_image_filename(filename):
continue
num_edges, img_width, img_height = get_image_info_from_filename(filename)
if img_width == width and img_height == height:
filenames.append(os.path.join(images_dir, filename))
return filenames
def extract_images_and_labels(images_dir, width, height, num_labels=10):
"""
Extracts from images in the given directory, of the given dimensions,
into a 4D uint8 numpy array [index, y, x, depth],
and a 2D numpy_array of one_hot labels of shape (num_images, num_labels)
"""
eligible_files = get_image_filenames_of_size(width, height, images_dir=images_dir)
num_images = len(eligible_files)
# Initialize a numpy array to hold all the images, and reshape (only 3D for now)
images_array = numpy.zeros(num_images * width * height, dtype=numpy.uint8)
images_array = images_array.reshape(num_images, height, width)
# Initalize a 1D array for the labels
labels_array = numpy.zeros(num_images * num_labels, dtype=numpy.float32)
labels_array = labels_array.reshape(num_images, num_labels)
print("Extracting %s images and labels from %s/..." % (num_images, images_dir))
# Shuffle the filenames to randomize the order of data.
random.shuffle(eligible_files)
for index, image_filename in enumerate(eligible_files):
# Get info we'll need from the filename itself (we only really need the label)
label, width_in_filename, height_in_filename = get_image_info_from_filename(image_filename)
assert width_in_filename == width
assert height_in_filename == height
# double-withs is a workaround for PIL bug causing ResourceWarning: unclosed file
# described here: https://github.com/python-pillow/Pillow/issues/835
with open(image_filename, 'rb') as img_file:
with Image.open(img_file) as open_pil_img:
pil_image = open_pil_img.convert("L")
pil_image = ImageOps.invert(pil_image)
image_array = numpy.asarray(pil_image, dtype=numpy.uint8)
images_array[index] = image_array
# Now set the one_hot value for this label
labels_array[index][label] = 1
# Reshape to add a depth dimension
images_array = images_array.reshape(num_images, width, height, 1)
return images_array, labels_array
def read_data_sets(collection_directory, dtype=tf.float32):
"""
Return a container DataSets object holding training and test DataSet objects extracted from
images of the given size in /train and /test directiories under collection_dir.
Requires all images be the same shape.
"""
class DataSets(object):
pass
data_sets = DataSets()
assert os.path.isdir(collection_directory)
# Extact the image shape from the directory name, something like images/coll_28_28_1457065046/
width, height = map(int, collection_directory.split('coll_')[1].split('_')[0:2])
# Get our training and testing data sets
train_dir = os.path.join(collection_directory, "train")
test_dir = os.path.join(collection_directory, "test")
train_images, train_labels = extract_images_and_labels(train_dir, width, height)
test_images, test_labels = extract_images_and_labels(test_dir, width, height)
data_sets.train = DataSet(train_images, train_labels, dtype=dtype)
data_sets.test = DataSet(test_images, test_labels, dtype=dtype)
return data_sets | 0.846038 | 0.660515 |
import logging
import os.path
import pickle
import numpy as np
import scipy.constants
import scipy.signal
from pyrex.internal_functions import (normalize, complex_bilinear_interp,
complex_interp)
from pyrex.signals import Signal, FunctionSignal
from pyrex.antenna import Antenna
from pyrex.detector import AntennaSystem
logger = logging.getLogger(__name__)
def _read_arasim_antenna_data(filename):
"""
Gather antenna directionality data from an AraSim-formatted data file.
The data file should have columns for theta, phi, dB gain, non-dB gain, and
phase (in degrees). This should be divided into sections for each frequency
with a header line "freq : X MHz", optionally followed by a second line
"SWR : Y".
Parameters
----------
filename : str
Name of the data file.
Returns
-------
response : ndarray
3-D array of complex-valued voltage gains as a function of frequency
along axis 0, zenith along axis 1, and azimuth along axis 2.
frequencies : ndarray
Frequencies (Hz) corresponding to axis 0 of `response`.
thetas : ndarray
Zenith angles (degrees) corresponding to axis 1 of `response`.
phis : ndarray
Azimuth angles (degrees) corresponding to axis 2 of `response`.
"""
data = {}
freqs = set()
thetas = set()
phis = set()
freq = 0
with open(filename) as f:
for line in f:
words = line.split()
if line.startswith('freq'):
freq = 1
if words[-1]=="Hz":
pass
elif words[-1]=="kHz":
freq *= 1e3
elif words[-1]=="MHz":
freq *= 1e6
elif words[-1]=="GHz":
freq *= 1e9
else:
raise ValueError("Cannot parse line: '"+line+"'")
freq *= float(words[-2])
freqs.add(freq)
elif line.startswith('SWR'):
swr = float(words[-1])
elif len(words)==5 and words[0]!="Theta":
theta = int(words[0])
thetas.add(theta)
phi = int(words[1])
phis.add(phi)
db_gain = float(words[2])
# AraSim actually only seems to use the sqrt of the gain
# (must be gain in power, not voltage)
# gain = np.sqrt(float(words[3]))
gain = np.sqrt(10**(db_gain/10))
phase = np.radians(float(words[4]))
data[(freq, theta, phi)] = (gain, phase)
# Convert data dictionary into 3-D array of responses
response = np.empty((len(freqs), len(thetas), len(phis)),
dtype=np.complex_)
for i, freq in enumerate(sorted(freqs)):
for j, theta in enumerate(sorted(thetas)):
for k, phi in enumerate(sorted(phis)):
gain, phase = data[(freq, theta, phi)]
response[i, j, k] = gain * np.exp(1j*phase)
response_data = (response, np.array(sorted(freqs)),
np.array(sorted(thetas)), np.array(sorted(phis)))
return _fix_response_wrapping(response_data)
# If the antenna responses don't go all the way to phi=360, add the extra
# column for the sake of the interpolators
def _fix_response_wrapping(response_data):
"""
Add phi=360 degrees column to antenna response data.
The interpolators require that the full azimuth range of the antennas is
described, so this function duplicates the phi=0 column of the antenna
response into a phi=360 column, as long as it matches with the rest of
the phi spacings.
Parameters
----------
response_data : tuple of ndarray
Tuple containing the response data for the antenna. The first element
should contain a 3-D array of the antenna response model as a function
of frequency (axis 0), zenith (axis 1), and azimuth (axis 2). The
remaining elements should be the values of the frequency, zenith, and
azimuth axes, respectively.
Returns
-------
response : ndarray
Corrected 3-D array of antenna response values, including the phi=360
degree column if possible.
frequencies : ndarray
Frequencies (Hz) corresponding to axis 0 of `response`.
thetas : ndarray
Zenith angles (degrees) corresponding to axis 1 of `response`.
phis : ndarray
Azimuth angles (degrees) corresponding to axis 2 of `response`.
"""
response, freqs, thetas, phis = response_data
if phis[-1]==360:
return response_data
if phis[0]==0 and phis[-1]==360-phis[1]:
phis = np.concatenate((phis, [360]))
response = np.concatenate((response, response[:, :, 0:1]), axis=2)
return response, freqs, thetas, phis
def _read_arasim_antenna_pickle(filename):
"""
Gather antenna directional response data from a pickled data file.
The data file should be a pickled file containing the antenna directional
response data from an AraSim-formatted data file as returned by the
`_read_arasim_antenna_data` function.
Parameters
----------
filename : str
Name of the data file without the ``.pkl`` extension.
Returns
-------
response : ndarray
3-D array of complex-valued voltage gains as a function of frequency
along axis 0, zenith along axis 1, and azimuth along axis 2.
frequencies : ndarray
Frequencies (Hz) corresponding to axis 0 of `response`.
thetas : ndarray
Zenith angles (degrees) corresponding to axis 1 of `response`.
phis : ndarray
Azimuth angles (degrees) corresponding to axis 2 of `response`.
See Also
--------
_read_arasim_antenna_data : Gather antenna directionality data from an
AraSim-formatted data file.
"""
# Quick fix for filenames with one of the approved extensions already
# (just strip it)
if filename.endswith(".txt") or filename.endswith(".pkl"):
filename = filename[:-4]
# If there is no pickle file, read the response data using the
# _read_arasim_antenna_data function, and then make a pickle file
if not os.path.isfile(filename+".pkl"):
logger.warning("Antenna model file %s.pkl not found. "+
"Generating a new file now", filename)
response_data = _read_arasim_antenna_data(filename+".txt")
with open(filename+".pkl", 'wb') as f:
pickle.dump(response_data, f)
return response_data
# Otherwise, read from the pickle file
else:
with open(filename+".pkl", 'rb') as f:
return pickle.load(f)
def _read_filter_data(filename):
"""
Gather frequency-dependent filtering data from a data file.
The data file should have columns for frequency, non-dB gain, and phase
(in radians).
Parameters
----------
filename : str
Name of the data file.
Returns
-------
gains : ndarray
Complex-valued voltage gains as a function of frequency.
frequencies : ndarray
Frequencies (Hz) corresponding to the values of `gains`.
"""
gains = []
freqs = []
freq_scale = 0
with open(filename) as f:
for line in f:
words = line.split()
if line.startswith('Freq'):
_, scale = words[0].split("(")
scale = scale.rstrip(")")
if scale=="Hz":
freq_scale = 1
elif scale=="kHz":
freq_scale = 1e3
elif scale=="MHz":
freq_scale = 1e6
elif scale=="GHz":
freq_scale = 1e9
else:
raise ValueError("Cannot parse line: '"+line+"'")
elif len(words)==3 and words[0]!="Total":
f, g, p = line.split(",")
freq = float(f) * freq_scale
gain = float(g)
phase = float(p)
freqs.append(freq)
gains.append(gain * np.exp(1j*phase))
return np.array(gains), np.array(freqs)
ARA_DATA_DIR = os.path.join(os.path.dirname(__file__), "data")
VPOL_DATA_FILE = os.path.join(ARA_DATA_DIR,
"Vpol_original_CrossFeed_150mmHole_Ice_ARASim.txt")
HPOL_DATA_FILE = os.path.join(ARA_DATA_DIR,
"Hpol_original_150mmHole_Ice_ARASim.txt")
FILT_DATA_FILE = os.path.join(ARA_DATA_DIR,
"ARA_Electronics_TotalGain_TwoFilters.txt")
# Vpol data file contains only the theta responses
VPOL_THETA_RESPONSE_DATA = _read_arasim_antenna_pickle(VPOL_DATA_FILE)
VPOL_RESPONSE_DATA = (
VPOL_THETA_RESPONSE_DATA[0],
np.zeros(VPOL_THETA_RESPONSE_DATA[0].shape),
*VPOL_THETA_RESPONSE_DATA[1:]
)
# Hpol data file contains only the phi responses
HPOL_PHI_RESPONSE_DATA = _read_arasim_antenna_pickle(HPOL_DATA_FILE)
HPOL_RESPONSE_DATA = (
np.zeros(HPOL_PHI_RESPONSE_DATA[0].shape),
*HPOL_PHI_RESPONSE_DATA
)
ALL_FILTERS_DATA = _read_filter_data(FILT_DATA_FILE)
class ARAAntenna(Antenna):
"""
Antenna class to be used for ARA antennas.
Stores the attributes of an antenna as well as handling receiving,
processing, and storing signals and adding noise. Antenna response based on
provided models.
Parameters
----------
response_data : tuple of array_like
Tuple containing the response data for the antenna along the theta
and phi polarization directions. The first and second elements should
contain 3-D arrays of the antenna response model in the theta and phi
polarizations, respectively, as a function of frequency (axis 0),
zenith (axis 1), and azimuth (axis 2). The remaining elements should be
the values of the frequency, zenith, and azimuth axes, respectively.
position : array_like
Vector position of the antenna.
center_frequency : float
Frequency (Hz) at the center of the antenna's frequency range.
bandwidth : float
Bandwidth (Hz) of the antenna.
temperature : float
The noise temperature (K) of the antenna. Used in combination with
`resistance` to calculate the RMS voltage of the antenna noise.
resistance : float
The noise resistance (ohm) of the antenna. Used in combination with
`temperature` to calculate the RMS voltage of the antenna noise.
orientation : array_like, optional
Vector direction of the z-axis of the antenna.
efficiency : float, optional
Antenna efficiency applied to incoming signal values.
noisy : boolean, optional
Whether or not the antenna should add noise to incoming signals.
unique_noise_waveforms : int, optional
The number of expected noise waveforms needed for each received signal
to have its own noise.
Attributes
----------
position : array_like
Vector position of the antenna.
z_axis : ndarray
Vector direction of the z-axis of the antenna.
x_axis : ndarray
Vector direction of the x-axis of the antenna.
antenna_factor : float
Antenna factor used for converting fields to voltages.
efficiency : float
Antenna efficiency applied to incoming signal values.
noisy : boolean
Whether or not the antenna should add noise to incoming signals.
unique_noises : int
The number of expected noise waveforms needed for each received signal
to have its own noise.
freq_range : array_like
The frequency band in which the antenna operates (used for noise
production).
temperature : float or None
The noise temperature (K) of the antenna. Used in combination with
`resistance` to calculate the RMS voltage of the antenna noise.
resistance : float or None
The noise resistance (ohm) of the antenna. Used in combination with
`temperature` to calculate the RMS voltage of the antenna noise.
noise_rms : float or None
The RMS voltage (V) of the antenna noise. If not ``None``, this value
will be used instead of the RMS voltage calculated from the values of
`temperature` and `resistance`.
signals : list of Signal
The signals which have been received by the antenna.
is_hit
is_hit_mc_truth
waveforms
all_waveforms
See Also
--------
pyrex.Antenna : Base class for antennas.
"""
def __init__(self, response_data, position, center_frequency, bandwidth,
temperature, resistance, orientation=(0,0,1), efficiency=1,
noisy=True, unique_noise_waveforms=10):
# Parse the response data
self._theta_response = response_data[0]
self._phi_response = response_data[1]
self._response_freqs = response_data[2]
self._response_zens = response_data[3]
self._response_azis = response_data[4]
# Get the critical frequencies in Hz
f_low = center_frequency - bandwidth/2
f_high = center_frequency + bandwidth/2
# Get arbitrary x-axis orthogonal to orientation
tmp_vector = np.zeros(3)
while np.array_equal(np.cross(orientation, tmp_vector), (0,0,0)):
tmp_vector = np.random.rand(3)
ortho = np.cross(orientation, tmp_vector)
# Note: ortho is not normalized, but will be normalized by Antenna's init
super().__init__(position=position, z_axis=orientation, x_axis=ortho,
efficiency=efficiency, freq_range=(f_low, f_high),
temperature=temperature, resistance=resistance,
noisy=noisy,
unique_noise_waveforms=unique_noise_waveforms)
def directional_gain(self, theta, phi):
raise NotImplementedError("Directional gain is not defined for "+
self.__class__.__name__+". Use the "+
"directional_response method instead.")
def polarization_gain(self, polarization):
raise NotImplementedError("Polarization gain is not defined for "+
self.__class__.__name__+". Use the "+
"directional_response method instead.")
def directional_response(self, theta, phi, polarization):
"""
Generate the (complex) frequency-dependent directional response.
For given angles and polarization direction, use the model of the
directional and polarization gains of the antenna to generate a
function for the interpolated response of the antenna with respect to
frequency. Used with the `frequency_response` method to calculate
effective heights.
Parameters
----------
theta : float
Polar angle (radians) from which a signal is arriving.
phi : float
Azimuthal angle (radians) from which a signal is arriving.
polarization : array_like
Normalized polarization vector in the antenna coordinate system.
Returns
-------
function
A function which returns complex-valued voltage gains for given
frequencies, using the values of incoming angle and polarization.
See Also
--------
ARAAntenna.frequency_response : Calculate the (complex) frequency
response of the antenna.
"""
e_theta = [np.cos(theta) * np.cos(phi),
np.cos(theta) * np.sin(phi),
-np.sin(theta)]
e_phi = [-np.sin(phi), np.cos(phi), 0]
theta_factor = np.dot(polarization, e_theta)
phi_factor = np.dot(polarization, e_phi)
theta_gains = complex_bilinear_interp(
x=np.degrees(theta), y=np.degrees(phi),
xp=self._response_zens,
yp=self._response_azis,
fp=self._theta_response,
method='cartesian'
)
phi_gains = complex_bilinear_interp(
x=np.degrees(theta), y=np.degrees(phi),
xp=self._response_zens,
yp=self._response_azis,
fp=self._phi_response,
method='cartesian'
)
freq_interpolator = lambda frequencies: complex_interp(
x=frequencies, xp=self._response_freqs,
fp=theta_factor*theta_gains + phi_factor*phi_gains,
method='euler', outer=0
)
return freq_interpolator
def frequency_response(self, frequencies):
"""
Calculate the (complex) frequency response of the antenna.
Rather than handling the entire frequency response of the antenna, this
method is being used to convert the frequency-dependent gains from the
`directional_response` method into effective heights.
Parameters
----------
frequencies : array_like
1D array of frequencies (Hz) at which to calculate gains.
Returns
-------
array_like
Complex gains in voltage for the given `frequencies`.
See Also
--------
ARAAntenna.directional_response : Generate the (complex) frequency
dependent directional response.
"""
# From AraSim GaintoHeight function, with gain calculation moved to
# the directional_response method.
# gain=4*pi*A_eff/lambda^2 and h_eff=2*sqrt(A_eff*Z_rx/Z_air)
# Then 0.5 to calculate power with heff (cancels 2 above)
heff = np.zeros(len(frequencies))
# The index of refraction in this calculation should be the index of
# the ice used in the production of the antenna model.
n = 1.78
heff[frequencies!=0] = np.sqrt((scipy.constants.c
/frequencies[frequencies!=0]/n)**2
* n*50/377 /(4*np.pi))
return heff
def apply_response(self, signal, direction=None, polarization=None,
force_real=True):
"""
Process the complete antenna response for an incoming signal.
Processes the incoming signal according to the frequency response of
the antenna, the efficiency, and the antenna factor. May also apply the
directionality and the polarization gain depending on the provided
parameters. Subclasses may wish to overwrite this function if the
full antenna response cannot be divided nicely into the described
pieces.
Parameters
----------
signal : Signal
Incoming ``Signal`` object to process.
direction : array_like, optional
Vector denoting the direction of travel of the signal as it reaches
the antenna (in the global coordinate frame). If ``None`` no
directional response will be applied.
polarization : array_like, optional
Vector denoting the signal's polarization direction (in the global
coordinate frame). If ``None`` no polarization gain will be applied.
force_real : boolean, optional
Whether or not the frequency response should be redefined in the
negative-frequency domain to keep the values of the filtered signal
real.
Returns
-------
Signal
Processed ``Signal`` object after the complete antenna response has
been applied. Should have a ``value_type`` of ``voltage``.
Raises
------
ValueError
If the given `signal` does not have a ``value_type`` of ``voltage``
or ``field``.
See Also
--------
pyrex.Signal : Base class for time-domain signals.
"""
new_signal = signal.copy()
new_signal.value_type = Signal.Type.voltage
freq_response = self.frequency_response
if direction is not None and polarization is not None:
# Calculate theta and phi relative to the orientation
origin = self.position - normalize(direction)
r, theta, phi = self._convert_to_antenna_coordinates(origin)
# Calculate polarization vector in the antenna coordinates
y_axis = np.cross(self.z_axis, self.x_axis)
transformation = np.array([self.x_axis, y_axis, self.z_axis])
ant_pol = np.dot(transformation, normalize(polarization))
# Calculate directional response as a function of frequency
directive_response = self.directional_response(theta, phi, ant_pol)
freq_response = lambda f: (self.frequency_response(f)
* directive_response(f))
elif (direction is not None and polarization is None
or direction is None and polarization is not None):
raise ValueError("Direction and polarization must be specified together")
# Apply (combined) frequency response
new_signal.filter_frequencies(freq_response, force_real=force_real)
signal_factor = self.efficiency
if signal.value_type==Signal.Type.voltage:
pass
elif signal.value_type==Signal.Type.field:
signal_factor /= self.antenna_factor
else:
raise ValueError("Signal's value type must be either "
+"voltage or field. Given "+str(signal.value_type))
new_signal *= signal_factor
return new_signal
# Redefine receive method to use force_real as True by default
def receive(self, signal, direction=None, polarization=None,
force_real=True):
"""
Process and store one or more incoming (polarized) signals.
Processes the incoming signal(s) according to the ``apply_response``
method, then stores the total processed signal to the signals list. If
more than one signal is given, they should be logically connected as
separately polarized portions of the same signal.
Parameters
----------
signal : Signal or array_like
Incoming ``Signal`` object(s) to process and store. May be separate
polarization representations, but therefore should have the same
times.
direction : array_like, optional
Vector denoting the direction of travel of the signal(s) as they
reach the antenna (in the global coordinate frame). If ``None`` no
directional gain will be applied.
polarization : array_like, optional
Vector(s) denoting the signal's polarization direction (in the
global coordinate frame). Number of vectors should match the number
of elements in `signal` argument. If ``None`` no polarization gain
will be applied.
force_real : boolean, optional
Whether or not the frequency response should be redefined in the
negative-frequency domain to keep the values of the filtered signal
real.
Raises
------
ValueError
If the number of polarizations does not match the number of signals.
Or if the signals do not have the same `times` array.
See Also
--------
pyrex.Signal : Base class for time-domain signals.
"""
super().receive(signal=signal, direction=direction,
polarization=polarization,
force_real=force_real)
class ARAAntennaSystem(AntennaSystem):
"""
Antenna system extending base ARA antenna with front-end processing.
Applies as the front end a filter representing the full ARA electronics
chain (including amplification) and signal clipping. Additionally provides
a method for passing a signal through the tunnel diode.
Parameters
----------
response_data : tuple of array_like
Tuple containing the response data for the antenna along the theta
and phi polarization directions. The first and second elements should
contain 3-D arrays of the antenna response model in the theta and phi
polarizations, respectively, as a function of frequency (axis 0),
zenith (axis 1), and azimuth (axis 2). The remaining elements should be
the values of the frequency, zenith, and azimuth axes, respectively.
name : str
Name of the antenna.
position : array_like
Vector position of the antenna.
power_threshold : float
Power threshold for trigger condition. Antenna triggers if a signal
passed through the tunnel diode exceeds this threshold times the noise
RMS of the tunnel diode.
orientation : array_like, optional
Vector direction of the z-axis of the antenna.
amplification : float, optional
Amplification to be applied to the signal pre-clipping. Note that the
usual ARA electronics amplification is already applied without this.
amplifier_clipping : float, optional
Voltage (V) above which the amplified signal is clipped (in positive
and negative values).
noisy : boolean, optional
Whether or not the antenna should add noise to incoming signals.
unique_noise_waveforms : int, optional
The number of expected noise waveforms needed for each received signal
to have its own noise.
Attributes
----------
antenna : Antenna
``Antenna`` object extended by the front end.
name : str
Name of the antenna.
position : array_like
Vector position of the antenna.
power_threshold : float
Power threshold for trigger condition. Antenna triggers if a signal
passed through the tunnel diode exceeds this threshold times the noise
RMS of the tunnel diode.
amplification : float
Amplification to be applied to the signal pre-clipping. Note that the
usual ARA electronics amplification is already applied without this.
amplifier_clipping : float
Voltage (V) above which the amplified signal is clipped (in positive
and negative values).
lead_in_time : float
Lead-in time (s) required for the front end to equilibrate.
Automatically added in before calculation of signals and waveforms.
is_hit
is_hit_mc_truth
signals
waveforms
all_waveforms
See Also
--------
pyrex.AntennaSystem : Base class for antenna system with front-end
processing.
ARAAntenna : Antenna class to be used for ARA antennas.
"""
lead_in_time = 5e-9
def __init__(self, response_data, name, position, power_threshold,
orientation=(0,0,1), amplification=1, amplifier_clipping=1,
noisy=True, unique_noise_waveforms=10,
**kwargs):
super().__init__(ARAAntenna)
self.name = str(name)
self.position = position
self.amplification = amplification
self.amplifier_clipping = amplifier_clipping
self.setup_antenna(response_data=response_data,
orientation=orientation, noisy=noisy,
unique_noise_waveforms=unique_noise_waveforms,
**kwargs)
self.power_threshold = power_threshold
self._power_mean = None
self._power_std = None
self._filter_response = ALL_FILTERS_DATA[0]
self._filter_freqs = ALL_FILTERS_DATA[1]
@property
def _metadata(self):
"""Metadata dictionary for writing `ARAAntennaSystem` information."""
meta = super()._metadata
meta.update({
"name": self.name,
"lead_in_time": self.lead_in_time,
"amplification": self.amplification,
"amplifier_clipping": self.amplifier_clipping,
"power_threshold": self.power_threshold,
})
return meta
def setup_antenna(self, response_data, center_frequency=500e6,
bandwidth=800e6, temperature=325, resistance=50,
orientation=(0,0,1), efficiency=1, noisy=True,
unique_noise_waveforms=10, **kwargs):
"""
Setup the antenna by passing along its init arguments.
Any arguments passed to this method are directly passed to the
``__init__`` methods of the ``antenna``'s class.
Parameters
----------
response_data : tuple of array_like
Tuple containing the response data for the antenna along the theta
and phi polarization directions. The first and second elements
should contain 3-D arrays of the antenna response model in the
theta and phi polarizations, respectively, as a function of
frequency (axis 0), zenith (axis 1), and azimuth (axis 2). The
remaining elements should be the values of the frequency, zenith,
and azimuth axes, respectively.
center_frequency : float, optional
Frequency (Hz) at the center of the antenna's frequency range.
bandwidth : float, optional
Bandwidth (Hz) of the antenna.
temperature : float, optional
The noise temperature (K) of the antenna. Used in combination with
`resistance` to calculate the RMS voltage of the antenna noise.
resistance : float, optional
The noise resistance (ohm) of the antenna. Used in combination with
`temperature` to calculate the RMS voltage of the antenna noise.
orientation : array_like, optional
Vector direction of the z-axis of the antenna.
efficiency : float, optional
Antenna efficiency applied to incoming signal values.
noisy : boolean, optional
Whether or not the antenna should add noise to incoming signals.
unique_noise_waveforms : int, optional
The number of expected noise waveforms needed for each received
signal to have its own noise.
"""
# Noise rms should be about 40 mV (after filtering with gain of ~5000).
# This is mostly satisfied by using the default noise temperature from
# AraSim, 325 K, along with a 50 ohm resistance
# Additionally, the bandwidth of the antenna is set slightly larger
# than the nominal bandwidth of the true ARA antenna system (700 MHz),
# but the extra frequencies should be killed by the front-end filter
super().setup_antenna(response_data=response_data,
position=self.position,
center_frequency=center_frequency,
bandwidth=bandwidth,
temperature=temperature,
resistance=resistance,
orientation=orientation,
efficiency=efficiency,
noisy=noisy,
unique_noise_waveforms=unique_noise_waveforms,
**kwargs)
# Tunnel diode response functions pulled from arasim
_td_args = {
'down1': (-0.8, 15e-9, 2.3e-9, 0),
'down2': (-0.2, 15e-9, 4e-9, 0),
'up': (1, 18e-9, 7e-9, 1e9)
}
# Set td_args['up'][0] based on the other args, like in arasim
_td_args['up'] = (-np.sqrt(2*np.pi) *
(_td_args['down1'][0]*_td_args['down1'][2] +
_td_args['down2'][0]*_td_args['down2'][2]) /
(2e18*_td_args['up'][2]**3),) + _td_args['up'][1:]
# Set "down" and "up" functions as in arasim
@classmethod
def _td_fdown1(cls, x):
return (cls._td_args['down1'][3] + cls._td_args['down1'][0] *
np.exp(-(x-cls._td_args['down1'][1])**2 /
(2*cls._td_args['down1'][2]**2)))
@classmethod
def _td_fdown2(cls, x):
return (cls._td_args['down2'][3] + cls._td_args['down2'][0] *
np.exp(-(x-cls._td_args['down2'][1])**2 /
(2*cls._td_args['down2'][2]**2)))
@classmethod
def _td_fup(cls, x):
return (cls._td_args['up'][0] *
(cls._td_args['up'][3] * (x-cls._td_args['up'][1]))**2 *
np.exp(-(x-cls._td_args['up'][1])/cls._td_args['up'][2]))
def tunnel_diode(self, signal):
"""
Calculate a signal as processed by the tunnel diode.
The given signal is convolved with the tunnel diode response as in
AraSim.
Parameters
----------
signal : Signal
Signal to be processed by the tunnel diode.
Returns
-------
Signal
Signal output of the tunnel diode for the input `signal`.
Raises
------
ValueError
If the input `signal` doesn't have a ``value_type`` of ``voltage``.
Notes
-----
The tunnel diode response is based on the response parameterized in
AraSim, as developed by ANITA [1]_.
References
----------
.. [1] <NAME> & <NAME>, ANITA Note #411, "A Power-Based Time
Domain Trigger Simulation."
https://elog.phys.hawaii.edu/elog/anita_notes/080827_041639/powertrigger.pdf
"""
if signal.value_type!=Signal.Type.voltage:
raise ValueError("Tunnel diode only accepts voltage signals")
t_max = 1e-7
n_pts = int(t_max/signal.dt)
times = np.linspace(0, t_max, n_pts+1)
diode_resp = self._td_fdown1(times) + self._td_fdown2(times)
t_slice = times>self._td_args['up'][1]
diode_resp[t_slice] += self._td_fup(times[t_slice])
conv = scipy.signal.convolve(signal.values**2 / self.antenna.resistance,
diode_resp, mode='full')
# Signal class will automatically only take the first part of conv,
# which is what we want.
# conv multiplied by dt so that the amplitude stays constant for
# varying dts (determined empirically, see ARZAskaryanSignal comments)
output = Signal(signal.times, conv*signal.dt,
value_type=Signal.Type.power)
return output
def interpolate_filter(self, frequencies):
"""
Generate interpolated filter values for given frequencies.
Calculate the interpolated values of the antenna system's filter gain
data for some frequencies.
Parameters
----------
frequencies : array_like
1D array of frequencies (Hz) at which to calculate gains.
Returns
-------
array_like
Complex filter gain in voltage for the given `frequencies`.
"""
return complex_interp(
x=frequencies, xp=self._filter_freqs, fp=self._filter_response,
method='euler', outer=0
)
def front_end(self, signal):
"""
Apply front-end processes to a signal and return the output.
The front-end consists of the full ARA electronics chain (including
amplification) and signal clipping.
Parameters
----------
signal : Signal
``Signal`` object on which to apply the front-end processes.
Returns
-------
Signal
Signal processed by the antenna front end.
"""
base_signal = signal.copy()
base_signal.filter_frequencies(self.interpolate_filter,
force_real=True)
# Apply sqrt(2) for 3dB splitter for TURF, SURF
base_signal *= self.amplification / np.sqrt(2)
clip_values = lambda times: np.clip(
base_signal.with_times(times).values,
a_min=-self.amplifier_clipping,
a_max=self.amplifier_clipping
)
return FunctionSignal(signal.times, clip_values,
value_type=signal.value_type)
def trigger(self, signal):
"""
Check if the antenna system triggers on a given signal.
Passes the signal through the tunnel diode. Then compares the maximum
and minimum values to a tunnel diode noise signal. Triggers if one of
the maximum or minimum values exceed the noise mean +/- the noise rms
times the power threshold.
Parameters
----------
signal : Signal
``Signal`` object on which to test the trigger condition.
Returns
-------
boolean
Whether or not the antenna triggers on `signal`.
"""
if self._power_mean is None or self._power_std is None:
# Prepare for antenna trigger by finding mean and standard
# deviation of the full noise waveform convolved with the tunnel
# diode response
if len(self.antenna.signals)>0:
times = self.antenna.signals[0].times
else:
times = signal.times
n = len(times)
dt = times[1]-times[0]
duration = times[-1]-times[0] + dt
full_times = np.linspace(0, duration*self.antenna.unique_noises,
n*self.antenna.unique_noises)
if self.antenna._noise_master is None:
# Make sure the noise_master has the appropriate length
# (automatically gets set to N*len(times) the first time it is
# called, so make sure the first `times` is not the expanded
# array but the single-signal array)
self.antenna.make_noise(times)
long_noise = self.antenna.make_noise(full_times)
power_noise = self.tunnel_diode(self.front_end(long_noise))
self._power_mean = np.mean(power_noise.values)
self._power_std = np.std(power_noise.values)
power_signal = self.tunnel_diode(signal)
# Use the absolute value of the power_threshold value so that the value
# can be specified as positive or negative (compatible with AraSim
# which only works with negative values, resulting in some confusion)
low_trigger = (self._power_mean -
self._power_std*np.abs(self.power_threshold))
return np.min(power_signal.values)<low_trigger
# Redefine receive method to use force_real as True by default
def receive(self, signal, direction=None, polarization=None,
force_real=True):
"""
Process and store one or more incoming (polarized) signals.
Processes the incoming signal(s) according to the ``apply_response``
method, then stores the total processed signal to the signals list. If
more than one signal is given, they should be logically connected as
separately polarized portions of the same signal.
Parameters
----------
signal : Signal or array_like
Incoming ``Signal`` object(s) to process and store. May be separate
polarization representations, but therefore should have the same
times.
direction : array_like, optional
Vector denoting the direction of travel of the signal(s) as they
reach the antenna (in the global coordinate frame). If ``None`` no
directional gain will be applied.
polarization : array_like, optional
Vector(s) denoting the signal's polarization direction (in the
global coordinate frame). Number of vectors should match the number
of elements in `signal` argument. If ``None`` no polarization gain
will be applied.
force_real : boolean, optional
Whether or not the frequency response should be redefined in the
negative-frequency domain to keep the values of the filtered signal
real.
Raises
------
ValueError
If the number of polarizations does not match the number of signals.
Or if the signals do not have the same `times` array.
See Also
--------
pyrex.Signal : Base class for time-domain signals.
"""
super().receive(signal=signal, direction=direction,
polarization=polarization,
force_real=force_real)
class HpolAntenna(ARAAntennaSystem):
"""
ARA Hpol ("quad-slot") antenna system with front-end processing.
Applies as the front end a filter representing the full ARA electronics
chain (including amplification) and signal clipping. Additionally provides
a method for passing a signal through the tunnel diode.
Parameters
----------
name : str
Name of the antenna.
position : array_like
Vector position of the antenna.
power_threshold : float
Power threshold for trigger condition. Antenna triggers if a signal
passed through the tunnel diode exceeds this threshold times the noise
RMS of the tunnel diode.
amplification : float, optional
Amplification to be applied to the signal pre-clipping. Note that the
usual ARA electronics amplification is already applied without this.
amplifier_clipping : float, optional
Voltage (V) above which the amplified signal is clipped (in positive
and negative values).
noisy : boolean, optional
Whether or not the antenna should add noise to incoming signals.
unique_noise_waveforms : int, optional
The number of expected noise waveforms needed for each received signal
to have its own noise.
Attributes
----------
antenna : Antenna
``Antenna`` object extended by the front end.
name : str
Name of the antenna.
position : array_like
Vector position of the antenna.
power_threshold : float
Power threshold for trigger condition. Antenna triggers if a signal
passed through the tunnel diode exceeds this threshold times the noise
RMS of the tunnel diode.
amplification : float
Amplification to be applied to the signal pre-clipping. Note that the
usual ARA electronics amplification is already applied without this.
amplifier_clipping : float
Voltage (V) above which the amplified signal is clipped (in positive
and negative values).
is_hit
is_hit_mc_truth
signals
waveforms
all_waveforms
See Also
--------
ARAAntennaSystem : Antenna system extending base ARA antenna with front-end
processing.
"""
def __init__(self, name, position, power_threshold,
amplification=1, amplifier_clipping=1, noisy=True,
unique_noise_waveforms=10):
super().__init__(response_data=HPOL_RESPONSE_DATA,
name=name, position=position,
power_threshold=power_threshold,
orientation=(0,0,1),
amplification=amplification,
amplifier_clipping=amplifier_clipping,
noisy=noisy,
unique_noise_waveforms=unique_noise_waveforms)
class VpolAntenna(ARAAntennaSystem):
"""
ARA Vpol ("bicone" or "birdcage") antenna system with front-end processing.
Applies as the front end a filter representing the full ARA electronics
chain (including amplification) and signal clipping. Additionally provides
a method for passing a signal through the tunnel diode.
Parameters
----------
name : str
Name of the antenna.
position : array_like
Vector position of the antenna.
power_threshold : float
Power threshold for trigger condition. Antenna triggers if a signal
passed through the tunnel diode exceeds this threshold times the noise
RMS of the tunnel diode.
amplification : float, optional
Amplification to be applied to the signal pre-clipping. Note that the
usual ARA electronics amplification is already applied without this.
amplifier_clipping : float, optional
Voltage (V) above which the amplified signal is clipped (in positive
and negative values).
noisy : boolean, optional
Whether or not the antenna should add noise to incoming signals.
unique_noise_waveforms : int, optional
The number of expected noise waveforms needed for each received signal
to have its own noise.
Attributes
----------
antenna : Antenna
``Antenna`` object extended by the front end.
name : str
Name of the antenna.
position : array_like
Vector position of the antenna.
power_threshold : float
Power threshold for trigger condition. Antenna triggers if a signal
passed through the tunnel diode exceeds this threshold times the noise
RMS of the tunnel diode.
amplification : float
Amplification to be applied to the signal pre-clipping. Note that the
usual ARA electronics amplification is already applied without this.
amplifier_clipping : float
Voltage (V) above which the amplified signal is clipped (in positive
and negative values).
is_hit
is_hit_mc_truth
signals
waveforms
all_waveforms
See Also
--------
ARAAntennaSystem : Antenna system extending base ARA antenna with front-end
processing.
"""
def __init__(self, name, position, power_threshold,
amplification=1, amplifier_clipping=1, noisy=True,
unique_noise_waveforms=10):
super().__init__(response_data=VPOL_RESPONSE_DATA,
name=name, position=position,
power_threshold=power_threshold,
orientation=(0,0,1),
amplification=amplification,
amplifier_clipping=amplifier_clipping,
noisy=noisy,
unique_noise_waveforms=unique_noise_waveforms) | pyrex/custom/ara/antenna.py | import logging
import os.path
import pickle
import numpy as np
import scipy.constants
import scipy.signal
from pyrex.internal_functions import (normalize, complex_bilinear_interp,
complex_interp)
from pyrex.signals import Signal, FunctionSignal
from pyrex.antenna import Antenna
from pyrex.detector import AntennaSystem
logger = logging.getLogger(__name__)
def _read_arasim_antenna_data(filename):
"""
Gather antenna directionality data from an AraSim-formatted data file.
The data file should have columns for theta, phi, dB gain, non-dB gain, and
phase (in degrees). This should be divided into sections for each frequency
with a header line "freq : X MHz", optionally followed by a second line
"SWR : Y".
Parameters
----------
filename : str
Name of the data file.
Returns
-------
response : ndarray
3-D array of complex-valued voltage gains as a function of frequency
along axis 0, zenith along axis 1, and azimuth along axis 2.
frequencies : ndarray
Frequencies (Hz) corresponding to axis 0 of `response`.
thetas : ndarray
Zenith angles (degrees) corresponding to axis 1 of `response`.
phis : ndarray
Azimuth angles (degrees) corresponding to axis 2 of `response`.
"""
data = {}
freqs = set()
thetas = set()
phis = set()
freq = 0
with open(filename) as f:
for line in f:
words = line.split()
if line.startswith('freq'):
freq = 1
if words[-1]=="Hz":
pass
elif words[-1]=="kHz":
freq *= 1e3
elif words[-1]=="MHz":
freq *= 1e6
elif words[-1]=="GHz":
freq *= 1e9
else:
raise ValueError("Cannot parse line: '"+line+"'")
freq *= float(words[-2])
freqs.add(freq)
elif line.startswith('SWR'):
swr = float(words[-1])
elif len(words)==5 and words[0]!="Theta":
theta = int(words[0])
thetas.add(theta)
phi = int(words[1])
phis.add(phi)
db_gain = float(words[2])
# AraSim actually only seems to use the sqrt of the gain
# (must be gain in power, not voltage)
# gain = np.sqrt(float(words[3]))
gain = np.sqrt(10**(db_gain/10))
phase = np.radians(float(words[4]))
data[(freq, theta, phi)] = (gain, phase)
# Convert data dictionary into 3-D array of responses
response = np.empty((len(freqs), len(thetas), len(phis)),
dtype=np.complex_)
for i, freq in enumerate(sorted(freqs)):
for j, theta in enumerate(sorted(thetas)):
for k, phi in enumerate(sorted(phis)):
gain, phase = data[(freq, theta, phi)]
response[i, j, k] = gain * np.exp(1j*phase)
response_data = (response, np.array(sorted(freqs)),
np.array(sorted(thetas)), np.array(sorted(phis)))
return _fix_response_wrapping(response_data)
# If the antenna responses don't go all the way to phi=360, add the extra
# column for the sake of the interpolators
def _fix_response_wrapping(response_data):
"""
Add phi=360 degrees column to antenna response data.
The interpolators require that the full azimuth range of the antennas is
described, so this function duplicates the phi=0 column of the antenna
response into a phi=360 column, as long as it matches with the rest of
the phi spacings.
Parameters
----------
response_data : tuple of ndarray
Tuple containing the response data for the antenna. The first element
should contain a 3-D array of the antenna response model as a function
of frequency (axis 0), zenith (axis 1), and azimuth (axis 2). The
remaining elements should be the values of the frequency, zenith, and
azimuth axes, respectively.
Returns
-------
response : ndarray
Corrected 3-D array of antenna response values, including the phi=360
degree column if possible.
frequencies : ndarray
Frequencies (Hz) corresponding to axis 0 of `response`.
thetas : ndarray
Zenith angles (degrees) corresponding to axis 1 of `response`.
phis : ndarray
Azimuth angles (degrees) corresponding to axis 2 of `response`.
"""
response, freqs, thetas, phis = response_data
if phis[-1]==360:
return response_data
if phis[0]==0 and phis[-1]==360-phis[1]:
phis = np.concatenate((phis, [360]))
response = np.concatenate((response, response[:, :, 0:1]), axis=2)
return response, freqs, thetas, phis
def _read_arasim_antenna_pickle(filename):
"""
Gather antenna directional response data from a pickled data file.
The data file should be a pickled file containing the antenna directional
response data from an AraSim-formatted data file as returned by the
`_read_arasim_antenna_data` function.
Parameters
----------
filename : str
Name of the data file without the ``.pkl`` extension.
Returns
-------
response : ndarray
3-D array of complex-valued voltage gains as a function of frequency
along axis 0, zenith along axis 1, and azimuth along axis 2.
frequencies : ndarray
Frequencies (Hz) corresponding to axis 0 of `response`.
thetas : ndarray
Zenith angles (degrees) corresponding to axis 1 of `response`.
phis : ndarray
Azimuth angles (degrees) corresponding to axis 2 of `response`.
See Also
--------
_read_arasim_antenna_data : Gather antenna directionality data from an
AraSim-formatted data file.
"""
# Quick fix for filenames with one of the approved extensions already
# (just strip it)
if filename.endswith(".txt") or filename.endswith(".pkl"):
filename = filename[:-4]
# If there is no pickle file, read the response data using the
# _read_arasim_antenna_data function, and then make a pickle file
if not os.path.isfile(filename+".pkl"):
logger.warning("Antenna model file %s.pkl not found. "+
"Generating a new file now", filename)
response_data = _read_arasim_antenna_data(filename+".txt")
with open(filename+".pkl", 'wb') as f:
pickle.dump(response_data, f)
return response_data
# Otherwise, read from the pickle file
else:
with open(filename+".pkl", 'rb') as f:
return pickle.load(f)
def _read_filter_data(filename):
"""
Gather frequency-dependent filtering data from a data file.
The data file should have columns for frequency, non-dB gain, and phase
(in radians).
Parameters
----------
filename : str
Name of the data file.
Returns
-------
gains : ndarray
Complex-valued voltage gains as a function of frequency.
frequencies : ndarray
Frequencies (Hz) corresponding to the values of `gains`.
"""
gains = []
freqs = []
freq_scale = 0
with open(filename) as f:
for line in f:
words = line.split()
if line.startswith('Freq'):
_, scale = words[0].split("(")
scale = scale.rstrip(")")
if scale=="Hz":
freq_scale = 1
elif scale=="kHz":
freq_scale = 1e3
elif scale=="MHz":
freq_scale = 1e6
elif scale=="GHz":
freq_scale = 1e9
else:
raise ValueError("Cannot parse line: '"+line+"'")
elif len(words)==3 and words[0]!="Total":
f, g, p = line.split(",")
freq = float(f) * freq_scale
gain = float(g)
phase = float(p)
freqs.append(freq)
gains.append(gain * np.exp(1j*phase))
return np.array(gains), np.array(freqs)
ARA_DATA_DIR = os.path.join(os.path.dirname(__file__), "data")
VPOL_DATA_FILE = os.path.join(ARA_DATA_DIR,
"Vpol_original_CrossFeed_150mmHole_Ice_ARASim.txt")
HPOL_DATA_FILE = os.path.join(ARA_DATA_DIR,
"Hpol_original_150mmHole_Ice_ARASim.txt")
FILT_DATA_FILE = os.path.join(ARA_DATA_DIR,
"ARA_Electronics_TotalGain_TwoFilters.txt")
# Vpol data file contains only the theta responses
VPOL_THETA_RESPONSE_DATA = _read_arasim_antenna_pickle(VPOL_DATA_FILE)
VPOL_RESPONSE_DATA = (
VPOL_THETA_RESPONSE_DATA[0],
np.zeros(VPOL_THETA_RESPONSE_DATA[0].shape),
*VPOL_THETA_RESPONSE_DATA[1:]
)
# Hpol data file contains only the phi responses
HPOL_PHI_RESPONSE_DATA = _read_arasim_antenna_pickle(HPOL_DATA_FILE)
HPOL_RESPONSE_DATA = (
np.zeros(HPOL_PHI_RESPONSE_DATA[0].shape),
*HPOL_PHI_RESPONSE_DATA
)
ALL_FILTERS_DATA = _read_filter_data(FILT_DATA_FILE)
class ARAAntenna(Antenna):
"""
Antenna class to be used for ARA antennas.
Stores the attributes of an antenna as well as handling receiving,
processing, and storing signals and adding noise. Antenna response based on
provided models.
Parameters
----------
response_data : tuple of array_like
Tuple containing the response data for the antenna along the theta
and phi polarization directions. The first and second elements should
contain 3-D arrays of the antenna response model in the theta and phi
polarizations, respectively, as a function of frequency (axis 0),
zenith (axis 1), and azimuth (axis 2). The remaining elements should be
the values of the frequency, zenith, and azimuth axes, respectively.
position : array_like
Vector position of the antenna.
center_frequency : float
Frequency (Hz) at the center of the antenna's frequency range.
bandwidth : float
Bandwidth (Hz) of the antenna.
temperature : float
The noise temperature (K) of the antenna. Used in combination with
`resistance` to calculate the RMS voltage of the antenna noise.
resistance : float
The noise resistance (ohm) of the antenna. Used in combination with
`temperature` to calculate the RMS voltage of the antenna noise.
orientation : array_like, optional
Vector direction of the z-axis of the antenna.
efficiency : float, optional
Antenna efficiency applied to incoming signal values.
noisy : boolean, optional
Whether or not the antenna should add noise to incoming signals.
unique_noise_waveforms : int, optional
The number of expected noise waveforms needed for each received signal
to have its own noise.
Attributes
----------
position : array_like
Vector position of the antenna.
z_axis : ndarray
Vector direction of the z-axis of the antenna.
x_axis : ndarray
Vector direction of the x-axis of the antenna.
antenna_factor : float
Antenna factor used for converting fields to voltages.
efficiency : float
Antenna efficiency applied to incoming signal values.
noisy : boolean
Whether or not the antenna should add noise to incoming signals.
unique_noises : int
The number of expected noise waveforms needed for each received signal
to have its own noise.
freq_range : array_like
The frequency band in which the antenna operates (used for noise
production).
temperature : float or None
The noise temperature (K) of the antenna. Used in combination with
`resistance` to calculate the RMS voltage of the antenna noise.
resistance : float or None
The noise resistance (ohm) of the antenna. Used in combination with
`temperature` to calculate the RMS voltage of the antenna noise.
noise_rms : float or None
The RMS voltage (V) of the antenna noise. If not ``None``, this value
will be used instead of the RMS voltage calculated from the values of
`temperature` and `resistance`.
signals : list of Signal
The signals which have been received by the antenna.
is_hit
is_hit_mc_truth
waveforms
all_waveforms
See Also
--------
pyrex.Antenna : Base class for antennas.
"""
def __init__(self, response_data, position, center_frequency, bandwidth,
temperature, resistance, orientation=(0,0,1), efficiency=1,
noisy=True, unique_noise_waveforms=10):
# Parse the response data
self._theta_response = response_data[0]
self._phi_response = response_data[1]
self._response_freqs = response_data[2]
self._response_zens = response_data[3]
self._response_azis = response_data[4]
# Get the critical frequencies in Hz
f_low = center_frequency - bandwidth/2
f_high = center_frequency + bandwidth/2
# Get arbitrary x-axis orthogonal to orientation
tmp_vector = np.zeros(3)
while np.array_equal(np.cross(orientation, tmp_vector), (0,0,0)):
tmp_vector = np.random.rand(3)
ortho = np.cross(orientation, tmp_vector)
# Note: ortho is not normalized, but will be normalized by Antenna's init
super().__init__(position=position, z_axis=orientation, x_axis=ortho,
efficiency=efficiency, freq_range=(f_low, f_high),
temperature=temperature, resistance=resistance,
noisy=noisy,
unique_noise_waveforms=unique_noise_waveforms)
def directional_gain(self, theta, phi):
raise NotImplementedError("Directional gain is not defined for "+
self.__class__.__name__+". Use the "+
"directional_response method instead.")
def polarization_gain(self, polarization):
raise NotImplementedError("Polarization gain is not defined for "+
self.__class__.__name__+". Use the "+
"directional_response method instead.")
def directional_response(self, theta, phi, polarization):
"""
Generate the (complex) frequency-dependent directional response.
For given angles and polarization direction, use the model of the
directional and polarization gains of the antenna to generate a
function for the interpolated response of the antenna with respect to
frequency. Used with the `frequency_response` method to calculate
effective heights.
Parameters
----------
theta : float
Polar angle (radians) from which a signal is arriving.
phi : float
Azimuthal angle (radians) from which a signal is arriving.
polarization : array_like
Normalized polarization vector in the antenna coordinate system.
Returns
-------
function
A function which returns complex-valued voltage gains for given
frequencies, using the values of incoming angle and polarization.
See Also
--------
ARAAntenna.frequency_response : Calculate the (complex) frequency
response of the antenna.
"""
e_theta = [np.cos(theta) * np.cos(phi),
np.cos(theta) * np.sin(phi),
-np.sin(theta)]
e_phi = [-np.sin(phi), np.cos(phi), 0]
theta_factor = np.dot(polarization, e_theta)
phi_factor = np.dot(polarization, e_phi)
theta_gains = complex_bilinear_interp(
x=np.degrees(theta), y=np.degrees(phi),
xp=self._response_zens,
yp=self._response_azis,
fp=self._theta_response,
method='cartesian'
)
phi_gains = complex_bilinear_interp(
x=np.degrees(theta), y=np.degrees(phi),
xp=self._response_zens,
yp=self._response_azis,
fp=self._phi_response,
method='cartesian'
)
freq_interpolator = lambda frequencies: complex_interp(
x=frequencies, xp=self._response_freqs,
fp=theta_factor*theta_gains + phi_factor*phi_gains,
method='euler', outer=0
)
return freq_interpolator
def frequency_response(self, frequencies):
"""
Calculate the (complex) frequency response of the antenna.
Rather than handling the entire frequency response of the antenna, this
method is being used to convert the frequency-dependent gains from the
`directional_response` method into effective heights.
Parameters
----------
frequencies : array_like
1D array of frequencies (Hz) at which to calculate gains.
Returns
-------
array_like
Complex gains in voltage for the given `frequencies`.
See Also
--------
ARAAntenna.directional_response : Generate the (complex) frequency
dependent directional response.
"""
# From AraSim GaintoHeight function, with gain calculation moved to
# the directional_response method.
# gain=4*pi*A_eff/lambda^2 and h_eff=2*sqrt(A_eff*Z_rx/Z_air)
# Then 0.5 to calculate power with heff (cancels 2 above)
heff = np.zeros(len(frequencies))
# The index of refraction in this calculation should be the index of
# the ice used in the production of the antenna model.
n = 1.78
heff[frequencies!=0] = np.sqrt((scipy.constants.c
/frequencies[frequencies!=0]/n)**2
* n*50/377 /(4*np.pi))
return heff
def apply_response(self, signal, direction=None, polarization=None,
force_real=True):
"""
Process the complete antenna response for an incoming signal.
Processes the incoming signal according to the frequency response of
the antenna, the efficiency, and the antenna factor. May also apply the
directionality and the polarization gain depending on the provided
parameters. Subclasses may wish to overwrite this function if the
full antenna response cannot be divided nicely into the described
pieces.
Parameters
----------
signal : Signal
Incoming ``Signal`` object to process.
direction : array_like, optional
Vector denoting the direction of travel of the signal as it reaches
the antenna (in the global coordinate frame). If ``None`` no
directional response will be applied.
polarization : array_like, optional
Vector denoting the signal's polarization direction (in the global
coordinate frame). If ``None`` no polarization gain will be applied.
force_real : boolean, optional
Whether or not the frequency response should be redefined in the
negative-frequency domain to keep the values of the filtered signal
real.
Returns
-------
Signal
Processed ``Signal`` object after the complete antenna response has
been applied. Should have a ``value_type`` of ``voltage``.
Raises
------
ValueError
If the given `signal` does not have a ``value_type`` of ``voltage``
or ``field``.
See Also
--------
pyrex.Signal : Base class for time-domain signals.
"""
new_signal = signal.copy()
new_signal.value_type = Signal.Type.voltage
freq_response = self.frequency_response
if direction is not None and polarization is not None:
# Calculate theta and phi relative to the orientation
origin = self.position - normalize(direction)
r, theta, phi = self._convert_to_antenna_coordinates(origin)
# Calculate polarization vector in the antenna coordinates
y_axis = np.cross(self.z_axis, self.x_axis)
transformation = np.array([self.x_axis, y_axis, self.z_axis])
ant_pol = np.dot(transformation, normalize(polarization))
# Calculate directional response as a function of frequency
directive_response = self.directional_response(theta, phi, ant_pol)
freq_response = lambda f: (self.frequency_response(f)
* directive_response(f))
elif (direction is not None and polarization is None
or direction is None and polarization is not None):
raise ValueError("Direction and polarization must be specified together")
# Apply (combined) frequency response
new_signal.filter_frequencies(freq_response, force_real=force_real)
signal_factor = self.efficiency
if signal.value_type==Signal.Type.voltage:
pass
elif signal.value_type==Signal.Type.field:
signal_factor /= self.antenna_factor
else:
raise ValueError("Signal's value type must be either "
+"voltage or field. Given "+str(signal.value_type))
new_signal *= signal_factor
return new_signal
# Redefine receive method to use force_real as True by default
def receive(self, signal, direction=None, polarization=None,
force_real=True):
"""
Process and store one or more incoming (polarized) signals.
Processes the incoming signal(s) according to the ``apply_response``
method, then stores the total processed signal to the signals list. If
more than one signal is given, they should be logically connected as
separately polarized portions of the same signal.
Parameters
----------
signal : Signal or array_like
Incoming ``Signal`` object(s) to process and store. May be separate
polarization representations, but therefore should have the same
times.
direction : array_like, optional
Vector denoting the direction of travel of the signal(s) as they
reach the antenna (in the global coordinate frame). If ``None`` no
directional gain will be applied.
polarization : array_like, optional
Vector(s) denoting the signal's polarization direction (in the
global coordinate frame). Number of vectors should match the number
of elements in `signal` argument. If ``None`` no polarization gain
will be applied.
force_real : boolean, optional
Whether or not the frequency response should be redefined in the
negative-frequency domain to keep the values of the filtered signal
real.
Raises
------
ValueError
If the number of polarizations does not match the number of signals.
Or if the signals do not have the same `times` array.
See Also
--------
pyrex.Signal : Base class for time-domain signals.
"""
super().receive(signal=signal, direction=direction,
polarization=polarization,
force_real=force_real)
class ARAAntennaSystem(AntennaSystem):
"""
Antenna system extending base ARA antenna with front-end processing.
Applies as the front end a filter representing the full ARA electronics
chain (including amplification) and signal clipping. Additionally provides
a method for passing a signal through the tunnel diode.
Parameters
----------
response_data : tuple of array_like
Tuple containing the response data for the antenna along the theta
and phi polarization directions. The first and second elements should
contain 3-D arrays of the antenna response model in the theta and phi
polarizations, respectively, as a function of frequency (axis 0),
zenith (axis 1), and azimuth (axis 2). The remaining elements should be
the values of the frequency, zenith, and azimuth axes, respectively.
name : str
Name of the antenna.
position : array_like
Vector position of the antenna.
power_threshold : float
Power threshold for trigger condition. Antenna triggers if a signal
passed through the tunnel diode exceeds this threshold times the noise
RMS of the tunnel diode.
orientation : array_like, optional
Vector direction of the z-axis of the antenna.
amplification : float, optional
Amplification to be applied to the signal pre-clipping. Note that the
usual ARA electronics amplification is already applied without this.
amplifier_clipping : float, optional
Voltage (V) above which the amplified signal is clipped (in positive
and negative values).
noisy : boolean, optional
Whether or not the antenna should add noise to incoming signals.
unique_noise_waveforms : int, optional
The number of expected noise waveforms needed for each received signal
to have its own noise.
Attributes
----------
antenna : Antenna
``Antenna`` object extended by the front end.
name : str
Name of the antenna.
position : array_like
Vector position of the antenna.
power_threshold : float
Power threshold for trigger condition. Antenna triggers if a signal
passed through the tunnel diode exceeds this threshold times the noise
RMS of the tunnel diode.
amplification : float
Amplification to be applied to the signal pre-clipping. Note that the
usual ARA electronics amplification is already applied without this.
amplifier_clipping : float
Voltage (V) above which the amplified signal is clipped (in positive
and negative values).
lead_in_time : float
Lead-in time (s) required for the front end to equilibrate.
Automatically added in before calculation of signals and waveforms.
is_hit
is_hit_mc_truth
signals
waveforms
all_waveforms
See Also
--------
pyrex.AntennaSystem : Base class for antenna system with front-end
processing.
ARAAntenna : Antenna class to be used for ARA antennas.
"""
lead_in_time = 5e-9
def __init__(self, response_data, name, position, power_threshold,
orientation=(0,0,1), amplification=1, amplifier_clipping=1,
noisy=True, unique_noise_waveforms=10,
**kwargs):
super().__init__(ARAAntenna)
self.name = str(name)
self.position = position
self.amplification = amplification
self.amplifier_clipping = amplifier_clipping
self.setup_antenna(response_data=response_data,
orientation=orientation, noisy=noisy,
unique_noise_waveforms=unique_noise_waveforms,
**kwargs)
self.power_threshold = power_threshold
self._power_mean = None
self._power_std = None
self._filter_response = ALL_FILTERS_DATA[0]
self._filter_freqs = ALL_FILTERS_DATA[1]
@property
def _metadata(self):
"""Metadata dictionary for writing `ARAAntennaSystem` information."""
meta = super()._metadata
meta.update({
"name": self.name,
"lead_in_time": self.lead_in_time,
"amplification": self.amplification,
"amplifier_clipping": self.amplifier_clipping,
"power_threshold": self.power_threshold,
})
return meta
def setup_antenna(self, response_data, center_frequency=500e6,
bandwidth=800e6, temperature=325, resistance=50,
orientation=(0,0,1), efficiency=1, noisy=True,
unique_noise_waveforms=10, **kwargs):
"""
Setup the antenna by passing along its init arguments.
Any arguments passed to this method are directly passed to the
``__init__`` methods of the ``antenna``'s class.
Parameters
----------
response_data : tuple of array_like
Tuple containing the response data for the antenna along the theta
and phi polarization directions. The first and second elements
should contain 3-D arrays of the antenna response model in the
theta and phi polarizations, respectively, as a function of
frequency (axis 0), zenith (axis 1), and azimuth (axis 2). The
remaining elements should be the values of the frequency, zenith,
and azimuth axes, respectively.
center_frequency : float, optional
Frequency (Hz) at the center of the antenna's frequency range.
bandwidth : float, optional
Bandwidth (Hz) of the antenna.
temperature : float, optional
The noise temperature (K) of the antenna. Used in combination with
`resistance` to calculate the RMS voltage of the antenna noise.
resistance : float, optional
The noise resistance (ohm) of the antenna. Used in combination with
`temperature` to calculate the RMS voltage of the antenna noise.
orientation : array_like, optional
Vector direction of the z-axis of the antenna.
efficiency : float, optional
Antenna efficiency applied to incoming signal values.
noisy : boolean, optional
Whether or not the antenna should add noise to incoming signals.
unique_noise_waveforms : int, optional
The number of expected noise waveforms needed for each received
signal to have its own noise.
"""
# Noise rms should be about 40 mV (after filtering with gain of ~5000).
# This is mostly satisfied by using the default noise temperature from
# AraSim, 325 K, along with a 50 ohm resistance
# Additionally, the bandwidth of the antenna is set slightly larger
# than the nominal bandwidth of the true ARA antenna system (700 MHz),
# but the extra frequencies should be killed by the front-end filter
super().setup_antenna(response_data=response_data,
position=self.position,
center_frequency=center_frequency,
bandwidth=bandwidth,
temperature=temperature,
resistance=resistance,
orientation=orientation,
efficiency=efficiency,
noisy=noisy,
unique_noise_waveforms=unique_noise_waveforms,
**kwargs)
# Tunnel diode response functions pulled from arasim
_td_args = {
'down1': (-0.8, 15e-9, 2.3e-9, 0),
'down2': (-0.2, 15e-9, 4e-9, 0),
'up': (1, 18e-9, 7e-9, 1e9)
}
# Set td_args['up'][0] based on the other args, like in arasim
_td_args['up'] = (-np.sqrt(2*np.pi) *
(_td_args['down1'][0]*_td_args['down1'][2] +
_td_args['down2'][0]*_td_args['down2'][2]) /
(2e18*_td_args['up'][2]**3),) + _td_args['up'][1:]
# Set "down" and "up" functions as in arasim
@classmethod
def _td_fdown1(cls, x):
return (cls._td_args['down1'][3] + cls._td_args['down1'][0] *
np.exp(-(x-cls._td_args['down1'][1])**2 /
(2*cls._td_args['down1'][2]**2)))
@classmethod
def _td_fdown2(cls, x):
return (cls._td_args['down2'][3] + cls._td_args['down2'][0] *
np.exp(-(x-cls._td_args['down2'][1])**2 /
(2*cls._td_args['down2'][2]**2)))
@classmethod
def _td_fup(cls, x):
return (cls._td_args['up'][0] *
(cls._td_args['up'][3] * (x-cls._td_args['up'][1]))**2 *
np.exp(-(x-cls._td_args['up'][1])/cls._td_args['up'][2]))
def tunnel_diode(self, signal):
"""
Calculate a signal as processed by the tunnel diode.
The given signal is convolved with the tunnel diode response as in
AraSim.
Parameters
----------
signal : Signal
Signal to be processed by the tunnel diode.
Returns
-------
Signal
Signal output of the tunnel diode for the input `signal`.
Raises
------
ValueError
If the input `signal` doesn't have a ``value_type`` of ``voltage``.
Notes
-----
The tunnel diode response is based on the response parameterized in
AraSim, as developed by ANITA [1]_.
References
----------
.. [1] <NAME> & <NAME>, ANITA Note #411, "A Power-Based Time
Domain Trigger Simulation."
https://elog.phys.hawaii.edu/elog/anita_notes/080827_041639/powertrigger.pdf
"""
if signal.value_type!=Signal.Type.voltage:
raise ValueError("Tunnel diode only accepts voltage signals")
t_max = 1e-7
n_pts = int(t_max/signal.dt)
times = np.linspace(0, t_max, n_pts+1)
diode_resp = self._td_fdown1(times) + self._td_fdown2(times)
t_slice = times>self._td_args['up'][1]
diode_resp[t_slice] += self._td_fup(times[t_slice])
conv = scipy.signal.convolve(signal.values**2 / self.antenna.resistance,
diode_resp, mode='full')
# Signal class will automatically only take the first part of conv,
# which is what we want.
# conv multiplied by dt so that the amplitude stays constant for
# varying dts (determined empirically, see ARZAskaryanSignal comments)
output = Signal(signal.times, conv*signal.dt,
value_type=Signal.Type.power)
return output
def interpolate_filter(self, frequencies):
"""
Generate interpolated filter values for given frequencies.
Calculate the interpolated values of the antenna system's filter gain
data for some frequencies.
Parameters
----------
frequencies : array_like
1D array of frequencies (Hz) at which to calculate gains.
Returns
-------
array_like
Complex filter gain in voltage for the given `frequencies`.
"""
return complex_interp(
x=frequencies, xp=self._filter_freqs, fp=self._filter_response,
method='euler', outer=0
)
def front_end(self, signal):
"""
Apply front-end processes to a signal and return the output.
The front-end consists of the full ARA electronics chain (including
amplification) and signal clipping.
Parameters
----------
signal : Signal
``Signal`` object on which to apply the front-end processes.
Returns
-------
Signal
Signal processed by the antenna front end.
"""
base_signal = signal.copy()
base_signal.filter_frequencies(self.interpolate_filter,
force_real=True)
# Apply sqrt(2) for 3dB splitter for TURF, SURF
base_signal *= self.amplification / np.sqrt(2)
clip_values = lambda times: np.clip(
base_signal.with_times(times).values,
a_min=-self.amplifier_clipping,
a_max=self.amplifier_clipping
)
return FunctionSignal(signal.times, clip_values,
value_type=signal.value_type)
def trigger(self, signal):
"""
Check if the antenna system triggers on a given signal.
Passes the signal through the tunnel diode. Then compares the maximum
and minimum values to a tunnel diode noise signal. Triggers if one of
the maximum or minimum values exceed the noise mean +/- the noise rms
times the power threshold.
Parameters
----------
signal : Signal
``Signal`` object on which to test the trigger condition.
Returns
-------
boolean
Whether or not the antenna triggers on `signal`.
"""
if self._power_mean is None or self._power_std is None:
# Prepare for antenna trigger by finding mean and standard
# deviation of the full noise waveform convolved with the tunnel
# diode response
if len(self.antenna.signals)>0:
times = self.antenna.signals[0].times
else:
times = signal.times
n = len(times)
dt = times[1]-times[0]
duration = times[-1]-times[0] + dt
full_times = np.linspace(0, duration*self.antenna.unique_noises,
n*self.antenna.unique_noises)
if self.antenna._noise_master is None:
# Make sure the noise_master has the appropriate length
# (automatically gets set to N*len(times) the first time it is
# called, so make sure the first `times` is not the expanded
# array but the single-signal array)
self.antenna.make_noise(times)
long_noise = self.antenna.make_noise(full_times)
power_noise = self.tunnel_diode(self.front_end(long_noise))
self._power_mean = np.mean(power_noise.values)
self._power_std = np.std(power_noise.values)
power_signal = self.tunnel_diode(signal)
# Use the absolute value of the power_threshold value so that the value
# can be specified as positive or negative (compatible with AraSim
# which only works with negative values, resulting in some confusion)
low_trigger = (self._power_mean -
self._power_std*np.abs(self.power_threshold))
return np.min(power_signal.values)<low_trigger
# Redefine receive method to use force_real as True by default
def receive(self, signal, direction=None, polarization=None,
force_real=True):
"""
Process and store one or more incoming (polarized) signals.
Processes the incoming signal(s) according to the ``apply_response``
method, then stores the total processed signal to the signals list. If
more than one signal is given, they should be logically connected as
separately polarized portions of the same signal.
Parameters
----------
signal : Signal or array_like
Incoming ``Signal`` object(s) to process and store. May be separate
polarization representations, but therefore should have the same
times.
direction : array_like, optional
Vector denoting the direction of travel of the signal(s) as they
reach the antenna (in the global coordinate frame). If ``None`` no
directional gain will be applied.
polarization : array_like, optional
Vector(s) denoting the signal's polarization direction (in the
global coordinate frame). Number of vectors should match the number
of elements in `signal` argument. If ``None`` no polarization gain
will be applied.
force_real : boolean, optional
Whether or not the frequency response should be redefined in the
negative-frequency domain to keep the values of the filtered signal
real.
Raises
------
ValueError
If the number of polarizations does not match the number of signals.
Or if the signals do not have the same `times` array.
See Also
--------
pyrex.Signal : Base class for time-domain signals.
"""
super().receive(signal=signal, direction=direction,
polarization=polarization,
force_real=force_real)
class HpolAntenna(ARAAntennaSystem):
"""
ARA Hpol ("quad-slot") antenna system with front-end processing.
Applies as the front end a filter representing the full ARA electronics
chain (including amplification) and signal clipping. Additionally provides
a method for passing a signal through the tunnel diode.
Parameters
----------
name : str
Name of the antenna.
position : array_like
Vector position of the antenna.
power_threshold : float
Power threshold for trigger condition. Antenna triggers if a signal
passed through the tunnel diode exceeds this threshold times the noise
RMS of the tunnel diode.
amplification : float, optional
Amplification to be applied to the signal pre-clipping. Note that the
usual ARA electronics amplification is already applied without this.
amplifier_clipping : float, optional
Voltage (V) above which the amplified signal is clipped (in positive
and negative values).
noisy : boolean, optional
Whether or not the antenna should add noise to incoming signals.
unique_noise_waveforms : int, optional
The number of expected noise waveforms needed for each received signal
to have its own noise.
Attributes
----------
antenna : Antenna
``Antenna`` object extended by the front end.
name : str
Name of the antenna.
position : array_like
Vector position of the antenna.
power_threshold : float
Power threshold for trigger condition. Antenna triggers if a signal
passed through the tunnel diode exceeds this threshold times the noise
RMS of the tunnel diode.
amplification : float
Amplification to be applied to the signal pre-clipping. Note that the
usual ARA electronics amplification is already applied without this.
amplifier_clipping : float
Voltage (V) above which the amplified signal is clipped (in positive
and negative values).
is_hit
is_hit_mc_truth
signals
waveforms
all_waveforms
See Also
--------
ARAAntennaSystem : Antenna system extending base ARA antenna with front-end
processing.
"""
def __init__(self, name, position, power_threshold,
amplification=1, amplifier_clipping=1, noisy=True,
unique_noise_waveforms=10):
super().__init__(response_data=HPOL_RESPONSE_DATA,
name=name, position=position,
power_threshold=power_threshold,
orientation=(0,0,1),
amplification=amplification,
amplifier_clipping=amplifier_clipping,
noisy=noisy,
unique_noise_waveforms=unique_noise_waveforms)
class VpolAntenna(ARAAntennaSystem):
"""
ARA Vpol ("bicone" or "birdcage") antenna system with front-end processing.
Applies as the front end a filter representing the full ARA electronics
chain (including amplification) and signal clipping. Additionally provides
a method for passing a signal through the tunnel diode.
Parameters
----------
name : str
Name of the antenna.
position : array_like
Vector position of the antenna.
power_threshold : float
Power threshold for trigger condition. Antenna triggers if a signal
passed through the tunnel diode exceeds this threshold times the noise
RMS of the tunnel diode.
amplification : float, optional
Amplification to be applied to the signal pre-clipping. Note that the
usual ARA electronics amplification is already applied without this.
amplifier_clipping : float, optional
Voltage (V) above which the amplified signal is clipped (in positive
and negative values).
noisy : boolean, optional
Whether or not the antenna should add noise to incoming signals.
unique_noise_waveforms : int, optional
The number of expected noise waveforms needed for each received signal
to have its own noise.
Attributes
----------
antenna : Antenna
``Antenna`` object extended by the front end.
name : str
Name of the antenna.
position : array_like
Vector position of the antenna.
power_threshold : float
Power threshold for trigger condition. Antenna triggers if a signal
passed through the tunnel diode exceeds this threshold times the noise
RMS of the tunnel diode.
amplification : float
Amplification to be applied to the signal pre-clipping. Note that the
usual ARA electronics amplification is already applied without this.
amplifier_clipping : float
Voltage (V) above which the amplified signal is clipped (in positive
and negative values).
is_hit
is_hit_mc_truth
signals
waveforms
all_waveforms
See Also
--------
ARAAntennaSystem : Antenna system extending base ARA antenna with front-end
processing.
"""
def __init__(self, name, position, power_threshold,
amplification=1, amplifier_clipping=1, noisy=True,
unique_noise_waveforms=10):
super().__init__(response_data=VPOL_RESPONSE_DATA,
name=name, position=position,
power_threshold=power_threshold,
orientation=(0,0,1),
amplification=amplification,
amplifier_clipping=amplifier_clipping,
noisy=noisy,
unique_noise_waveforms=unique_noise_waveforms) | 0.857709 | 0.527803 |
import pathlib
import random
import argparse
import json
import shutil
from typing import List, Callable
import yaml
import numpy as np
import cv2
from gym_duckietown.envs import SimpleSimEnv
import src.graphics
class Transform:
def __init__(self):
self.transforms = []
def add_transform(self, transform: Callable):
self.transforms.append(transform)
def __call__(self, img):
for t in self.transforms:
img = t(img)
return img
def __bool__(self):
return bool(self.transforms)
def write_imgs_from_map(map_name: str, save_dir: pathlib.Path, test_percentage=0.3):
env = SimpleSimEnv(map_name=map_name)
file_path = pathlib.Path('experiments/demos_{}.json'.format(map_name))
if not file_path.is_file():
raise ValueError("Could not find the file containing the generated trajectories: {}".format(file_path))
data = json.loads(file_path.read_text())
demos = data['demos']
positions = map(lambda d: d['positions'], demos)
actions = map(lambda d: d['actions'], demos)
positions = sum(positions, [])
actions = sum(actions, [])
test_dir = save_dir / "test"
train_dir = save_dir / "train"
test_dir.mkdir(parents=True, exist_ok=True)
train_dir.mkdir(parents=True, exist_ok=True)
print("Found {} positions to be converted to images...".format(len(positions)))
for idx, position in enumerate(positions):
cur_pos = np.array(position[0])
cur_angle = position[1]
vels = actions[idx]
env.cur_pos = cur_pos
env.cur_angle = cur_angle
obs = env.render_obs().copy()
obs = obs[..., ::-1]
if random.random() < test_percentage:
img_path = test_dir / "{0:06d}.jpg".format(idx)
lbl_path = test_dir / "{0:06d}.txt".format(idx)
else:
img_path = train_dir / "{0:06d}.jpg".format(idx)
lbl_path = train_dir / "{0:06d}.txt".format(idx)
cv2.imwrite(img_path.as_posix(), obs)
lbl_path.write_text(" ".join(map(str, vels)))
def write_imgs_from_srcdir(src_dir: pathlib.Path, tgt_dir: pathlib.Path, keep_zeros_prob=1.0, only_road=False) -> None:
test_dir = tgt_dir / "test"
train_dir = tgt_dir / "train"
test_dir.mkdir(exist_ok=True)
train_dir.mkdir(exist_ok=True)
test_percentage = 0.3
test_count = 0
train_count = 0
for path in src_dir.iterdir():
if path.suffix != ".yaml":
continue
seq_info = yaml.load(path.read_text())
for entry in seq_info:
if abs(entry["omega"]) < 0.1 and random.random() > keep_zeros_prob:
continue
if random.random() < test_percentage:
img_tgt = test_dir / "{0:06d}.jpg".format(test_count)
lbl_tgt = test_dir / "{0:06d}.txt".format(test_count)
test_count += 1
else:
img_tgt = train_dir / "{0:06d}.jpg".format(train_count)
lbl_tgt = train_dir / "{0:06d}.txt".format(train_count)
train_count += 1
img_src = src_dir / entry["only_road_pth"] if only_road else src_dir / entry["path"]
shutil.copy(img_src.as_posix(), img_tgt.as_posix())
lbl_tgt.write_text(str(entry["omega"]))
def transform_images(src_dir: pathlib.Path, transform: Callable):
for pth in src_dir.iterdir():
if pth.suffix != ".jpg":
continue
img = cv2.imread(pth.as_posix())
img = transform(img)
cv2.imwrite(pth.as_posix(), img)
def main():
parser = argparse.ArgumentParser()
parser.add_argument("--map", help="Name of the map")
parser.add_argument("--src_dir", help="If specified, the data is assumed to be from sequences")
parser.add_argument("--tgt_dir", required=True, help="place to store the images")
parser.add_argument("--flatten_dist", action="store_true", help="if the data distribution should be flattened")
parser.add_argument("--only_road", action="store_true", help="use the only road images")
parser.add_argument("--transform_only_road", action="store_true", help="transforms the only road images")
parser.add_argument("--invert", action="store_true")
parser.add_argument("--overflow", action="store_true")
args = parser.parse_args()
if args.transform_only_road:
args.only_road = True
if args.flatten_dist:
keep_zeros_prob = 0.03
else:
keep_zeros_prob = 1.0
if args.src_dir is None:
if args.map is None:
raise ValueError("You need to specify either --src_dir or --map")
if args.only_road:
raise ValueError("You cant specify both --map and --only_road")
if args.transform_only_road:
raise ValueError("You cant specify both --map and --transform_only_road")
write_imgs_from_map(map_name=args.map, save_dir=pathlib.Path(args.tgt_dir))
else:
if args.map is not None:
raise ValueError("You can't specify both --map and --src_dir")
write_imgs_from_srcdir(pathlib.Path(args.src_dir),
pathlib.Path(args.tgt_dir),
keep_zeros_prob=keep_zeros_prob,
only_road=args.only_road)
transform = Transform()
if args.tranform_only_road:
transform.add_transform(src.graphics.apply_color_filter)
if args.invert:
transform.add_transform(src.graphics.invert)
if args.overflow:
transform.add_transform(src.graphics.overflow)
if transform:
print("transforming images...")
transform_images(pathlib.Path(args.tgt_dir) / "train", transform)
transform_images(pathlib.Path(args.tgt_dir) / "test", transform)
if __name__ == "__main__":
main() | scripts/generate_dataset.py | import pathlib
import random
import argparse
import json
import shutil
from typing import List, Callable
import yaml
import numpy as np
import cv2
from gym_duckietown.envs import SimpleSimEnv
import src.graphics
class Transform:
def __init__(self):
self.transforms = []
def add_transform(self, transform: Callable):
self.transforms.append(transform)
def __call__(self, img):
for t in self.transforms:
img = t(img)
return img
def __bool__(self):
return bool(self.transforms)
def write_imgs_from_map(map_name: str, save_dir: pathlib.Path, test_percentage=0.3):
env = SimpleSimEnv(map_name=map_name)
file_path = pathlib.Path('experiments/demos_{}.json'.format(map_name))
if not file_path.is_file():
raise ValueError("Could not find the file containing the generated trajectories: {}".format(file_path))
data = json.loads(file_path.read_text())
demos = data['demos']
positions = map(lambda d: d['positions'], demos)
actions = map(lambda d: d['actions'], demos)
positions = sum(positions, [])
actions = sum(actions, [])
test_dir = save_dir / "test"
train_dir = save_dir / "train"
test_dir.mkdir(parents=True, exist_ok=True)
train_dir.mkdir(parents=True, exist_ok=True)
print("Found {} positions to be converted to images...".format(len(positions)))
for idx, position in enumerate(positions):
cur_pos = np.array(position[0])
cur_angle = position[1]
vels = actions[idx]
env.cur_pos = cur_pos
env.cur_angle = cur_angle
obs = env.render_obs().copy()
obs = obs[..., ::-1]
if random.random() < test_percentage:
img_path = test_dir / "{0:06d}.jpg".format(idx)
lbl_path = test_dir / "{0:06d}.txt".format(idx)
else:
img_path = train_dir / "{0:06d}.jpg".format(idx)
lbl_path = train_dir / "{0:06d}.txt".format(idx)
cv2.imwrite(img_path.as_posix(), obs)
lbl_path.write_text(" ".join(map(str, vels)))
def write_imgs_from_srcdir(src_dir: pathlib.Path, tgt_dir: pathlib.Path, keep_zeros_prob=1.0, only_road=False) -> None:
test_dir = tgt_dir / "test"
train_dir = tgt_dir / "train"
test_dir.mkdir(exist_ok=True)
train_dir.mkdir(exist_ok=True)
test_percentage = 0.3
test_count = 0
train_count = 0
for path in src_dir.iterdir():
if path.suffix != ".yaml":
continue
seq_info = yaml.load(path.read_text())
for entry in seq_info:
if abs(entry["omega"]) < 0.1 and random.random() > keep_zeros_prob:
continue
if random.random() < test_percentage:
img_tgt = test_dir / "{0:06d}.jpg".format(test_count)
lbl_tgt = test_dir / "{0:06d}.txt".format(test_count)
test_count += 1
else:
img_tgt = train_dir / "{0:06d}.jpg".format(train_count)
lbl_tgt = train_dir / "{0:06d}.txt".format(train_count)
train_count += 1
img_src = src_dir / entry["only_road_pth"] if only_road else src_dir / entry["path"]
shutil.copy(img_src.as_posix(), img_tgt.as_posix())
lbl_tgt.write_text(str(entry["omega"]))
def transform_images(src_dir: pathlib.Path, transform: Callable):
for pth in src_dir.iterdir():
if pth.suffix != ".jpg":
continue
img = cv2.imread(pth.as_posix())
img = transform(img)
cv2.imwrite(pth.as_posix(), img)
def main():
parser = argparse.ArgumentParser()
parser.add_argument("--map", help="Name of the map")
parser.add_argument("--src_dir", help="If specified, the data is assumed to be from sequences")
parser.add_argument("--tgt_dir", required=True, help="place to store the images")
parser.add_argument("--flatten_dist", action="store_true", help="if the data distribution should be flattened")
parser.add_argument("--only_road", action="store_true", help="use the only road images")
parser.add_argument("--transform_only_road", action="store_true", help="transforms the only road images")
parser.add_argument("--invert", action="store_true")
parser.add_argument("--overflow", action="store_true")
args = parser.parse_args()
if args.transform_only_road:
args.only_road = True
if args.flatten_dist:
keep_zeros_prob = 0.03
else:
keep_zeros_prob = 1.0
if args.src_dir is None:
if args.map is None:
raise ValueError("You need to specify either --src_dir or --map")
if args.only_road:
raise ValueError("You cant specify both --map and --only_road")
if args.transform_only_road:
raise ValueError("You cant specify both --map and --transform_only_road")
write_imgs_from_map(map_name=args.map, save_dir=pathlib.Path(args.tgt_dir))
else:
if args.map is not None:
raise ValueError("You can't specify both --map and --src_dir")
write_imgs_from_srcdir(pathlib.Path(args.src_dir),
pathlib.Path(args.tgt_dir),
keep_zeros_prob=keep_zeros_prob,
only_road=args.only_road)
transform = Transform()
if args.tranform_only_road:
transform.add_transform(src.graphics.apply_color_filter)
if args.invert:
transform.add_transform(src.graphics.invert)
if args.overflow:
transform.add_transform(src.graphics.overflow)
if transform:
print("transforming images...")
transform_images(pathlib.Path(args.tgt_dir) / "train", transform)
transform_images(pathlib.Path(args.tgt_dir) / "test", transform)
if __name__ == "__main__":
main() | 0.551574 | 0.313643 |
from abc import ABC, abstractmethod
import textwrap
from typing import Union, List, Dict
from pydantic import BaseModel
from nmea.nmea_utils import convert_bits_to_int, convert_int_to_bits, get_char_of_ascii_code, convert_decimal_to_ascii_code, \
convert_ascii_char_to_ascii6_code, add_padding, add_padding_0_bits, nmea_checksum
from ais.ais_utils import ShipDimension, ShipEta
from ais.constants import FieldBitsCountEnum, AISMsgType1ConstsEnum, NavigationStatusEnum, ShipTypeEnum, \
AISMsgType5ConstsEnum, FieldCharsCountEnum
class AISMsgPayload(BaseModel, ABC):
"""
Class represent an abstract class which acts as a parent class for other AIS msgs.
"""
repeat_indicator: int = 0
mmsi: int
# Number of fill bits requires to pad the data payload to a 6 bit boundary (range 0-5).
fill_bits: int = 0
@abstractmethod
def payload_bits(self) -> None:
pass
@property
def _payload_sixbits_list(self) -> List[str]:
"""
Returns msg payload as a list of six-character (bits) items.
"""
return textwrap.wrap(self.payload_bits, 6)
def encode(self) -> str:
"""
Returns message payload as a string of ASCII chars (AIVDM Payload Armoring).
Adds fill-bits (padding) to last six-bit item, if necessary.
"""
payload = ''
for item in self._payload_sixbits_list:
# Add fill-bits (padding) to last six-bit item, if necessary
while len(item) < 6:
item += '0'
self.fill_bits += 1
decimal_num = convert_bits_to_int(bits=item)
ascii_code = convert_decimal_to_ascii_code(decimal_num=decimal_num)
payload_char = get_char_of_ascii_code(ascii_code=ascii_code)
payload += payload_char
return payload
def __str__(self) -> str:
return f'{self.encode()}'
class Config:
"""
Pydantic config class.
"""
validate_assignment = True
underscore_attrs_are_private = True
class AISMsgPayloadType1(AISMsgPayload):
"""
Class represents payload of AIS msg type 1 (Position Report Class A).
Total number of bits in one AIS msg type 1 payload - 168 bits.
Payload example: 133m@ogP00PD;88MD5MTDww@2D7k
"""
nav_status: NavigationStatusEnum
speed: float = 0
lon: float
lat: float
course: float
# True heading - default value, not available (511)
true_heading: int = 511
timestamp: int = 60
@property
def _constants_bits(self) -> Dict[str, str]:
"""
Returns AIS const fields in bits.
"""
bits, const = FieldBitsCountEnum, AISMsgType1ConstsEnum.dict()
return {name: convert_int_to_bits(num=value, bits_count=bits[name]) for name, value in const.items()}
@property
def payload_bits(self) -> str:
"""
Returns msg payload as a bit string.
"""
# Constants in bits
consts = self._constants_bits
# Object attrs (fields) in bits
fields = self._fields_to_bits()
payload_fields_list = [
consts['msg_type'],
fields['repeat_indicator'],
fields['mmsi'],
fields['nav_status'],
consts['rot'],
fields['speed'],
consts['pos_accuracy'],
fields['lon'],
fields['lat'],
fields['course'],
fields['true_heading'],
fields['timestamp'],
consts['maneuver'],
consts['spare_type_1'],
consts['raim'],
consts['radio_status']
]
return ''.join(payload_fields_list)
def _fields_to_bits(self) -> Dict[str, str]:
"""
Converts AIS fields (attrs) values to bits.
"""
fields: dict = self.dict(exclude={'fill_bits'})
fields_in_bits = {}
for field, value in fields.items():
bits_count = FieldBitsCountEnum[field]
if field in ['lon', 'lat']:
# Conversion for 'lat' & 'lon' fields.
value = int(value * 600000)
bits_value = convert_int_to_bits(num=value, bits_count=bits_count, signed=True)
else:
if field in ['course', 'speed']:
# Change value for 'course' & 'speed' fields.
value = int(value * 10)
bits_value = convert_int_to_bits(num=value, bits_count=bits_count)
fields_in_bits[field] = bits_value
return fields_in_bits
class AISMsgPayloadType5(AISMsgPayload):
"""
Class represents payload of AIS msg type 5 (Static and Voyage Related Data).
Total number of bits in one AIS msg type 5 payload - 424 bits (without fill_bits).
The msg payload will be split into two AIVDM messages due to the maximum NMEA frame size limitation (82 chars).
Payload example: 55?MbV02;H;s<HtKR20EHE:0@T4@Dn2222222216L961O5Gf0NSQEp6ClRp888888888880
"""
imo: int
call_sign: str
ship_name: str
ship_type: ShipTypeEnum
dimension: ShipDimension
eta: ShipEta
draught: float
destination: str
@property
def _constants_bits(self) -> Dict[str, str]:
"""
Returns AIS const fields in bits.
"""
bits, const = FieldBitsCountEnum, AISMsgType5ConstsEnum.dict()
return {name: convert_int_to_bits(num=value, bits_count=bits[name]) for name, value in const.items()}
@property
def payload_bits(self) -> str:
"""
Returns msg payload as a bit string.
"""
# Constants in bits
consts = self._constants_bits
# Object attrs (fields) in bits
fields = self._fields_to_bits()
payload_fields_list = [
consts['msg_type'],
fields['repeat_indicator'],
fields['mmsi'],
consts['ais_version'],
fields['imo'],
fields['call_sign'],
fields['ship_name'],
fields['ship_type'],
fields['dimension'],
consts['pos_fix_type'],
fields['eta'],
fields['draught'],
fields['destination'],
consts['dte'],
consts['spare_type_5']
]
return ''.join(payload_fields_list)
def _fields_to_bits(self) -> Dict[str, str]:
"""
Converts AIS fields (attrs) values to bits.
"""
fields: dict = self.dict(exclude={'fill_bits', 'dimension', 'eta'})
fields_in_bits = {}
for field, value in fields.items():
bits_count = FieldBitsCountEnum[field]
if field in ['call_sign', 'ship_name', 'destination']:
# Add padding - only for testing purposes because the data validation is done in the AISTrack class.
chars_count = FieldCharsCountEnum[field]
if len(value) != chars_count:
value = add_padding(text=value, required_length=chars_count)
bits_value = ''
for char in value:
# Get ASCII6 code from ASCII char.
ascii6_code: int = convert_ascii_char_to_ascii6_code(char=char)
# Convert ASCII6 code to bits.
six_bits: str = convert_int_to_bits(num=ascii6_code, bits_count=6)
bits_value += six_bits
if field == 'call_sign' and len(bits_value) < bits_count:
# Only for 'call_sign'
bits_value, self.fill_bits = add_padding_0_bits(bits_string=bits_value, required_length=bits_count)
else:
if field == 'draught':
value = int(value * 10)
bits_value = convert_int_to_bits(num=value, bits_count=bits_count)
fields_in_bits[field] = bits_value
# Add 'dimension' & 'eta' fields
fields_in_bits['dimension'] = self.dimension.bits
fields_in_bits['eta'] = self.eta.bits
return fields_in_bits
class NMEAMessage:
"""
Class represents NMEA message. It can consist of a single sequence or multiple sequences.
"""
def __init__(self, payload: Union[AISMsgPayloadType1, AISMsgPayloadType5]) -> None:
self.nmea_msg_type = 'AIVDM'
self.payload = payload
self.payload_parts: list = textwrap.wrap(payload.encode(), 60)
# Default 1 unless it is multi-sentence msg
self.number_of_sentences = len(self.payload_parts)
self.ais_channel = 'A'
def get_sentences(self, seq_msg_id: int = 0) -> List[str]:
"""
Return list of NMEA sentences.
"""
nmea_sentences = []
for sentence_number, sentence_payload in enumerate(self.payload_parts, 1):
# Number of unused bits at end of encoded data (0-5)
fill_bits = self.payload.fill_bits if sentence_number == self.number_of_sentences else 0
# Can be digit between 0-9, but is common for both messages.
sequential_msg_id = seq_msg_id if self.number_of_sentences > 1 else ''
# Data from which the checksum will be calculated.
sentence_data = f'{self.nmea_msg_type},{self.number_of_sentences},{sentence_number},{sequential_msg_id},' \
f'{self.ais_channel},{sentence_payload},{fill_bits}'
nmea_sentences.append(f'!{sentence_data}*{nmea_checksum(sentence_data)}\r\n')
return nmea_sentences
if __name__ == '__main__':
pass | nmea/nmea_msg.py | from abc import ABC, abstractmethod
import textwrap
from typing import Union, List, Dict
from pydantic import BaseModel
from nmea.nmea_utils import convert_bits_to_int, convert_int_to_bits, get_char_of_ascii_code, convert_decimal_to_ascii_code, \
convert_ascii_char_to_ascii6_code, add_padding, add_padding_0_bits, nmea_checksum
from ais.ais_utils import ShipDimension, ShipEta
from ais.constants import FieldBitsCountEnum, AISMsgType1ConstsEnum, NavigationStatusEnum, ShipTypeEnum, \
AISMsgType5ConstsEnum, FieldCharsCountEnum
class AISMsgPayload(BaseModel, ABC):
"""
Class represent an abstract class which acts as a parent class for other AIS msgs.
"""
repeat_indicator: int = 0
mmsi: int
# Number of fill bits requires to pad the data payload to a 6 bit boundary (range 0-5).
fill_bits: int = 0
@abstractmethod
def payload_bits(self) -> None:
pass
@property
def _payload_sixbits_list(self) -> List[str]:
"""
Returns msg payload as a list of six-character (bits) items.
"""
return textwrap.wrap(self.payload_bits, 6)
def encode(self) -> str:
"""
Returns message payload as a string of ASCII chars (AIVDM Payload Armoring).
Adds fill-bits (padding) to last six-bit item, if necessary.
"""
payload = ''
for item in self._payload_sixbits_list:
# Add fill-bits (padding) to last six-bit item, if necessary
while len(item) < 6:
item += '0'
self.fill_bits += 1
decimal_num = convert_bits_to_int(bits=item)
ascii_code = convert_decimal_to_ascii_code(decimal_num=decimal_num)
payload_char = get_char_of_ascii_code(ascii_code=ascii_code)
payload += payload_char
return payload
def __str__(self) -> str:
return f'{self.encode()}'
class Config:
"""
Pydantic config class.
"""
validate_assignment = True
underscore_attrs_are_private = True
class AISMsgPayloadType1(AISMsgPayload):
"""
Class represents payload of AIS msg type 1 (Position Report Class A).
Total number of bits in one AIS msg type 1 payload - 168 bits.
Payload example: 133m@ogP00PD;88MD5MTDww@2D7k
"""
nav_status: NavigationStatusEnum
speed: float = 0
lon: float
lat: float
course: float
# True heading - default value, not available (511)
true_heading: int = 511
timestamp: int = 60
@property
def _constants_bits(self) -> Dict[str, str]:
"""
Returns AIS const fields in bits.
"""
bits, const = FieldBitsCountEnum, AISMsgType1ConstsEnum.dict()
return {name: convert_int_to_bits(num=value, bits_count=bits[name]) for name, value in const.items()}
@property
def payload_bits(self) -> str:
"""
Returns msg payload as a bit string.
"""
# Constants in bits
consts = self._constants_bits
# Object attrs (fields) in bits
fields = self._fields_to_bits()
payload_fields_list = [
consts['msg_type'],
fields['repeat_indicator'],
fields['mmsi'],
fields['nav_status'],
consts['rot'],
fields['speed'],
consts['pos_accuracy'],
fields['lon'],
fields['lat'],
fields['course'],
fields['true_heading'],
fields['timestamp'],
consts['maneuver'],
consts['spare_type_1'],
consts['raim'],
consts['radio_status']
]
return ''.join(payload_fields_list)
def _fields_to_bits(self) -> Dict[str, str]:
"""
Converts AIS fields (attrs) values to bits.
"""
fields: dict = self.dict(exclude={'fill_bits'})
fields_in_bits = {}
for field, value in fields.items():
bits_count = FieldBitsCountEnum[field]
if field in ['lon', 'lat']:
# Conversion for 'lat' & 'lon' fields.
value = int(value * 600000)
bits_value = convert_int_to_bits(num=value, bits_count=bits_count, signed=True)
else:
if field in ['course', 'speed']:
# Change value for 'course' & 'speed' fields.
value = int(value * 10)
bits_value = convert_int_to_bits(num=value, bits_count=bits_count)
fields_in_bits[field] = bits_value
return fields_in_bits
class AISMsgPayloadType5(AISMsgPayload):
"""
Class represents payload of AIS msg type 5 (Static and Voyage Related Data).
Total number of bits in one AIS msg type 5 payload - 424 bits (without fill_bits).
The msg payload will be split into two AIVDM messages due to the maximum NMEA frame size limitation (82 chars).
Payload example: 55?MbV02;H;s<HtKR20EHE:0@T4@Dn2222222216L961O5Gf0NSQEp6ClRp888888888880
"""
imo: int
call_sign: str
ship_name: str
ship_type: ShipTypeEnum
dimension: ShipDimension
eta: ShipEta
draught: float
destination: str
@property
def _constants_bits(self) -> Dict[str, str]:
"""
Returns AIS const fields in bits.
"""
bits, const = FieldBitsCountEnum, AISMsgType5ConstsEnum.dict()
return {name: convert_int_to_bits(num=value, bits_count=bits[name]) for name, value in const.items()}
@property
def payload_bits(self) -> str:
"""
Returns msg payload as a bit string.
"""
# Constants in bits
consts = self._constants_bits
# Object attrs (fields) in bits
fields = self._fields_to_bits()
payload_fields_list = [
consts['msg_type'],
fields['repeat_indicator'],
fields['mmsi'],
consts['ais_version'],
fields['imo'],
fields['call_sign'],
fields['ship_name'],
fields['ship_type'],
fields['dimension'],
consts['pos_fix_type'],
fields['eta'],
fields['draught'],
fields['destination'],
consts['dte'],
consts['spare_type_5']
]
return ''.join(payload_fields_list)
def _fields_to_bits(self) -> Dict[str, str]:
"""
Converts AIS fields (attrs) values to bits.
"""
fields: dict = self.dict(exclude={'fill_bits', 'dimension', 'eta'})
fields_in_bits = {}
for field, value in fields.items():
bits_count = FieldBitsCountEnum[field]
if field in ['call_sign', 'ship_name', 'destination']:
# Add padding - only for testing purposes because the data validation is done in the AISTrack class.
chars_count = FieldCharsCountEnum[field]
if len(value) != chars_count:
value = add_padding(text=value, required_length=chars_count)
bits_value = ''
for char in value:
# Get ASCII6 code from ASCII char.
ascii6_code: int = convert_ascii_char_to_ascii6_code(char=char)
# Convert ASCII6 code to bits.
six_bits: str = convert_int_to_bits(num=ascii6_code, bits_count=6)
bits_value += six_bits
if field == 'call_sign' and len(bits_value) < bits_count:
# Only for 'call_sign'
bits_value, self.fill_bits = add_padding_0_bits(bits_string=bits_value, required_length=bits_count)
else:
if field == 'draught':
value = int(value * 10)
bits_value = convert_int_to_bits(num=value, bits_count=bits_count)
fields_in_bits[field] = bits_value
# Add 'dimension' & 'eta' fields
fields_in_bits['dimension'] = self.dimension.bits
fields_in_bits['eta'] = self.eta.bits
return fields_in_bits
class NMEAMessage:
"""
Class represents NMEA message. It can consist of a single sequence or multiple sequences.
"""
def __init__(self, payload: Union[AISMsgPayloadType1, AISMsgPayloadType5]) -> None:
self.nmea_msg_type = 'AIVDM'
self.payload = payload
self.payload_parts: list = textwrap.wrap(payload.encode(), 60)
# Default 1 unless it is multi-sentence msg
self.number_of_sentences = len(self.payload_parts)
self.ais_channel = 'A'
def get_sentences(self, seq_msg_id: int = 0) -> List[str]:
"""
Return list of NMEA sentences.
"""
nmea_sentences = []
for sentence_number, sentence_payload in enumerate(self.payload_parts, 1):
# Number of unused bits at end of encoded data (0-5)
fill_bits = self.payload.fill_bits if sentence_number == self.number_of_sentences else 0
# Can be digit between 0-9, but is common for both messages.
sequential_msg_id = seq_msg_id if self.number_of_sentences > 1 else ''
# Data from which the checksum will be calculated.
sentence_data = f'{self.nmea_msg_type},{self.number_of_sentences},{sentence_number},{sequential_msg_id},' \
f'{self.ais_channel},{sentence_payload},{fill_bits}'
nmea_sentences.append(f'!{sentence_data}*{nmea_checksum(sentence_data)}\r\n')
return nmea_sentences
if __name__ == '__main__':
pass | 0.882479 | 0.397295 |
import boto3
import ban_handler
import cgf_lambda_settings
import cgf_service_client
import errors
import identity_validator
import service
UNKNOWN_PLAYER_ERROR_MESSAGE = "User '{}' is not registered with the PlayerAccount Gem or has not sent data to the Leaderboards Gem"
@service.api
def post(request, user=None):
"""
Call PlayerAccount to ban the player.
Player must be a registered uer in the PlayerAccount Gem and Leaderboards must have seen the player
via a data request to have a mapping between the user name and the cognition identity (for get_id_from_user)
"""
print("Handling player ban for {}".format(user))
interface_url = cgf_lambda_settings.get_service_url("CloudGemPlayerAccount_banplayer_1_0_0")
if not interface_url:
return {
"status": ban_handler.ban(user)
}
service_client = cgf_service_client.for_url(interface_url, verbose=True, session=boto3._get_default_session())
navigation = service_client.navigate('playerban')
cog_id = identity_validator.get_id_from_user(user)
if cog_id is None:
raise errors.ClientError(UNKNOWN_PLAYER_ERROR_MESSAGE.format(user))
result = navigation.POST(
{"id": cog_id}
)
return result.DATA
@service.api
def delete(request, user=None):
"""
Call PlayerAccount to unban the player
Player must be a registered uer in the PlayerAccount Gem and Leaderboards must have seen the player
via a data request to have a mapping between the user name and the cognition identity (for get_id_from_user)
"""
print("Handling player unban for {}".format(user))
interface_url = cgf_lambda_settings.get_service_url("CloudGemPlayerAccount_banplayer_1_0_0")
if not interface_url:
return {
"status": ban_handler.lift_ban(user)
}
service_client = cgf_service_client.for_url(interface_url, verbose=True, session=boto3._get_default_session())
navigation = service_client.navigate('playerban')
cog_id = identity_validator.get_id_from_user(user)
if cog_id is None:
raise errors.ClientError(UNKNOWN_PLAYER_ERROR_MESSAGE.format(user))
result = navigation.DELETE(
{"id": cog_id}
)
return result.DATA | dev/Gems/CloudGemLeaderboard/AWS/lambda-code/ServiceLambda/api/player_ban.py |
import boto3
import ban_handler
import cgf_lambda_settings
import cgf_service_client
import errors
import identity_validator
import service
UNKNOWN_PLAYER_ERROR_MESSAGE = "User '{}' is not registered with the PlayerAccount Gem or has not sent data to the Leaderboards Gem"
@service.api
def post(request, user=None):
"""
Call PlayerAccount to ban the player.
Player must be a registered uer in the PlayerAccount Gem and Leaderboards must have seen the player
via a data request to have a mapping between the user name and the cognition identity (for get_id_from_user)
"""
print("Handling player ban for {}".format(user))
interface_url = cgf_lambda_settings.get_service_url("CloudGemPlayerAccount_banplayer_1_0_0")
if not interface_url:
return {
"status": ban_handler.ban(user)
}
service_client = cgf_service_client.for_url(interface_url, verbose=True, session=boto3._get_default_session())
navigation = service_client.navigate('playerban')
cog_id = identity_validator.get_id_from_user(user)
if cog_id is None:
raise errors.ClientError(UNKNOWN_PLAYER_ERROR_MESSAGE.format(user))
result = navigation.POST(
{"id": cog_id}
)
return result.DATA
@service.api
def delete(request, user=None):
"""
Call PlayerAccount to unban the player
Player must be a registered uer in the PlayerAccount Gem and Leaderboards must have seen the player
via a data request to have a mapping between the user name and the cognition identity (for get_id_from_user)
"""
print("Handling player unban for {}".format(user))
interface_url = cgf_lambda_settings.get_service_url("CloudGemPlayerAccount_banplayer_1_0_0")
if not interface_url:
return {
"status": ban_handler.lift_ban(user)
}
service_client = cgf_service_client.for_url(interface_url, verbose=True, session=boto3._get_default_session())
navigation = service_client.navigate('playerban')
cog_id = identity_validator.get_id_from_user(user)
if cog_id is None:
raise errors.ClientError(UNKNOWN_PLAYER_ERROR_MESSAGE.format(user))
result = navigation.DELETE(
{"id": cog_id}
)
return result.DATA | 0.425725 | 0.130037 |
import pwd
import re
import sys
from subprocess import check_output, CalledProcessError
users = [user for user in pwd.getpwall() if 1000 <= user.pw_uid < 2000]
try:
lxc_cmd = ["lxc", "ls", "volatile.last_state.power=RUNNING", "-c", "n", "--format", "csv"]
lxc_running = check_output(lxc_cmd, universal_newlines=True).splitlines()
except (CalledProcessError, FileNotFoundError):
lxc_running = []
def get_cpu_usage():
out = check_output(["systemd-cgtop", "-b", "-n", "2", "-c", "--raw"], universal_newlines=True)
outlines = out.splitlines()
regex_user = re.compile(r'^/user.slice/user-(1\d{3}).slice ')
regex_lxc = re.compile(r'^/lxc/(.+?) ')
cpu_usage_users = {}
cpu_usage_lxc = {}
for line in outlines[len(outlines)//2:]:
match_user = regex_user.match(line)
match_lxc = regex_lxc.match(line)
if match_user or match_lxc:
_, _, cpu, _, _, _ = line.split()
if cpu == '-':
continue
if match_user:
uid = int(match_user.group(1))
cpu_usage_users[uid] = cpu
elif match_lxc:
lxc_label = match_lxc.group(1)
cpu_usage_lxc[lxc_label] = cpu
else:
continue
for user in users:
label = "u{}".format(user.pw_uid)
value = cpu_usage_users.get(user.pw_uid, 'U')
print("{}.value {}".format(label, value))
for lxc in lxc_running:
label = "lxc_{}".format(re.sub(r'[^a-zA-Z0-9_]', '_', lxc))
value = cpu_usage_lxc.get(lxc, 'U')
print("{}.value {}".format(label, value))
def output_config():
print("graph_title CPU usage per user and LXC containers")
print("graph_vlabel %")
print("graph_category system")
print("graph_args -l 0 -u 3200")
print("graph_scale no")
print("graph_total Total")
first = True
for user in users:
label = "u{}".format(user.pw_uid)
print("{}.label {}".format(label, user.pw_name))
print("{}.info Amount of CPU used by {}".format(label, user.pw_name))
if first:
print("{}.draw AREA".format(label))
else:
print("{}.draw STACK".format(label))
print("{}.min 0".format(label))
first = False
for lxc in lxc_running:
label = "lxc_{}".format(re.sub(r'[^a-zA-Z0-9_]', '_', lxc))
print("{}.label {}".format(label, lxc))
print("{}.info Amount of CPU used by LXC container {}".format(label, lxc))
if first:
print("{}.draw AREA".format(label))
else:
print("{}.draw STACK".format(label))
print("{}.min 0".format(label))
first = False
def main():
if len(sys.argv) == 1:
get_cpu_usage()
if len(sys.argv) == 2:
if sys.argv[1] == 'config':
output_config()
if __name__ == '__main__':
main() | cpu_usage_per_user.py |
import pwd
import re
import sys
from subprocess import check_output, CalledProcessError
users = [user for user in pwd.getpwall() if 1000 <= user.pw_uid < 2000]
try:
lxc_cmd = ["lxc", "ls", "volatile.last_state.power=RUNNING", "-c", "n", "--format", "csv"]
lxc_running = check_output(lxc_cmd, universal_newlines=True).splitlines()
except (CalledProcessError, FileNotFoundError):
lxc_running = []
def get_cpu_usage():
out = check_output(["systemd-cgtop", "-b", "-n", "2", "-c", "--raw"], universal_newlines=True)
outlines = out.splitlines()
regex_user = re.compile(r'^/user.slice/user-(1\d{3}).slice ')
regex_lxc = re.compile(r'^/lxc/(.+?) ')
cpu_usage_users = {}
cpu_usage_lxc = {}
for line in outlines[len(outlines)//2:]:
match_user = regex_user.match(line)
match_lxc = regex_lxc.match(line)
if match_user or match_lxc:
_, _, cpu, _, _, _ = line.split()
if cpu == '-':
continue
if match_user:
uid = int(match_user.group(1))
cpu_usage_users[uid] = cpu
elif match_lxc:
lxc_label = match_lxc.group(1)
cpu_usage_lxc[lxc_label] = cpu
else:
continue
for user in users:
label = "u{}".format(user.pw_uid)
value = cpu_usage_users.get(user.pw_uid, 'U')
print("{}.value {}".format(label, value))
for lxc in lxc_running:
label = "lxc_{}".format(re.sub(r'[^a-zA-Z0-9_]', '_', lxc))
value = cpu_usage_lxc.get(lxc, 'U')
print("{}.value {}".format(label, value))
def output_config():
print("graph_title CPU usage per user and LXC containers")
print("graph_vlabel %")
print("graph_category system")
print("graph_args -l 0 -u 3200")
print("graph_scale no")
print("graph_total Total")
first = True
for user in users:
label = "u{}".format(user.pw_uid)
print("{}.label {}".format(label, user.pw_name))
print("{}.info Amount of CPU used by {}".format(label, user.pw_name))
if first:
print("{}.draw AREA".format(label))
else:
print("{}.draw STACK".format(label))
print("{}.min 0".format(label))
first = False
for lxc in lxc_running:
label = "lxc_{}".format(re.sub(r'[^a-zA-Z0-9_]', '_', lxc))
print("{}.label {}".format(label, lxc))
print("{}.info Amount of CPU used by LXC container {}".format(label, lxc))
if first:
print("{}.draw AREA".format(label))
else:
print("{}.draw STACK".format(label))
print("{}.min 0".format(label))
first = False
def main():
if len(sys.argv) == 1:
get_cpu_usage()
if len(sys.argv) == 2:
if sys.argv[1] == 'config':
output_config()
if __name__ == '__main__':
main() | 0.12932 | 0.110112 |
from linebot.models import TextMessage, VideoMessage, ImageMessage, TextSendMessage, ButtonsTemplate, PostbackTemplateAction, TemplateSendMessage, CarouselTemplate, CarouselColumn
from marketchat.util.beacon import make_beacon
from marketchat.util.line_bot import bot_api
from marketchat.util.router import Router, overlay_router
from marketchat.db import catalog
route = Router()
@route.handle_postback_event(action="buy")
def handle_buy_product(event, data):
bot_api.reply_message(event.reply_token, TemplateSendMessage(
alt_text='Payment Method', template=ButtonsTemplate(
title='Payment Method?', text='Choose method:', actions=[
PostbackTemplateAction(
label='Payment by Transfer', data=make_beacon('transfer', itemId=1)),
PostbackTemplateAction(
label='Payment by COD', data=make_beacon('cod', itemId=1))
])))
return True
@route.handle_postback_event(action="transfer")
def handle_transfer(event, data):
bot_api.reply_message(event.reply_token, TextSendMessage(text="""
Seller status verdict are safe.
Seller name: <NAME>
Account no.: 900-00-123-123
Bank name: Mandiri
Transfer payment is guaranteed to be safe.
If you have any dificulty in the payment,
please contact our administrator: +62818885.
Type "validate" to validate your transfer.
""".strip()))
return True
@route.handle_postback_event(action="cod")
def handle_cod(event, data):
bot_api.reply_message(event.reply_token, TemplateSendMessage(
alt_text='Payment COD', template=ButtonsTemplate(
title='When?', text='Choose schedule:', actions=[
PostbackTemplateAction(
label='30 Nov 08.00-Marina', data=make_beacon('choosecod', itemId=1)),
PostbackTemplateAction(
label='20 Dec 19.00-Sydney', data=make_beacon('choosecod', itemId=2))
])))
return True
@route.handle_postback_event(action="choosecod")
def handle_choose_cod(event, data):
bot_api.reply_message(event.reply_token, TextSendMessage(text="""
Your seller has been contacted by our system.
Please meet your seller at the meeting point on time.
Seller name: <NAME>.
Seller contact: +6281-222-333-444.
""".strip()))
return True
validate_overlay = Router()
@validate_overlay.handle_message_event(message_type=ImageMessage)
def handle_image_overlay_message(event):
bot_api.reply_message(event.reply_token,
TextSendMessage(text="""
The system already validate your evidence of transfer.
Your transfer are accepted by our system.
Our system already contacted the seller. You can check the status of your order.
""".strip()))
return True
@validate_overlay.handle_message_event(message_type=VideoMessage)
def handle_video_overlay_message(event):
bot_api.reply_message(event.reply_token,
TextSendMessage(text="""
The system already validate your evidence of transfer.
Your transfer are not accepted by our system.
Please upload your evidence of transfer again.
""".strip()))
return True
@route.handle_message_event(message_type=TextMessage)
def handle_validate_message(event):
text = event.message.text.strip().lower()
if text == 'validate':
overlay_router(event, validate_overlay)
bot_api.reply_message(event.reply_token,
TextSendMessage(text="""
Please upload your evidence of transfer.
""".strip()))
else:
bot_api.reply_message(event.reply_token, TextSendMessage(text="""
Need help?
You can scroll up and select an option from the menus/cards shown previously.
You can also view the main menu by typing "menu".
""".strip()))
return True
__all__ = ['route'] | marketchat/handle/payment.py | from linebot.models import TextMessage, VideoMessage, ImageMessage, TextSendMessage, ButtonsTemplate, PostbackTemplateAction, TemplateSendMessage, CarouselTemplate, CarouselColumn
from marketchat.util.beacon import make_beacon
from marketchat.util.line_bot import bot_api
from marketchat.util.router import Router, overlay_router
from marketchat.db import catalog
route = Router()
@route.handle_postback_event(action="buy")
def handle_buy_product(event, data):
bot_api.reply_message(event.reply_token, TemplateSendMessage(
alt_text='Payment Method', template=ButtonsTemplate(
title='Payment Method?', text='Choose method:', actions=[
PostbackTemplateAction(
label='Payment by Transfer', data=make_beacon('transfer', itemId=1)),
PostbackTemplateAction(
label='Payment by COD', data=make_beacon('cod', itemId=1))
])))
return True
@route.handle_postback_event(action="transfer")
def handle_transfer(event, data):
bot_api.reply_message(event.reply_token, TextSendMessage(text="""
Seller status verdict are safe.
Seller name: <NAME>
Account no.: 900-00-123-123
Bank name: Mandiri
Transfer payment is guaranteed to be safe.
If you have any dificulty in the payment,
please contact our administrator: +62818885.
Type "validate" to validate your transfer.
""".strip()))
return True
@route.handle_postback_event(action="cod")
def handle_cod(event, data):
bot_api.reply_message(event.reply_token, TemplateSendMessage(
alt_text='Payment COD', template=ButtonsTemplate(
title='When?', text='Choose schedule:', actions=[
PostbackTemplateAction(
label='30 Nov 08.00-Marina', data=make_beacon('choosecod', itemId=1)),
PostbackTemplateAction(
label='20 Dec 19.00-Sydney', data=make_beacon('choosecod', itemId=2))
])))
return True
@route.handle_postback_event(action="choosecod")
def handle_choose_cod(event, data):
bot_api.reply_message(event.reply_token, TextSendMessage(text="""
Your seller has been contacted by our system.
Please meet your seller at the meeting point on time.
Seller name: <NAME>.
Seller contact: +6281-222-333-444.
""".strip()))
return True
validate_overlay = Router()
@validate_overlay.handle_message_event(message_type=ImageMessage)
def handle_image_overlay_message(event):
bot_api.reply_message(event.reply_token,
TextSendMessage(text="""
The system already validate your evidence of transfer.
Your transfer are accepted by our system.
Our system already contacted the seller. You can check the status of your order.
""".strip()))
return True
@validate_overlay.handle_message_event(message_type=VideoMessage)
def handle_video_overlay_message(event):
bot_api.reply_message(event.reply_token,
TextSendMessage(text="""
The system already validate your evidence of transfer.
Your transfer are not accepted by our system.
Please upload your evidence of transfer again.
""".strip()))
return True
@route.handle_message_event(message_type=TextMessage)
def handle_validate_message(event):
text = event.message.text.strip().lower()
if text == 'validate':
overlay_router(event, validate_overlay)
bot_api.reply_message(event.reply_token,
TextSendMessage(text="""
Please upload your evidence of transfer.
""".strip()))
else:
bot_api.reply_message(event.reply_token, TextSendMessage(text="""
Need help?
You can scroll up and select an option from the menus/cards shown previously.
You can also view the main menu by typing "menu".
""".strip()))
return True
__all__ = ['route'] | 0.340485 | 0.117496 |
import os
import numpy as np
from collections import OrderedDict
import SimpleITK as sitk
import shutil
from batchgenerators.utilities.file_and_folder_operations import *
from nnunet.paths import nnUNet_raw_data
def get_identifier(img_path):
group_id = os.path.split(os.path.split(img_path)[0])[1]
id = os.path.split(img_path)[1].split('.')[0]
identifier = '%s_%s' % (group_id, id)
return identifier
def load_id_list(txt_file_path):
with open(txt_file_path, 'r') as f:
id_list = f.read()
return id_list
def unstack(img_path, seg_path):
# Load image and segmention as numpy arrays
img = sitk.ReadImage(img_path)
img_npy = sitk.GetArrayFromImage(img)
seg = sitk.ReadImage(seg_path)
seg_npy = sitk.GetArrayFromImage(seg)
# Unstack the slices
n_stack = np.min(img.shape)
img_slices = np.dsplit(
img.transpose(np.argsort(img_npy.shape)[::-1]), n_stack)
seg_slices = np.dsplit(
seg.transpose(np.argsort(seg_npy.shape)[::-1]), n_stack)
return img_slices, seg_slices
if __name__ == '__main__':
task_name = "Task111_FetalBrain2d"
# For JADE
raw_data_folder = '/home_directory/data/FetalBrainSegmentation_Dataset'
target_base = join(nnUNet_raw_data, task_name)
target_imagesTr = join(target_base, "imagesTr")
target_imagesVal = join(target_base, "imagesVal")
target_imagesTs = join(target_base, "imagesTs")
target_labelsTr = join(target_base, "labelsTr")
maybe_mkdir_p(target_imagesTr)
maybe_mkdir_p(target_imagesVal)
maybe_mkdir_p(target_imagesTs)
maybe_mkdir_p(target_labelsTr)
groups = {
'GroupA': {'val': 'list_validation_h_files.txt',
'test': 'list_inference_h_files.txt'},
'GroupB1': {'val': 'list_validation_p_files.txt',
'test': 'list_inference_p1_files.txt'},
'GroupB2': {'val': 'list_validation_p_files.txt',
'test': 'list_inference_p2_files.txt'},
'GroupC': {'val': 'list_validation_p_files.txt',
'test': 'list_inference_C_files.txt'},
'GroupD': {'val': 'list_validation_p_files.txt',
'test': 'list_inference_D_files.txt'},
'GroupE': {'val': 'list_validation_p_files.txt',
'test': 'list_inference_E_files.txt'},
'GroupF': {'val': 'list_validation_p_files.txt',
'test': 'list_inference_F_files.txt'},
}
train_slices_names = []
valid_cases_names = []
test_cases_names = []
for group in list(groups.keys()):
group_path = os.path.join(raw_data_folder, group)
img_name_list = [
n for n in os.listdir(group_path)
if not n.startswith('.') and 'Image' in n
]
val_id_list = load_id_list(groups[group]['val'])
test_id_list = load_id_list(groups[group]['test'])
for image_name in img_name_list:
identifier = '%s_%s' % (group, image_name.split('.')[0])
img_path = os.path.join(group_path, image_name)
seg_path = img_path.replace('Image', 'Label')
pat_id = image_name.replace('_Image.nii.gz', '')
# Validation data (full volume)
if pat_id in val_id_list:
shutil.copy(img_path, join(target_imagesVal, identifier + "_0000.nii.gz"))
valid_cases_names.append(identifier)
# Testing data (full volume)
elif pat_id in test_id_list:
shutil.copy(img_path, join(target_imagesTs, identifier + "_0000.nii.gz"))
test_cases_names.append(identifier)
# Training data (slices)
else:
img_slices, seg_slices = unstack(img_path, seg_path)
for i in range(len(img_slices)):
img_slice = sitk.GetImageFromArray(img_slices[i])
seg_slice = sitk.GetImageFromArray(seg_slices[i])
slice_name = '%s_%s' % (identifier, str(i).zfill(3))
import pdb
pdb.set_trace()
sitk.WriteImage(
img_slice,
os.path.join(target_imagesTr, '%s_0000.nii.gz' % slice_name),
)
sitk.WriteImage(
seg_slice,
os.path.join(target_labelsTr, '%s.nii.gz' % slice_name),
)
train_slices_names.append(slice_name)
print('Found %d training slices.' % len(train_slices_names))
# Dataset json file
json_dict = OrderedDict()
json_dict['name'] = "FetalBrain2d"
json_dict['description'] = "nothing"
json_dict['tensorImageSize'] = "4D"
json_dict['reference'] = "no reference"
json_dict['licence'] = "no license"
json_dict['release'] = "0.0"
json_dict['modality'] = {
"0": "T2",
}
json_dict['labels'] = {
"0": "background",
"1": "brain",
}
json_dict['numTraining'] = len(train_slices_names)
json_dict['numTest'] = 0
json_dict['training'] = [{'image': "./imagesTr/%s.nii.gz" % i, "label": "./labelsTr/%s.nii.gz" % i} for i in
train_slices_names]
json_dict['test'] = []
save_json(json_dict, join(target_base, "dataset.json")) | docker/third-party/nnUNet/nnunet/dataset_conversion/Task111_FetalBrain2d.py | import os
import numpy as np
from collections import OrderedDict
import SimpleITK as sitk
import shutil
from batchgenerators.utilities.file_and_folder_operations import *
from nnunet.paths import nnUNet_raw_data
def get_identifier(img_path):
group_id = os.path.split(os.path.split(img_path)[0])[1]
id = os.path.split(img_path)[1].split('.')[0]
identifier = '%s_%s' % (group_id, id)
return identifier
def load_id_list(txt_file_path):
with open(txt_file_path, 'r') as f:
id_list = f.read()
return id_list
def unstack(img_path, seg_path):
# Load image and segmention as numpy arrays
img = sitk.ReadImage(img_path)
img_npy = sitk.GetArrayFromImage(img)
seg = sitk.ReadImage(seg_path)
seg_npy = sitk.GetArrayFromImage(seg)
# Unstack the slices
n_stack = np.min(img.shape)
img_slices = np.dsplit(
img.transpose(np.argsort(img_npy.shape)[::-1]), n_stack)
seg_slices = np.dsplit(
seg.transpose(np.argsort(seg_npy.shape)[::-1]), n_stack)
return img_slices, seg_slices
if __name__ == '__main__':
task_name = "Task111_FetalBrain2d"
# For JADE
raw_data_folder = '/home_directory/data/FetalBrainSegmentation_Dataset'
target_base = join(nnUNet_raw_data, task_name)
target_imagesTr = join(target_base, "imagesTr")
target_imagesVal = join(target_base, "imagesVal")
target_imagesTs = join(target_base, "imagesTs")
target_labelsTr = join(target_base, "labelsTr")
maybe_mkdir_p(target_imagesTr)
maybe_mkdir_p(target_imagesVal)
maybe_mkdir_p(target_imagesTs)
maybe_mkdir_p(target_labelsTr)
groups = {
'GroupA': {'val': 'list_validation_h_files.txt',
'test': 'list_inference_h_files.txt'},
'GroupB1': {'val': 'list_validation_p_files.txt',
'test': 'list_inference_p1_files.txt'},
'GroupB2': {'val': 'list_validation_p_files.txt',
'test': 'list_inference_p2_files.txt'},
'GroupC': {'val': 'list_validation_p_files.txt',
'test': 'list_inference_C_files.txt'},
'GroupD': {'val': 'list_validation_p_files.txt',
'test': 'list_inference_D_files.txt'},
'GroupE': {'val': 'list_validation_p_files.txt',
'test': 'list_inference_E_files.txt'},
'GroupF': {'val': 'list_validation_p_files.txt',
'test': 'list_inference_F_files.txt'},
}
train_slices_names = []
valid_cases_names = []
test_cases_names = []
for group in list(groups.keys()):
group_path = os.path.join(raw_data_folder, group)
img_name_list = [
n for n in os.listdir(group_path)
if not n.startswith('.') and 'Image' in n
]
val_id_list = load_id_list(groups[group]['val'])
test_id_list = load_id_list(groups[group]['test'])
for image_name in img_name_list:
identifier = '%s_%s' % (group, image_name.split('.')[0])
img_path = os.path.join(group_path, image_name)
seg_path = img_path.replace('Image', 'Label')
pat_id = image_name.replace('_Image.nii.gz', '')
# Validation data (full volume)
if pat_id in val_id_list:
shutil.copy(img_path, join(target_imagesVal, identifier + "_0000.nii.gz"))
valid_cases_names.append(identifier)
# Testing data (full volume)
elif pat_id in test_id_list:
shutil.copy(img_path, join(target_imagesTs, identifier + "_0000.nii.gz"))
test_cases_names.append(identifier)
# Training data (slices)
else:
img_slices, seg_slices = unstack(img_path, seg_path)
for i in range(len(img_slices)):
img_slice = sitk.GetImageFromArray(img_slices[i])
seg_slice = sitk.GetImageFromArray(seg_slices[i])
slice_name = '%s_%s' % (identifier, str(i).zfill(3))
import pdb
pdb.set_trace()
sitk.WriteImage(
img_slice,
os.path.join(target_imagesTr, '%s_0000.nii.gz' % slice_name),
)
sitk.WriteImage(
seg_slice,
os.path.join(target_labelsTr, '%s.nii.gz' % slice_name),
)
train_slices_names.append(slice_name)
print('Found %d training slices.' % len(train_slices_names))
# Dataset json file
json_dict = OrderedDict()
json_dict['name'] = "FetalBrain2d"
json_dict['description'] = "nothing"
json_dict['tensorImageSize'] = "4D"
json_dict['reference'] = "no reference"
json_dict['licence'] = "no license"
json_dict['release'] = "0.0"
json_dict['modality'] = {
"0": "T2",
}
json_dict['labels'] = {
"0": "background",
"1": "brain",
}
json_dict['numTraining'] = len(train_slices_names)
json_dict['numTest'] = 0
json_dict['training'] = [{'image': "./imagesTr/%s.nii.gz" % i, "label": "./labelsTr/%s.nii.gz" % i} for i in
train_slices_names]
json_dict['test'] = []
save_json(json_dict, join(target_base, "dataset.json")) | 0.338514 | 0.187821 |
# Author: <NAME>, 2017
'''
Formatter for the brat stand-off format.
'''
import re
import logging
import itertools as it
from collections import defaultdict
from .export import StreamFormatter
class BratFormatter:
'''
Distributor for delegating to the actual formatters.
'''
def __init__(self, config, fmt_name):
# Brat needs two output files.
# Create a subformatter for each.
self.txt = BratTxtFormatter(config, fmt_name)
self.ann = BratAnnFormatter(config, fmt_name)
def export(self, content):
'''
Write two disk files.
'''
self.txt.export(content)
self.ann.export(content)
def write(self, stream, content):
'''
Write text and annotations to the same stream.
'''
logging.warning('writing brat text and annotations to the same file')
self.txt.write(stream, content)
self.ann.write(stream, content)
def dump(self, content):
'''
Export to a pair <str, str> of text and annotations.
'''
return (self.txt.dump(content),
self.ann.dump(content))
class BratTxtFormatter(StreamFormatter):
'''
Plain text, on which brat's stand-off annotations are based.
'''
ext = 'txt'
@staticmethod
def write(stream, content):
stream.writelines(content.iter_text())
class BratAnnFormatter(StreamFormatter):
'''
Stand-off annotations for brat.
'''
ext = 'ann'
_fieldname_pattern = re.compile(r'\W+')
def __init__(self, config, fmt_name):
super().__init__(config, fmt_name)
self.attributes = list(self._attribute_indices(self.config))
@staticmethod
def _attribute_indices(config):
for att, atype in config.p.brat_attributes:
try:
index = config.entity_fields.index(att)
except ValueError:
raise LookupError(
'brat attribute: unknown entity field: {}'.format(att))
yield index, att, atype
def write(self, stream, content):
counters = [it.count(1) for _ in range(3)]
for article in content.get_subelements('article', include_self=True):
self._write_anno(stream, article, counters)
def _write_anno(self, stream, article, counters):
'''
Write article-level annotations with continuous IDs.
'''
c_t, c_n, c_a = counters
mentions = self._get_mentions(article)
for (loc_type, entities), t in zip(sorted(mentions.items()), c_t):
stream.write('T{0}\t{3} {1} {2}\t{4}\n'.format(t, *loc_type))
for e, n in zip(entities, c_n):
# Add all remaining information as "AnnotatorNotes".
self._write_anno_note(stream, e, t, n, c_a)
def _write_anno_note(self, stream, entity, t, n, c_a):
info = '\t'.join(entity.info[1:])
stream.write('#{}\tAnnotatorNotes T{}\t{}\n'.format(n, t, info))
for i, att, atype in self.attributes:
value = entity.info[i]
if value:
stream.write(self._attribute(atype, att, value, next(c_a), t))
def _get_mentions(self, article):
mentions = defaultdict(list)
for e in article.iter_entities():
name = self._valid_fieldname(e.type)
mentions[e.start, e.end, name, e.text].append(e)
return mentions
@classmethod
def _valid_fieldname(cls, name):
return cls._fieldname_pattern.sub('_', name)
@staticmethod
def _attribute(multivalue, key, value, n_a, n_t):
if multivalue:
# Multi-valued attributes.
return 'A{}\t{} T{} {}\n'.format(n_a, key, n_t, value)
else:
# Binary attributes.
return 'A{}\t{} T{}\n'.format(n_a, value, n_t) | main/oger/doc/brat.py |
# Author: <NAME>, 2017
'''
Formatter for the brat stand-off format.
'''
import re
import logging
import itertools as it
from collections import defaultdict
from .export import StreamFormatter
class BratFormatter:
'''
Distributor for delegating to the actual formatters.
'''
def __init__(self, config, fmt_name):
# Brat needs two output files.
# Create a subformatter for each.
self.txt = BratTxtFormatter(config, fmt_name)
self.ann = BratAnnFormatter(config, fmt_name)
def export(self, content):
'''
Write two disk files.
'''
self.txt.export(content)
self.ann.export(content)
def write(self, stream, content):
'''
Write text and annotations to the same stream.
'''
logging.warning('writing brat text and annotations to the same file')
self.txt.write(stream, content)
self.ann.write(stream, content)
def dump(self, content):
'''
Export to a pair <str, str> of text and annotations.
'''
return (self.txt.dump(content),
self.ann.dump(content))
class BratTxtFormatter(StreamFormatter):
'''
Plain text, on which brat's stand-off annotations are based.
'''
ext = 'txt'
@staticmethod
def write(stream, content):
stream.writelines(content.iter_text())
class BratAnnFormatter(StreamFormatter):
'''
Stand-off annotations for brat.
'''
ext = 'ann'
_fieldname_pattern = re.compile(r'\W+')
def __init__(self, config, fmt_name):
super().__init__(config, fmt_name)
self.attributes = list(self._attribute_indices(self.config))
@staticmethod
def _attribute_indices(config):
for att, atype in config.p.brat_attributes:
try:
index = config.entity_fields.index(att)
except ValueError:
raise LookupError(
'brat attribute: unknown entity field: {}'.format(att))
yield index, att, atype
def write(self, stream, content):
counters = [it.count(1) for _ in range(3)]
for article in content.get_subelements('article', include_self=True):
self._write_anno(stream, article, counters)
def _write_anno(self, stream, article, counters):
'''
Write article-level annotations with continuous IDs.
'''
c_t, c_n, c_a = counters
mentions = self._get_mentions(article)
for (loc_type, entities), t in zip(sorted(mentions.items()), c_t):
stream.write('T{0}\t{3} {1} {2}\t{4}\n'.format(t, *loc_type))
for e, n in zip(entities, c_n):
# Add all remaining information as "AnnotatorNotes".
self._write_anno_note(stream, e, t, n, c_a)
def _write_anno_note(self, stream, entity, t, n, c_a):
info = '\t'.join(entity.info[1:])
stream.write('#{}\tAnnotatorNotes T{}\t{}\n'.format(n, t, info))
for i, att, atype in self.attributes:
value = entity.info[i]
if value:
stream.write(self._attribute(atype, att, value, next(c_a), t))
def _get_mentions(self, article):
mentions = defaultdict(list)
for e in article.iter_entities():
name = self._valid_fieldname(e.type)
mentions[e.start, e.end, name, e.text].append(e)
return mentions
@classmethod
def _valid_fieldname(cls, name):
return cls._fieldname_pattern.sub('_', name)
@staticmethod
def _attribute(multivalue, key, value, n_a, n_t):
if multivalue:
# Multi-valued attributes.
return 'A{}\t{} T{} {}\n'.format(n_a, key, n_t, value)
else:
# Binary attributes.
return 'A{}\t{} T{}\n'.format(n_a, value, n_t) | 0.668339 | 0.214136 |
import json
from typing import List, Optional
import aiokatcp
from katpoint import Antenna
from kattelmod.clock import get_clock, real_timeout
from kattelmod.component import (KATCPComponent, TelstateUpdatingComponent,
TargetObserverMixin)
from kattelmod.session import CaptureState
from .fake import Subarray as _Subarray
class ConnectionError(IOError):
"""Failed to connect to SDP controller."""
class ConfigurationError(ValueError):
"""Failed to configure SDP product."""
class CorrelatorBeamformer(TargetObserverMixin, TelstateUpdatingComponent):
def __init__(self) -> None:
super(CorrelatorBeamformer, self).__init__()
self._initialise_attributes(locals())
self.target = 'Zenith, azel, 0, 90'
self.auto_delay_enabled = True
self._add_dummy_methods('capture_start capture_stop')
class ScienceDataProcessor(KATCPComponent):
def __init__(self, master_controller: str, config: dict) -> None:
super(ScienceDataProcessor, self).__init__(master_controller)
self._initialise_attributes(locals())
self.subarray_product = ''
def _validate(self, post_configure: bool = True) -> None:
if not self._client:
raise ConnectionError('SDP master controller not connected via KATCP')
if post_configure and not self.subarray_product:
raise ConfigurationError('SDP data product not configured')
async def get_capture_state(self, subarray_product: str) -> CaptureState:
self._validate(post_configure=False)
try:
msg, _ = await self._client.request('capture-status', subarray_product)
lookup = {b'idle': CaptureState.CONFIGURED,
b'init_wait': CaptureState.INITED,
b'capturing': CaptureState.STARTED}
return lookup.get(msg[0], CaptureState.UNKNOWN)
except aiokatcp.FailReply:
return CaptureState.UNCONFIGURED
async def product_configure(self, sub: _Subarray, receptors: List[Antenna],
start_time: Optional[float] = None) -> CaptureState:
subarray_product = 'array_{}_{}'.format(sub.sub_nr, sub.product)
self._validate(post_configure=False)
initial_state = await self.get_capture_state(subarray_product)
config = self.config
if not isinstance(config, dict):
config = json.loads(config)
# Insert the antenna list, antenna positions and clock information
config.setdefault('simulation', {})
if get_clock().rate != 1.0:
config['simulation']['clock_ratio'] = get_clock().rate
if start_time is not None:
config['simulation']['start_time'] = start_time
for output in list(config['outputs'].values()):
if output['type'] == 'sim.cbf.antenna_channelised_voltage':
output['antennas'] = [receptor.description for receptor in receptors]
# Insert the dump rate
if output['type'] == 'sdp.vis' and 'output_int_time' not in output:
output['output_int_time'] = 1.0 / sub.dump_rate
try:
with real_timeout(300):
msg, _ = await self._client.request(
'product-configure', subarray_product, json.dumps(config))
except aiokatcp.FailReply as exc:
raise ConfigurationError("Failed to configure product: " + str(exc)) from None
self.subarray_product = subarray_product
return initial_state
async def product_deconfigure(self) -> None:
self._validate()
with real_timeout(300):
await self._client.request('product-deconfigure', self.subarray_product)
async def get_telstate(self) -> str:
self._validate()
try:
msg, _ = await self._client.request('telstate-endpoint', self.subarray_product)
# XXX log connection problems
return msg[0].decode('utf-8')
except aiokatcp.FailReply:
return ''
async def capture_init(self) -> None:
self._validate()
with real_timeout(10):
await self._client.request('capture-init', self.subarray_product)
async def capture_done(self) -> None:
self._validate()
with real_timeout(300):
await self._client.request('capture-done', self.subarray_product) | kattelmod/systems/mkat/sdp.py |
import json
from typing import List, Optional
import aiokatcp
from katpoint import Antenna
from kattelmod.clock import get_clock, real_timeout
from kattelmod.component import (KATCPComponent, TelstateUpdatingComponent,
TargetObserverMixin)
from kattelmod.session import CaptureState
from .fake import Subarray as _Subarray
class ConnectionError(IOError):
"""Failed to connect to SDP controller."""
class ConfigurationError(ValueError):
"""Failed to configure SDP product."""
class CorrelatorBeamformer(TargetObserverMixin, TelstateUpdatingComponent):
def __init__(self) -> None:
super(CorrelatorBeamformer, self).__init__()
self._initialise_attributes(locals())
self.target = 'Zenith, azel, 0, 90'
self.auto_delay_enabled = True
self._add_dummy_methods('capture_start capture_stop')
class ScienceDataProcessor(KATCPComponent):
def __init__(self, master_controller: str, config: dict) -> None:
super(ScienceDataProcessor, self).__init__(master_controller)
self._initialise_attributes(locals())
self.subarray_product = ''
def _validate(self, post_configure: bool = True) -> None:
if not self._client:
raise ConnectionError('SDP master controller not connected via KATCP')
if post_configure and not self.subarray_product:
raise ConfigurationError('SDP data product not configured')
async def get_capture_state(self, subarray_product: str) -> CaptureState:
self._validate(post_configure=False)
try:
msg, _ = await self._client.request('capture-status', subarray_product)
lookup = {b'idle': CaptureState.CONFIGURED,
b'init_wait': CaptureState.INITED,
b'capturing': CaptureState.STARTED}
return lookup.get(msg[0], CaptureState.UNKNOWN)
except aiokatcp.FailReply:
return CaptureState.UNCONFIGURED
async def product_configure(self, sub: _Subarray, receptors: List[Antenna],
start_time: Optional[float] = None) -> CaptureState:
subarray_product = 'array_{}_{}'.format(sub.sub_nr, sub.product)
self._validate(post_configure=False)
initial_state = await self.get_capture_state(subarray_product)
config = self.config
if not isinstance(config, dict):
config = json.loads(config)
# Insert the antenna list, antenna positions and clock information
config.setdefault('simulation', {})
if get_clock().rate != 1.0:
config['simulation']['clock_ratio'] = get_clock().rate
if start_time is not None:
config['simulation']['start_time'] = start_time
for output in list(config['outputs'].values()):
if output['type'] == 'sim.cbf.antenna_channelised_voltage':
output['antennas'] = [receptor.description for receptor in receptors]
# Insert the dump rate
if output['type'] == 'sdp.vis' and 'output_int_time' not in output:
output['output_int_time'] = 1.0 / sub.dump_rate
try:
with real_timeout(300):
msg, _ = await self._client.request(
'product-configure', subarray_product, json.dumps(config))
except aiokatcp.FailReply as exc:
raise ConfigurationError("Failed to configure product: " + str(exc)) from None
self.subarray_product = subarray_product
return initial_state
async def product_deconfigure(self) -> None:
self._validate()
with real_timeout(300):
await self._client.request('product-deconfigure', self.subarray_product)
async def get_telstate(self) -> str:
self._validate()
try:
msg, _ = await self._client.request('telstate-endpoint', self.subarray_product)
# XXX log connection problems
return msg[0].decode('utf-8')
except aiokatcp.FailReply:
return ''
async def capture_init(self) -> None:
self._validate()
with real_timeout(10):
await self._client.request('capture-init', self.subarray_product)
async def capture_done(self) -> None:
self._validate()
with real_timeout(300):
await self._client.request('capture-done', self.subarray_product) | 0.846117 | 0.18924 |
from subprocess import run
import time as t
import matplotlib.pyplot as plt
import sys
import random as rnd
def all_identical(data):
if data == []:
return True
for d in data:
if d != data[0]:
return False
return True
def measure_instance(cmds, *args):
measures = []
outs = []
for cmd in cmds:
t_start = t.time()
res = run([cmd, *args], capture_output=True)
t_end = t.time()
measures.append(t_end - t_start)
outs.append(res.stdout)
if all_identical(outs):
return measures
else:
print("Not all tools agree on the output")
for cmd, out in zip(cmds, outs):
print(" {} [{}]".format(cmd, out))
sys.exit(1)
allowed_ords = [ord('\n'), ord('\t'), ord(' '), *range(ord('a'), ord('z') + 1), *range(ord('A'), ord('Z') + 1)]
def random_sample(size):
print("Measuring for size {}".format(size))
n = len(allowed_ords) - 1
data = [rnd.randint(0, n) for i in range(size)]
data = [chr(allowed_ords[i]) for i in data]
data = "".join(data)
return data
def build_test(size):
fname = "benches/rnd.plain"
with open(fname, 'w') as f:
f.write(random_sample(size))
return fname
def measure_size(cmds, size, nb_samples, nb_reps, option):
data = [[] for i in range(len(cmds))]
for s in range(nb_samples):
file = build_test(size)
for r in range(nb_reps):
times = measure_instance(cmds, file, option)
for i in range(len(cmds)):
data[i].append((size, times[i]))
return data
def measure(cmds, sizes, nb_samples, nb_reps, option):
data = [[] for i in range(len(cmds))]
for size in sizes:
times = measure_size(cmds, size, nb_samples, nb_reps, option)
for i in range(len(cmds)):
data[i].extend(times[i])
return data
def unzip(x):
a = []
b = []
for (ai, bi) in x:
a.append(ai)
b.append(bi)
return (a, b)
def main():
cmds = ["wc", "./target", "./mwc"]
option = "-l"
sizes = list(range(10, 100000, 1000))
nb_samples = 5
nb_reps = 5
plt.title("Benchmarks of {} on option {}".format(", ".join(cmds), option))
data = measure(cmds, sizes, nb_samples, nb_reps, option)
for cmd,meas in zip(cmds, data):
x, y = unzip(meas)
plt.plot(x, y, 'o', label=cmd, linestyle='None')
plt.legend()
plt.xlabel("Size (bytes)")
plt.ylabel("Time (s)")
plt.show()
main() | benches/bench.py |
from subprocess import run
import time as t
import matplotlib.pyplot as plt
import sys
import random as rnd
def all_identical(data):
if data == []:
return True
for d in data:
if d != data[0]:
return False
return True
def measure_instance(cmds, *args):
measures = []
outs = []
for cmd in cmds:
t_start = t.time()
res = run([cmd, *args], capture_output=True)
t_end = t.time()
measures.append(t_end - t_start)
outs.append(res.stdout)
if all_identical(outs):
return measures
else:
print("Not all tools agree on the output")
for cmd, out in zip(cmds, outs):
print(" {} [{}]".format(cmd, out))
sys.exit(1)
allowed_ords = [ord('\n'), ord('\t'), ord(' '), *range(ord('a'), ord('z') + 1), *range(ord('A'), ord('Z') + 1)]
def random_sample(size):
print("Measuring for size {}".format(size))
n = len(allowed_ords) - 1
data = [rnd.randint(0, n) for i in range(size)]
data = [chr(allowed_ords[i]) for i in data]
data = "".join(data)
return data
def build_test(size):
fname = "benches/rnd.plain"
with open(fname, 'w') as f:
f.write(random_sample(size))
return fname
def measure_size(cmds, size, nb_samples, nb_reps, option):
data = [[] for i in range(len(cmds))]
for s in range(nb_samples):
file = build_test(size)
for r in range(nb_reps):
times = measure_instance(cmds, file, option)
for i in range(len(cmds)):
data[i].append((size, times[i]))
return data
def measure(cmds, sizes, nb_samples, nb_reps, option):
data = [[] for i in range(len(cmds))]
for size in sizes:
times = measure_size(cmds, size, nb_samples, nb_reps, option)
for i in range(len(cmds)):
data[i].extend(times[i])
return data
def unzip(x):
a = []
b = []
for (ai, bi) in x:
a.append(ai)
b.append(bi)
return (a, b)
def main():
cmds = ["wc", "./target", "./mwc"]
option = "-l"
sizes = list(range(10, 100000, 1000))
nb_samples = 5
nb_reps = 5
plt.title("Benchmarks of {} on option {}".format(", ".join(cmds), option))
data = measure(cmds, sizes, nb_samples, nb_reps, option)
for cmd,meas in zip(cmds, data):
x, y = unzip(meas)
plt.plot(x, y, 'o', label=cmd, linestyle='None')
plt.legend()
plt.xlabel("Size (bytes)")
plt.ylabel("Time (s)")
plt.show()
main() | 0.211417 | 0.404625 |
from web3 import Web3
import time
from sqlalchemy import text
from datetime import datetime
from classes import start_engine
from functions import get_conf
# Get Parameters
conf = get_conf()
infura_key = conf["infura_key"]
db_driver = conf["db.driver"] # snowflake or postgresql
db_host = conf["db.host"]
db_user = conf["db.user"]
db_password = conf["<PASSWORD>"]
db_db = conf["db.database"]
db_port = conf["db.port"]
db_account = conf["db.account"]
db_warehouse = conf["db.warehouse"]
schema = "ethereum"
table_name = "transactions"
creationBlock = conf["contracts"][schema][table_name]["creationBlock"]
abi = [{"inputs":[{"internalType":"address","name":"transaction","type":"address"}],"name":"transactions","outputs":[],"stateMutability":"nonpayable","type":"function","table":"transactions"}] #Defined ABI with a fake list here so that get_latest_block will run correctly
# Create SQL Alchemy Engine
try:
engine = start_engine(abi, db_driver, db_host, db_user, db_password, db_account, db_db, db_port)
except:
print("The postgresql/snowflake engine could not be initialized. Verify that template.conf is setup correctly. There should be no empty fields.")
raise ValueError()
# Set w3 source to Infura Mainnet
w3 = Web3(Web3.HTTPProvider('https://mainnet.infura.io/v3/' + infura_key))
# Get latest block number and create schema
fromBlock = engine.get_latest_block(creationBlock)
# Initialize unique column datatypes for postgresql and snowflake
if db_driver == 'postgresql':
columns = "block_number bigint, block_hash bytea, miner bytea, nonce bytea, gas_limit bigint, gas_used bigint, difficulty bigint, extra_data bytea, time timestamp, size bigint"
type_mapping = {"address": "bytea", "bytes": "bytea", "bytes4": "bytea", "bytes32": "bytea", "int256": "numeric", "uint256": "numeric"}
elif db_driver == 'snowflake':
columns = "block_number bigint, block_hash string, miner string, nonce string, gas_limit bigint, gas_used bigint, difficulty bigint, extra_data string, time timestamp, size bigint"
type_mapping = {"address": "string", "bytes": "string", "bytes4": "string", "bytes32": "string", "int256": "numeric", "uint256": "string", "uint16":"numeric", "bool": "boolean", "address[]":"string", "uint256[]":"string", "uint8":"numeric", "string":"string"} #NOTE: I changed uint256 and uint256[] to string...
# Create schema and table if they don't exist already
with engine.connect() as sql:
sql_create_table = f"""create table if not exists {schema}."{table_name}" ( {columns} )"""
sql_create_schema = f"""create schema if not exists {schema}"""
sql.execute(text(sql_create_schema))
sql.execute(text(sql_create_table))
print(f"Start from block {fromBlock}")
# Init column types and insert values into table
while fromBlock < w3.eth.block_number:
with engine.begin() as session:
block = w3.eth.get_block(fromBlock, full_transactions = False)
block_number = block["number"]
block_hash = block["hash"] # HexBytes
miner = block["miner"] # Address as text
nonce = block["nonce"] # HexBytes
gas_limit = block["gasLimit"]
gas_used = block["gasUsed"]
difficulty = block["difficulty"]
extra_data = block["extraData"] # HexBytes
time = datetime.fromtimestamp(block["timestamp"])
size = block["size"]
# Encode input values differently for postgresql and snowflake
if db_driver == "postgresql":
sql_insert = f"""insert into {schema}."{table_name}" values ({block_number}, '\\{block_hash.hex()[1:]}', '\\{miner[1:]}', '\\{nonce.hex()[1:]}', {gas_limit}, {gas_used}, {difficulty}, '\\{extra_data.hex()[1:]}', '{time}', {size})"""
elif db_driver == "snowflake":
sql_insert = f"""insert into {schema}."{table_name}" values ({block_number}, '{block_hash.hex()}', '{miner}', '{nonce.hex()}', {gas_limit}, {gas_used}, {difficulty}, '{extra_data.hex()}', '{time}', {size})"""
# Insert values
session.execute(text(sql_insert))
print(text(sql_insert))
fromBlock += 1
# NOTE: This is not batch uploading; each transaction is uploaded one at a time. Should we implement blockstep to speed this up? | eth-blocks.py | from web3 import Web3
import time
from sqlalchemy import text
from datetime import datetime
from classes import start_engine
from functions import get_conf
# Get Parameters
conf = get_conf()
infura_key = conf["infura_key"]
db_driver = conf["db.driver"] # snowflake or postgresql
db_host = conf["db.host"]
db_user = conf["db.user"]
db_password = conf["<PASSWORD>"]
db_db = conf["db.database"]
db_port = conf["db.port"]
db_account = conf["db.account"]
db_warehouse = conf["db.warehouse"]
schema = "ethereum"
table_name = "transactions"
creationBlock = conf["contracts"][schema][table_name]["creationBlock"]
abi = [{"inputs":[{"internalType":"address","name":"transaction","type":"address"}],"name":"transactions","outputs":[],"stateMutability":"nonpayable","type":"function","table":"transactions"}] #Defined ABI with a fake list here so that get_latest_block will run correctly
# Create SQL Alchemy Engine
try:
engine = start_engine(abi, db_driver, db_host, db_user, db_password, db_account, db_db, db_port)
except:
print("The postgresql/snowflake engine could not be initialized. Verify that template.conf is setup correctly. There should be no empty fields.")
raise ValueError()
# Set w3 source to Infura Mainnet
w3 = Web3(Web3.HTTPProvider('https://mainnet.infura.io/v3/' + infura_key))
# Get latest block number and create schema
fromBlock = engine.get_latest_block(creationBlock)
# Initialize unique column datatypes for postgresql and snowflake
if db_driver == 'postgresql':
columns = "block_number bigint, block_hash bytea, miner bytea, nonce bytea, gas_limit bigint, gas_used bigint, difficulty bigint, extra_data bytea, time timestamp, size bigint"
type_mapping = {"address": "bytea", "bytes": "bytea", "bytes4": "bytea", "bytes32": "bytea", "int256": "numeric", "uint256": "numeric"}
elif db_driver == 'snowflake':
columns = "block_number bigint, block_hash string, miner string, nonce string, gas_limit bigint, gas_used bigint, difficulty bigint, extra_data string, time timestamp, size bigint"
type_mapping = {"address": "string", "bytes": "string", "bytes4": "string", "bytes32": "string", "int256": "numeric", "uint256": "string", "uint16":"numeric", "bool": "boolean", "address[]":"string", "uint256[]":"string", "uint8":"numeric", "string":"string"} #NOTE: I changed uint256 and uint256[] to string...
# Create schema and table if they don't exist already
with engine.connect() as sql:
sql_create_table = f"""create table if not exists {schema}."{table_name}" ( {columns} )"""
sql_create_schema = f"""create schema if not exists {schema}"""
sql.execute(text(sql_create_schema))
sql.execute(text(sql_create_table))
print(f"Start from block {fromBlock}")
# Init column types and insert values into table
while fromBlock < w3.eth.block_number:
with engine.begin() as session:
block = w3.eth.get_block(fromBlock, full_transactions = False)
block_number = block["number"]
block_hash = block["hash"] # HexBytes
miner = block["miner"] # Address as text
nonce = block["nonce"] # HexBytes
gas_limit = block["gasLimit"]
gas_used = block["gasUsed"]
difficulty = block["difficulty"]
extra_data = block["extraData"] # HexBytes
time = datetime.fromtimestamp(block["timestamp"])
size = block["size"]
# Encode input values differently for postgresql and snowflake
if db_driver == "postgresql":
sql_insert = f"""insert into {schema}."{table_name}" values ({block_number}, '\\{block_hash.hex()[1:]}', '\\{miner[1:]}', '\\{nonce.hex()[1:]}', {gas_limit}, {gas_used}, {difficulty}, '\\{extra_data.hex()[1:]}', '{time}', {size})"""
elif db_driver == "snowflake":
sql_insert = f"""insert into {schema}."{table_name}" values ({block_number}, '{block_hash.hex()}', '{miner}', '{nonce.hex()}', {gas_limit}, {gas_used}, {difficulty}, '{extra_data.hex()}', '{time}', {size})"""
# Insert values
session.execute(text(sql_insert))
print(text(sql_insert))
fromBlock += 1
# NOTE: This is not batch uploading; each transaction is uploaded one at a time. Should we implement blockstep to speed this up? | 0.471467 | 0.139426 |
# /*********************************************************************
# *
# * Gmsh tutorial 14
# *
# * Homology and cohomology computation
# *
# *********************************************************************/
# Homology computation in Gmsh finds representative chains of (relative)
# (co)homology space bases using a mesh of a model. The representative basis
# chains are stored in the mesh as physical groups of Gmsh, one for each chain.
import gmsh
import sys
gmsh.initialize(sys.argv)
gmsh.option.setNumber("General.Terminal", 1)
# Create an example geometry
gmsh.model.add("t14")
m = 0.5; # mesh characteristic length
h = 2; # geometry height in the z-direction
gmsh.model.geo.addPoint(0, 0, 0, m, 1)
gmsh.model.geo.addPoint(10, 0, 0, m, 2)
gmsh.model.geo.addPoint(10, 10, 0, m, 3)
gmsh.model.geo.addPoint(0, 10, 0, m, 4)
gmsh.model.geo.addPoint(4, 4, 0, m, 5)
gmsh.model.geo.addPoint(6, 4, 0, m, 6)
gmsh.model.geo.addPoint(6, 6, 0, m, 7)
gmsh.model.geo.addPoint(4, 6, 0, m, 8)
gmsh.model.geo.addPoint(2, 0, 0, m, 9)
gmsh.model.geo.addPoint(8, 0, 0, m, 10)
gmsh.model.geo.addPoint(2, 10, 0, m, 11)
gmsh.model.geo.addPoint(8, 10, 0, m, 12)
gmsh.model.geo.addLine(1, 9, 1)
gmsh.model.geo.addLine(9, 10, 2)
gmsh.model.geo.addLine(10, 2, 3)
gmsh.model.geo.addLine(2, 3, 4)
gmsh.model.geo.addLine(3, 12, 5)
gmsh.model.geo.addLine(12, 11, 6)
gmsh.model.geo.addLine(11, 4, 7)
gmsh.model.geo.addLine(4, 1, 8)
gmsh.model.geo.addLine(5, 6, 9)
gmsh.model.geo.addLine(6, 7, 10)
gmsh.model.geo.addLine(7, 8, 11)
gmsh.model.geo.addLine(8, 5, 12)
gmsh.model.geo.addCurveLoop([6, 7, 8, 1, 2, 3, 4, 5], 13)
gmsh.model.geo.addCurveLoop([11, 12, 9, 10], 14)
gmsh.model.geo.addPlaneSurface([13, 14], 15)
ext_tags = gmsh.model.geo.extrude([(2,15)], 0, 0, h)
# Create physical groups, which are used to define the domain of the
# (co)homology computation and the subdomain of the relative (co)homology
# computation.
# Whole domain
domain_tag = 1;
domain_physical_tag = 1001;
gmsh.model.addPhysicalGroup(dim=3, tags=[domain_tag], tag=domain_physical_tag)
gmsh.model.setPhysicalName(dim=3, tag=domain_physical_tag, name="Whole domain")
# Four "terminals" of the model
terminal_tags = [36, 44, 52, 60];
terminals_physical_tag = 2001
gmsh.model.addPhysicalGroup(dim=2, tags=terminal_tags, tag=terminals_physical_tag)
gmsh.model.setPhysicalName(dim=2, tag=terminals_physical_tag, name="Terminals")
# Find domain boundary tags
boundary_dimtags = gmsh.model.getBoundary(dimTags=[(3, domain_tag)], oriented=False)
boundary_tags = []
complement_tags = []
for tag in boundary_dimtags:
complement_tags.append(tag[1])
boundary_tags.append(tag[1])
for tag in terminal_tags:
complement_tags.remove(tag)
# Whole domain surface
boundary_physical_tag = 2002
gmsh.model.addPhysicalGroup(dim=2, tags=boundary_tags, tag=boundary_physical_tag)
gmsh.model.setPhysicalName(dim=2, tag=boundary_physical_tag, name="Boundary")
# Complement of the domain surface respect to the four terminals
complement_physical_tag = 2003
gmsh.model.addPhysicalGroup(dim=2, tags=complement_tags, tag=complement_physical_tag)
gmsh.model.setPhysicalName(dim=2, tag=complement_physical_tag, name="Complement")
gmsh.model.geo.synchronize()
# Find bases for relative homology spaces of the domain modulo the four
# terminals.
gmsh.model.mesh.computeHomology(domainTags=[domain_physical_tag], subdomainTags=[terminals_physical_tag], dims=[0,1,2,3])
# Find homology space bases isomorphic to the previous bases: homology spaces
# modulo the non-terminal domain surface, a.k.a the thin cuts.
gmsh.model.mesh.computeHomology(domainTags=[domain_physical_tag], subdomainTags=[complement_physical_tag], dims=[0,1,2,3])
# Find cohomology space bases isomorphic to the previous bases: cohomology
# spaces of the domain modulo the four terminals, a.k.a the thick cuts.
gmsh.model.mesh.computeCohomology(domainTags=[domain_physical_tag], subdomainTags=[terminals_physical_tag], dims=[0,1,2,3])
# more examples
#gmsh.model.mesh.computeHomology()
#gmsh.model.mesh.computeHomology(domainTags=[domain_physical_tag])
#gmsh.model.mesh.computeHomology(domainTags=[domain_physical_tag], subdomainTags=[boundary_physical_tag], dims=[0,1,2,3])
# Generate the mesh and perform the requested homology computations
gmsh.model.mesh.generate(3)
# Find physical tags of a certain homology or cohomology space chains
physicals = gmsh.model.getPhysicalGroups()
for pi in physicals:
name = gmsh.model.getPhysicalName(pi[0], pi[1])
if(name.find("H^1") == 0): # find tags of all cohomology chains of dimension 1
print("H^1 tag: " + str(pi[1]) + ", name: " + name)
gmsh.write("t14.msh")
gmsh.finalize() | gmsh-4.2.2/demos/api/t14.py |
# /*********************************************************************
# *
# * Gmsh tutorial 14
# *
# * Homology and cohomology computation
# *
# *********************************************************************/
# Homology computation in Gmsh finds representative chains of (relative)
# (co)homology space bases using a mesh of a model. The representative basis
# chains are stored in the mesh as physical groups of Gmsh, one for each chain.
import gmsh
import sys
gmsh.initialize(sys.argv)
gmsh.option.setNumber("General.Terminal", 1)
# Create an example geometry
gmsh.model.add("t14")
m = 0.5; # mesh characteristic length
h = 2; # geometry height in the z-direction
gmsh.model.geo.addPoint(0, 0, 0, m, 1)
gmsh.model.geo.addPoint(10, 0, 0, m, 2)
gmsh.model.geo.addPoint(10, 10, 0, m, 3)
gmsh.model.geo.addPoint(0, 10, 0, m, 4)
gmsh.model.geo.addPoint(4, 4, 0, m, 5)
gmsh.model.geo.addPoint(6, 4, 0, m, 6)
gmsh.model.geo.addPoint(6, 6, 0, m, 7)
gmsh.model.geo.addPoint(4, 6, 0, m, 8)
gmsh.model.geo.addPoint(2, 0, 0, m, 9)
gmsh.model.geo.addPoint(8, 0, 0, m, 10)
gmsh.model.geo.addPoint(2, 10, 0, m, 11)
gmsh.model.geo.addPoint(8, 10, 0, m, 12)
gmsh.model.geo.addLine(1, 9, 1)
gmsh.model.geo.addLine(9, 10, 2)
gmsh.model.geo.addLine(10, 2, 3)
gmsh.model.geo.addLine(2, 3, 4)
gmsh.model.geo.addLine(3, 12, 5)
gmsh.model.geo.addLine(12, 11, 6)
gmsh.model.geo.addLine(11, 4, 7)
gmsh.model.geo.addLine(4, 1, 8)
gmsh.model.geo.addLine(5, 6, 9)
gmsh.model.geo.addLine(6, 7, 10)
gmsh.model.geo.addLine(7, 8, 11)
gmsh.model.geo.addLine(8, 5, 12)
gmsh.model.geo.addCurveLoop([6, 7, 8, 1, 2, 3, 4, 5], 13)
gmsh.model.geo.addCurveLoop([11, 12, 9, 10], 14)
gmsh.model.geo.addPlaneSurface([13, 14], 15)
ext_tags = gmsh.model.geo.extrude([(2,15)], 0, 0, h)
# Create physical groups, which are used to define the domain of the
# (co)homology computation and the subdomain of the relative (co)homology
# computation.
# Whole domain
domain_tag = 1;
domain_physical_tag = 1001;
gmsh.model.addPhysicalGroup(dim=3, tags=[domain_tag], tag=domain_physical_tag)
gmsh.model.setPhysicalName(dim=3, tag=domain_physical_tag, name="Whole domain")
# Four "terminals" of the model
terminal_tags = [36, 44, 52, 60];
terminals_physical_tag = 2001
gmsh.model.addPhysicalGroup(dim=2, tags=terminal_tags, tag=terminals_physical_tag)
gmsh.model.setPhysicalName(dim=2, tag=terminals_physical_tag, name="Terminals")
# Find domain boundary tags
boundary_dimtags = gmsh.model.getBoundary(dimTags=[(3, domain_tag)], oriented=False)
boundary_tags = []
complement_tags = []
for tag in boundary_dimtags:
complement_tags.append(tag[1])
boundary_tags.append(tag[1])
for tag in terminal_tags:
complement_tags.remove(tag)
# Whole domain surface
boundary_physical_tag = 2002
gmsh.model.addPhysicalGroup(dim=2, tags=boundary_tags, tag=boundary_physical_tag)
gmsh.model.setPhysicalName(dim=2, tag=boundary_physical_tag, name="Boundary")
# Complement of the domain surface respect to the four terminals
complement_physical_tag = 2003
gmsh.model.addPhysicalGroup(dim=2, tags=complement_tags, tag=complement_physical_tag)
gmsh.model.setPhysicalName(dim=2, tag=complement_physical_tag, name="Complement")
gmsh.model.geo.synchronize()
# Find bases for relative homology spaces of the domain modulo the four
# terminals.
gmsh.model.mesh.computeHomology(domainTags=[domain_physical_tag], subdomainTags=[terminals_physical_tag], dims=[0,1,2,3])
# Find homology space bases isomorphic to the previous bases: homology spaces
# modulo the non-terminal domain surface, a.k.a the thin cuts.
gmsh.model.mesh.computeHomology(domainTags=[domain_physical_tag], subdomainTags=[complement_physical_tag], dims=[0,1,2,3])
# Find cohomology space bases isomorphic to the previous bases: cohomology
# spaces of the domain modulo the four terminals, a.k.a the thick cuts.
gmsh.model.mesh.computeCohomology(domainTags=[domain_physical_tag], subdomainTags=[terminals_physical_tag], dims=[0,1,2,3])
# more examples
#gmsh.model.mesh.computeHomology()
#gmsh.model.mesh.computeHomology(domainTags=[domain_physical_tag])
#gmsh.model.mesh.computeHomology(domainTags=[domain_physical_tag], subdomainTags=[boundary_physical_tag], dims=[0,1,2,3])
# Generate the mesh and perform the requested homology computations
gmsh.model.mesh.generate(3)
# Find physical tags of a certain homology or cohomology space chains
physicals = gmsh.model.getPhysicalGroups()
for pi in physicals:
name = gmsh.model.getPhysicalName(pi[0], pi[1])
if(name.find("H^1") == 0): # find tags of all cohomology chains of dimension 1
print("H^1 tag: " + str(pi[1]) + ", name: " + name)
gmsh.write("t14.msh")
gmsh.finalize() | 0.488283 | 0.554651 |
import matplotlib.pyplot as plt
import numpy as np
from trompy import weib_davis
def licklengthFig(ax, data, contents = '', color='grey'):
if len(data['longlicks']) > 0:
longlicklabel = str(len(data['longlicks'])) + ' long licks,\n' +'max = ' + '%.2f' % max(data['longlicks']) + ' s.'
else:
longlicklabel = 'No long licks.'
figlabel = str(len(data['licklength'])) + ' total licks.\n' + longlicklabel
ax.hist(data['licklength'], np.arange(0, 0.3, 0.01), color=color)
ax.text(0.9, 0.9, figlabel, ha='right', va='top', transform = ax.transAxes)
ax.set_xlabel('Lick length (s)')
ax.set_ylabel('Frequency')
ax.set_title(contents)
def iliFig(ax, data, contents = '', color='grey'):
ax.hist(data['ilis'], np.arange(0, 0.5, 0.02), color=color)
figlabel = '%.2f Hz' % data['freq']
ax.text(0.9, 0.9, figlabel, ha='right', va='top', transform = ax.transAxes)
ax.set_xlabel('Interlick interval (s)')
ax.set_ylabel('Frequency')
ax.set_title(contents)
def burstlengthFig(ax, data, contents='', color3rdbar=False):
figlabel = (str(data['bNum']) + ' total bursts\n' +
str('%.2f' % data['bMean']) + ' licks/burst.')
n, bins, patches = ax.hist(data['bLicks'], range(0, 20), density=True)
ax.set_xticks(range(1,20))
ax.set_xlabel('Licks per burst')
ax.set_ylabel('Frequency')
ax.set_xticks([1,2,3,4,5,10,15])
# ax.text(0.9, 0.9, figlabel1, ha='right', va='center', transform = ax.transAxes)
ax.text(0.9, 0.8, figlabel, ha='right', va='center', transform = ax.transAxes)
if color3rdbar == True:
patches[3].set_fc('r')
def ibiFig(ax, data, contents = ''):
ax.hist(data['bILIs'], range(0, 20), normed=1)
ax.set_xlabel('Interburst intervals')
ax.set_ylabel('Frequency')
def burstprobFig(ax, data):
x=data['burstprob'][0]
y=data['burstprob'][1]
alpha=data['weib_alpha']
beta=data['weib_beta']
rsq=data['weib_rsq']
ax.scatter(x,y,color='none', edgecolors='grey')
ax.plot(x, weib_davis(x, alpha, beta), c='orange')
figlabel = 'Fitted values:\nalpha={:.2f}\nbeta={:.2f}\nrsq={:.2f}'.format(
alpha, beta, rsq)
ax.set_xlabel('Burst size (n)')
ax.set_ylabel('Probability of burst>n')
ax.text(0.9, 0.9, figlabel, ha='right', va='top', transform = ax.transAxes)
def sessionlicksFig(ax, licks):
ax.hist(licks, range(0,3600,60), color='grey', alpha=0.4)
yraster = [ax.get_ylim()[1]] * len(licks)
ax.scatter(licks, yraster, s=50, facecolors='none', edgecolors='grey')
ax.set_xticks(np.multiply([0, 10, 20, 30, 40, 50, 60],60))
ax.set_xticklabels(['0', '10', '20', '30', '40', '50', '60'])
ax.set_xlabel('Time (min)')
ax.set_ylabel('Licks per min') | trompy/lick_figs.py | import matplotlib.pyplot as plt
import numpy as np
from trompy import weib_davis
def licklengthFig(ax, data, contents = '', color='grey'):
if len(data['longlicks']) > 0:
longlicklabel = str(len(data['longlicks'])) + ' long licks,\n' +'max = ' + '%.2f' % max(data['longlicks']) + ' s.'
else:
longlicklabel = 'No long licks.'
figlabel = str(len(data['licklength'])) + ' total licks.\n' + longlicklabel
ax.hist(data['licklength'], np.arange(0, 0.3, 0.01), color=color)
ax.text(0.9, 0.9, figlabel, ha='right', va='top', transform = ax.transAxes)
ax.set_xlabel('Lick length (s)')
ax.set_ylabel('Frequency')
ax.set_title(contents)
def iliFig(ax, data, contents = '', color='grey'):
ax.hist(data['ilis'], np.arange(0, 0.5, 0.02), color=color)
figlabel = '%.2f Hz' % data['freq']
ax.text(0.9, 0.9, figlabel, ha='right', va='top', transform = ax.transAxes)
ax.set_xlabel('Interlick interval (s)')
ax.set_ylabel('Frequency')
ax.set_title(contents)
def burstlengthFig(ax, data, contents='', color3rdbar=False):
figlabel = (str(data['bNum']) + ' total bursts\n' +
str('%.2f' % data['bMean']) + ' licks/burst.')
n, bins, patches = ax.hist(data['bLicks'], range(0, 20), density=True)
ax.set_xticks(range(1,20))
ax.set_xlabel('Licks per burst')
ax.set_ylabel('Frequency')
ax.set_xticks([1,2,3,4,5,10,15])
# ax.text(0.9, 0.9, figlabel1, ha='right', va='center', transform = ax.transAxes)
ax.text(0.9, 0.8, figlabel, ha='right', va='center', transform = ax.transAxes)
if color3rdbar == True:
patches[3].set_fc('r')
def ibiFig(ax, data, contents = ''):
ax.hist(data['bILIs'], range(0, 20), normed=1)
ax.set_xlabel('Interburst intervals')
ax.set_ylabel('Frequency')
def burstprobFig(ax, data):
x=data['burstprob'][0]
y=data['burstprob'][1]
alpha=data['weib_alpha']
beta=data['weib_beta']
rsq=data['weib_rsq']
ax.scatter(x,y,color='none', edgecolors='grey')
ax.plot(x, weib_davis(x, alpha, beta), c='orange')
figlabel = 'Fitted values:\nalpha={:.2f}\nbeta={:.2f}\nrsq={:.2f}'.format(
alpha, beta, rsq)
ax.set_xlabel('Burst size (n)')
ax.set_ylabel('Probability of burst>n')
ax.text(0.9, 0.9, figlabel, ha='right', va='top', transform = ax.transAxes)
def sessionlicksFig(ax, licks):
ax.hist(licks, range(0,3600,60), color='grey', alpha=0.4)
yraster = [ax.get_ylim()[1]] * len(licks)
ax.scatter(licks, yraster, s=50, facecolors='none', edgecolors='grey')
ax.set_xticks(np.multiply([0, 10, 20, 30, 40, 50, 60],60))
ax.set_xticklabels(['0', '10', '20', '30', '40', '50', '60'])
ax.set_xlabel('Time (min)')
ax.set_ylabel('Licks per min') | 0.541651 | 0.375936 |
import pandas as pd
import numpy as np
import pickle
import sys
sys.path.append('/home/emma/summary_evaluation/score_evaluators')
from prediction_data import PredictionData
class VideosumDataset(PredictionData):
def __init__(self, name, num_classes, local=True):
self.repr_name = name
self.name = name.lower()
self.ds_loc = '/movie-drive/created_summaries/{}/'.format(self.name)
if num_classes == 1:
self.model_name = self.name + '_one'
else:
self.model_name = self.name + '_two'
print(self.model_name)
super().__init__(self.name, num_classes, self.model_name, local)
self.meta_data = self.get_meta_data()
self.fps_df = self.get_fps()
self.data_frame = self.get_data_set()
self.segments = self.get_segments()
def get_meta_data(self):
file_path = self.name + '_ds.pickle'
with open(file_path, 'rb') as file:
data = pickle.load(file)
return data
def get_fps(self):
fps_df = pd.DataFrame()
fps = []
vids = []
movie_names = []
for movie_name, data in self.meta_data.items():
fps.append(data['fps'])
if self.name == 'moviesum':
vid = int(movie_name.split('_')[0])
else:
vid = movie_name
movie_names.append(movie_name)
vids.append(vid)
fps_df['movie_name'] = movie_names
fps_df['vid'] = vids
fps_df['fps'] = fps
return fps_df
def get_frame_second(self, fn, fps):
frame_time = fn / fps
return frame_time
def get_data_set(self):
data_frame = pd.DataFrame()
data_frame['y_pred'] = self.y_pred
data_frame['y_true'] = self.y_true
if self.y_prob is not None:
data_frame['y_prob'] = self.y_prob
data_frame['vid'] = self.vids
data_frame['fns'] = self.fns
data_frame = pd.merge(data_frame, self.fps_df, how='left', left_on=['vid'], right_on=['vid'])
data_frame['f_time'] = data_frame.apply(lambda x: self.get_frame_second(x.fns, x.fps), axis=1)
data_frame = data_frame.sort_values(by=['vid', 'f_time'], ascending=True)
data_frame['concat_pred'] = self.calc_concatenated_predictions(data_frame.y_true.values)
return data_frame
def calc_concatenated_predictions(self, y_pred):
""" implement concat heuristics, such that two or one zeros between two ones also become one
the method below does so by adding a padding of len=1 to all positive predictions
the method below is chosen because it does not require iteration through the predictions"""
add_1 = [int(x) for x in y_pred]
add_1 = [0] + add_1[:-1]
add_2 = [int(x) for x in y_pred]
add_2 = add_2[1:] + [0]
concat_pred = np.maximum(np.array(add_1), np.array(add_2))
concat_pred = np.maximum(concat_pred, y_pred)
return concat_pred
def get_segments(self):
frame_times = {}
for video_name, video_data in self.data_frame.groupby(by='movie_name'):
video_segments_data = video_data[video_data.y_pred == 1]
frame_times[video_name] = list(video_segments_data.f_time.values)
segments = {}
for video_name, video_frame_times in frame_times.items():
segments[video_name] = []
segment = []
for i, _ in enumerate(video_frame_times[1:]):
diff = video_frame_times[i] - video_frame_times[i - 1]
if abs(diff) < 1.1:
segment.append(video_frame_times[i-1])
else:
if len(segment) > 1:
start_time = segment[0]
duration = segment[-1] - start_time
segments[video_name].append((start_time, duration, segment))
else:
segment = [video_frame_times[i]]
start_time = video_frame_times[i]
duration = 1
segments[video_name].append((start_time, duration, segment))
segment = []
return segments
if __name__ == '__main__':
moviesum = VideosumDataset(name='MovieSum', num_classes=2, local=False)
tvsum = VideosumDataset(name='TVSum', num_classes=1, local=False)
summe = VideosumDataset(name='SumMe', num_classes=1, local=False)
t = 0.4
# moviesum.get_y(threshold=t, random=False)
# moviesum.y_thresh
tvsum.get_y(threshold=t, random=False)
tvsum.y_thres
summe.get_y(threshold=t, random=False)
summe.y_thres | play_summary/videosum_dataset.py | import pandas as pd
import numpy as np
import pickle
import sys
sys.path.append('/home/emma/summary_evaluation/score_evaluators')
from prediction_data import PredictionData
class VideosumDataset(PredictionData):
def __init__(self, name, num_classes, local=True):
self.repr_name = name
self.name = name.lower()
self.ds_loc = '/movie-drive/created_summaries/{}/'.format(self.name)
if num_classes == 1:
self.model_name = self.name + '_one'
else:
self.model_name = self.name + '_two'
print(self.model_name)
super().__init__(self.name, num_classes, self.model_name, local)
self.meta_data = self.get_meta_data()
self.fps_df = self.get_fps()
self.data_frame = self.get_data_set()
self.segments = self.get_segments()
def get_meta_data(self):
file_path = self.name + '_ds.pickle'
with open(file_path, 'rb') as file:
data = pickle.load(file)
return data
def get_fps(self):
fps_df = pd.DataFrame()
fps = []
vids = []
movie_names = []
for movie_name, data in self.meta_data.items():
fps.append(data['fps'])
if self.name == 'moviesum':
vid = int(movie_name.split('_')[0])
else:
vid = movie_name
movie_names.append(movie_name)
vids.append(vid)
fps_df['movie_name'] = movie_names
fps_df['vid'] = vids
fps_df['fps'] = fps
return fps_df
def get_frame_second(self, fn, fps):
frame_time = fn / fps
return frame_time
def get_data_set(self):
data_frame = pd.DataFrame()
data_frame['y_pred'] = self.y_pred
data_frame['y_true'] = self.y_true
if self.y_prob is not None:
data_frame['y_prob'] = self.y_prob
data_frame['vid'] = self.vids
data_frame['fns'] = self.fns
data_frame = pd.merge(data_frame, self.fps_df, how='left', left_on=['vid'], right_on=['vid'])
data_frame['f_time'] = data_frame.apply(lambda x: self.get_frame_second(x.fns, x.fps), axis=1)
data_frame = data_frame.sort_values(by=['vid', 'f_time'], ascending=True)
data_frame['concat_pred'] = self.calc_concatenated_predictions(data_frame.y_true.values)
return data_frame
def calc_concatenated_predictions(self, y_pred):
""" implement concat heuristics, such that two or one zeros between two ones also become one
the method below does so by adding a padding of len=1 to all positive predictions
the method below is chosen because it does not require iteration through the predictions"""
add_1 = [int(x) for x in y_pred]
add_1 = [0] + add_1[:-1]
add_2 = [int(x) for x in y_pred]
add_2 = add_2[1:] + [0]
concat_pred = np.maximum(np.array(add_1), np.array(add_2))
concat_pred = np.maximum(concat_pred, y_pred)
return concat_pred
def get_segments(self):
frame_times = {}
for video_name, video_data in self.data_frame.groupby(by='movie_name'):
video_segments_data = video_data[video_data.y_pred == 1]
frame_times[video_name] = list(video_segments_data.f_time.values)
segments = {}
for video_name, video_frame_times in frame_times.items():
segments[video_name] = []
segment = []
for i, _ in enumerate(video_frame_times[1:]):
diff = video_frame_times[i] - video_frame_times[i - 1]
if abs(diff) < 1.1:
segment.append(video_frame_times[i-1])
else:
if len(segment) > 1:
start_time = segment[0]
duration = segment[-1] - start_time
segments[video_name].append((start_time, duration, segment))
else:
segment = [video_frame_times[i]]
start_time = video_frame_times[i]
duration = 1
segments[video_name].append((start_time, duration, segment))
segment = []
return segments
if __name__ == '__main__':
moviesum = VideosumDataset(name='MovieSum', num_classes=2, local=False)
tvsum = VideosumDataset(name='TVSum', num_classes=1, local=False)
summe = VideosumDataset(name='SumMe', num_classes=1, local=False)
t = 0.4
# moviesum.get_y(threshold=t, random=False)
# moviesum.y_thresh
tvsum.get_y(threshold=t, random=False)
tvsum.y_thres
summe.get_y(threshold=t, random=False)
summe.y_thres | 0.264263 | 0.251137 |
from flask import current_app, request, jsonify, url_for
from flask_login import current_user
from .. import socketio
from ..models import File, User
from .. import db
from flask_socketio import send, emit
@socketio.on('connect', namespace='/events')
def events_connect():
"""
This function is called when a new client is connected both side
:return:
"""
current_app.logger.info("Socket connection")
try:
websocket_id = current_user.websocket_id
except AttributeError:
current_app.logger.error("User not logged in")
# User not logged in
return
userid = request.sid
# Store the session to the user
if current_user.websocket_id == userid:
emit('userid', {'userid': current_user.id})
return
# User made reload
current_user.websocket_id = request.sid
current_app.logger.info("New socket id {} for user user {}".format(current_user.name,
current_user.websocket_id))
db.session.add(current_user)
db.session.commit()
emit('userid', {'userid': current_user.id})
@socketio.on('import', namespace='/events')
def events_connect(user_id, file_id):
from celery_module.tasks import import_xml
file = files = File.query.filter_by(id=file_id).first()
if file is None:
current_app.logger.error("File not found")
return jsonify(error='File not found', successful=False)
# Check if user exists
user = User.query.get(user_id)
if not user:
current_app.logger.info("User was not found")
return jsonify(error='You are not allowed', successful=False)
current_app.logger.info("import file: {} with path: {} for user {}".format(file.id, file.path, user.id))
import_xml.delay(file_id=file_id, strongest_site_id=current_app.config['STRONGEST_SITE_ID'],
user_id=user.id, url=url_for('xml_import.update_client', _external=True))
return jsonify({}), 202 | app/controller/events.py | from flask import current_app, request, jsonify, url_for
from flask_login import current_user
from .. import socketio
from ..models import File, User
from .. import db
from flask_socketio import send, emit
@socketio.on('connect', namespace='/events')
def events_connect():
"""
This function is called when a new client is connected both side
:return:
"""
current_app.logger.info("Socket connection")
try:
websocket_id = current_user.websocket_id
except AttributeError:
current_app.logger.error("User not logged in")
# User not logged in
return
userid = request.sid
# Store the session to the user
if current_user.websocket_id == userid:
emit('userid', {'userid': current_user.id})
return
# User made reload
current_user.websocket_id = request.sid
current_app.logger.info("New socket id {} for user user {}".format(current_user.name,
current_user.websocket_id))
db.session.add(current_user)
db.session.commit()
emit('userid', {'userid': current_user.id})
@socketio.on('import', namespace='/events')
def events_connect(user_id, file_id):
from celery_module.tasks import import_xml
file = files = File.query.filter_by(id=file_id).first()
if file is None:
current_app.logger.error("File not found")
return jsonify(error='File not found', successful=False)
# Check if user exists
user = User.query.get(user_id)
if not user:
current_app.logger.info("User was not found")
return jsonify(error='You are not allowed', successful=False)
current_app.logger.info("import file: {} with path: {} for user {}".format(file.id, file.path, user.id))
import_xml.delay(file_id=file_id, strongest_site_id=current_app.config['STRONGEST_SITE_ID'],
user_id=user.id, url=url_for('xml_import.update_client', _external=True))
return jsonify({}), 202 | 0.351422 | 0.043285 |
import logging
import operator
import os
from bitarray import bitarray, bits2bytes
from progress.bar import ShadyBar
from .tree import Tree, NYT, exchange
from .utils import (encode_dpcm, decode_dpcm, bin_str2bool_list,
bool_list2bin_str, bool_list2int, entropy)
__version__ = '0.1.0'
# pylint: disable=too-many-instance-attributes
class AdaptiveHuffman:
def __init__(self, byte_seq, alphabet_range=(0, 255), dpcm=False):
"""Create an adaptive huffman encoder and decoder.
Args:
byte_seq (bytes): The bytes sequence to encode or decode.
alphabet_range (tuple or integer): The range of alphabet
inclusively.
"""
self.byte_seq = byte_seq
self.dpcm = dpcm
self._bits = None # Only used in decode().
self._bits_idx = 0 # Only used in decode().
# Get the first decimal number of all alphabets
self._alphabet_first_num = min(alphabet_range)
alphabet_size = abs(alphabet_range[0] - alphabet_range[1]) + 1
# Select an `exp` and `rem` which meet `alphabet_size = 2**exp + rem`.
# Get the largest `exp` smaller than `alphabet_size`.
self.exp = alphabet_size.bit_length() - 1
self.rem = alphabet_size - 2**self.exp
# Initialize the current node # as the maximum number of nodes with
# `alphabet_size` leaves in a complete binary tree.
self.current_node_num = alphabet_size * 2 - 1
self.tree = Tree(0, self.current_node_num, data=NYT)
self.all_nodes = [self.tree]
self.nyt = self.tree # initialize the NYT reference
def encode(self):
"""Encode the target byte sequence into compressed bit sequence by
adaptive Huffman coding.
Returns:
bitarray: The compressed bitarray. Use `bitarray.tofile()` to save
to file.
"""
def encode_fixed_code(dec):
"""Convert a decimal number into specified fixed code.
Arguments:
dec {int} -- The alphabet need to be converted into fixed code.
Returns:
list of bool -- Fixed codes.
"""
alphabet_idx = dec - (self._alphabet_first_num - 1)
if alphabet_idx <= 2 * self.rem:
fixed_str = '{:0{padding}b}'.format(
alphabet_idx - 1,
padding=self.exp + 1
)
else:
fixed_str = '{:0{padding}b}'.format(
alphabet_idx - self.rem - 1,
padding=self.exp
)
return bin_str2bool_list(fixed_str)
progressbar = ShadyBar(
'encoding',
max=len(self.byte_seq),
suffix='%(percent).1f%% - %(elapsed_td)ss'
)
if self.dpcm:
self.byte_seq = tuple(encode_dpcm(self.byte_seq))
logging.getLogger(__name__).info('entropy: %f', entropy(self.byte_seq))
code = []
for symbol in self.byte_seq:
fixed_code = encode_fixed_code(symbol)
result = self.tree.search(fixed_code)
if result['first_appearance']:
code.extend(result['code']) # send code of NYT
code.extend(fixed_code) # send fixed code of symbol
else:
# send code which is path from root to the node of symbol
code.extend(result['code'])
self.update(fixed_code, result['first_appearance'])
progressbar.next()
# Add remaining bits length info at the beginning of the code in order
# to avoid the decoder regarding the remaining bits as actual data. The
# remaining bits length info require 3 bits to store the length. Note
# that the first 3 bits are stored as big endian binary string.
remaining_bits_length = (
bits2bytes(len(code) + 3) * 8 - (len(code) + 3)
)
code = (bin_str2bool_list('{:03b}'.format(remaining_bits_length))
+ code)
progressbar.finish()
return bitarray(code)
def decode(self):
"""Decode the target byte sequence which is encoded by adaptive Huffman
coding.
Returns:
list: A list of integer representing the number of decoded byte
sequence.
"""
def read_bits(bit_count):
"""Read n leftmost bits and move iterator n steps.
Arguments:
n {int} -- The # of bits is about to read.
Returns:
list -- The n bits has been read.
"""
progressbar.next(bit_count)
ret = self._bits[self._bits_idx:self._bits_idx + bit_count]
self._bits_idx += bit_count
return ret
def decode_fixed_code():
fixed_code = read_bits(self.exp)
integer = bool_list2int(fixed_code)
if integer < self.rem:
fixed_code += read_bits(1)
integer = bool_list2int(fixed_code)
else:
integer += self.rem
return integer + 1 + (self._alphabet_first_num - 1)
# Get boolean list ([True, False, ...]) from bytes.
bits = bitarray()
bits.frombytes(self.byte_seq)
self._bits = bits.tolist()
self._bits_idx = 0
progressbar = ShadyBar(
'decoding',
max=len(self._bits),
suffix='%(percent).1f%% - %(elapsed_td)ss'
)
# Remove the remaining bits in the last of bit sequence generated by
# bitarray.tofile() to fill up to complete byte size (8 bits). The
# remaining bits length could be retrieved by reading the first 3 bits.
# Note that the first 3 bits are stored as big endian binary string.
remaining_bits_length = bool_list2int(read_bits(3))
if remaining_bits_length:
del self._bits[-remaining_bits_length:]
progressbar.next(remaining_bits_length)
self._bits = tuple(self._bits)
code = []
while self._bits_idx < len(self._bits):
current_node = self.tree # go to root
while current_node.left or current_node.right:
bit = read_bits(1)[0]
current_node = current_node.right if bit else current_node.left
if current_node.data == NYT:
first_appearance = True
dec = decode_fixed_code()
code.append(dec)
else:
# decode element corresponding to node
first_appearance = False
dec = current_node.data
code.append(current_node.data)
self.update(dec, first_appearance)
progressbar.finish()
return decode_dpcm(code) if self.dpcm else code
def update(self, data, first_appearance):
def find_node_data(data):
for node in self.all_nodes:
if node.data == data:
return node
raise KeyError(f'Cannot find the target node given {data}.')
current_node = None
while True:
if first_appearance:
current_node = self.nyt
self.current_node_num -= 1
new_external = Tree(1, self.current_node_num, data=data)
current_node.right = new_external
self.all_nodes.append(new_external)
self.current_node_num -= 1
self.nyt = Tree(0, self.current_node_num, data=NYT)
current_node.left = self.nyt
self.all_nodes.append(self.nyt)
current_node.weight += 1
current_node.data = None
self.nyt = current_node.left
else:
if not current_node:
# First time as `current_node` is None.
current_node = find_node_data(data)
node_max_num_in_block = max(
(
n for n in self.all_nodes
if n.weight == current_node.weight
),
key=operator.attrgetter('num')
)
if node_max_num_in_block not in (current_node, current_node.parent):
exchange(current_node, node_max_num_in_block)
current_node = node_max_num_in_block
current_node.weight += 1
if not current_node.parent:
break
current_node = current_node.parent
first_appearance = False
def compress(in_filename, out_filename, alphabet_range, dpcm):
with open(in_filename, 'rb') as in_file:
logging.getLogger(__name__).info('open file: "%s"', in_filename)
content = in_file.read()
logging.getLogger(__name__).info(
'original size: %d bytes', os.path.getsize(in_file.name)
)
ada_huff = AdaptiveHuffman(content, alphabet_range, dpcm)
code = ada_huff.encode()
with open(out_filename, 'wb') as out_file:
logging.getLogger(__name__).info('write file: "%s"', out_filename)
code.tofile(out_file)
logging.getLogger(__name__).info(
'compressed size: %d bytes', os.path.getsize(out_filename)
)
def extract(in_filename, out_filename, alphabet_range, dpcm):
with open(in_filename, 'rb') as in_file:
logging.getLogger(__name__).info('open file: "%s"', in_filename)
content = in_file.read()
logging.getLogger(__name__).info(
'original size: %d bytes', os.path.getsize(in_file.name)
)
ada_huff = AdaptiveHuffman(content, alphabet_range, dpcm)
code = ada_huff.decode()
with open(out_filename, 'wb') as out_file:
logging.getLogger(__name__).info('write file: "%s"', out_filename)
out_file.write(bytes(code))
logging.getLogger(__name__).info(
'extract size: %d bytes', os.path.getsize(out_filename)
) | adaptive_huffman_coding/__init__.py | import logging
import operator
import os
from bitarray import bitarray, bits2bytes
from progress.bar import ShadyBar
from .tree import Tree, NYT, exchange
from .utils import (encode_dpcm, decode_dpcm, bin_str2bool_list,
bool_list2bin_str, bool_list2int, entropy)
__version__ = '0.1.0'
# pylint: disable=too-many-instance-attributes
class AdaptiveHuffman:
def __init__(self, byte_seq, alphabet_range=(0, 255), dpcm=False):
"""Create an adaptive huffman encoder and decoder.
Args:
byte_seq (bytes): The bytes sequence to encode or decode.
alphabet_range (tuple or integer): The range of alphabet
inclusively.
"""
self.byte_seq = byte_seq
self.dpcm = dpcm
self._bits = None # Only used in decode().
self._bits_idx = 0 # Only used in decode().
# Get the first decimal number of all alphabets
self._alphabet_first_num = min(alphabet_range)
alphabet_size = abs(alphabet_range[0] - alphabet_range[1]) + 1
# Select an `exp` and `rem` which meet `alphabet_size = 2**exp + rem`.
# Get the largest `exp` smaller than `alphabet_size`.
self.exp = alphabet_size.bit_length() - 1
self.rem = alphabet_size - 2**self.exp
# Initialize the current node # as the maximum number of nodes with
# `alphabet_size` leaves in a complete binary tree.
self.current_node_num = alphabet_size * 2 - 1
self.tree = Tree(0, self.current_node_num, data=NYT)
self.all_nodes = [self.tree]
self.nyt = self.tree # initialize the NYT reference
def encode(self):
"""Encode the target byte sequence into compressed bit sequence by
adaptive Huffman coding.
Returns:
bitarray: The compressed bitarray. Use `bitarray.tofile()` to save
to file.
"""
def encode_fixed_code(dec):
"""Convert a decimal number into specified fixed code.
Arguments:
dec {int} -- The alphabet need to be converted into fixed code.
Returns:
list of bool -- Fixed codes.
"""
alphabet_idx = dec - (self._alphabet_first_num - 1)
if alphabet_idx <= 2 * self.rem:
fixed_str = '{:0{padding}b}'.format(
alphabet_idx - 1,
padding=self.exp + 1
)
else:
fixed_str = '{:0{padding}b}'.format(
alphabet_idx - self.rem - 1,
padding=self.exp
)
return bin_str2bool_list(fixed_str)
progressbar = ShadyBar(
'encoding',
max=len(self.byte_seq),
suffix='%(percent).1f%% - %(elapsed_td)ss'
)
if self.dpcm:
self.byte_seq = tuple(encode_dpcm(self.byte_seq))
logging.getLogger(__name__).info('entropy: %f', entropy(self.byte_seq))
code = []
for symbol in self.byte_seq:
fixed_code = encode_fixed_code(symbol)
result = self.tree.search(fixed_code)
if result['first_appearance']:
code.extend(result['code']) # send code of NYT
code.extend(fixed_code) # send fixed code of symbol
else:
# send code which is path from root to the node of symbol
code.extend(result['code'])
self.update(fixed_code, result['first_appearance'])
progressbar.next()
# Add remaining bits length info at the beginning of the code in order
# to avoid the decoder regarding the remaining bits as actual data. The
# remaining bits length info require 3 bits to store the length. Note
# that the first 3 bits are stored as big endian binary string.
remaining_bits_length = (
bits2bytes(len(code) + 3) * 8 - (len(code) + 3)
)
code = (bin_str2bool_list('{:03b}'.format(remaining_bits_length))
+ code)
progressbar.finish()
return bitarray(code)
def decode(self):
"""Decode the target byte sequence which is encoded by adaptive Huffman
coding.
Returns:
list: A list of integer representing the number of decoded byte
sequence.
"""
def read_bits(bit_count):
"""Read n leftmost bits and move iterator n steps.
Arguments:
n {int} -- The # of bits is about to read.
Returns:
list -- The n bits has been read.
"""
progressbar.next(bit_count)
ret = self._bits[self._bits_idx:self._bits_idx + bit_count]
self._bits_idx += bit_count
return ret
def decode_fixed_code():
fixed_code = read_bits(self.exp)
integer = bool_list2int(fixed_code)
if integer < self.rem:
fixed_code += read_bits(1)
integer = bool_list2int(fixed_code)
else:
integer += self.rem
return integer + 1 + (self._alphabet_first_num - 1)
# Get boolean list ([True, False, ...]) from bytes.
bits = bitarray()
bits.frombytes(self.byte_seq)
self._bits = bits.tolist()
self._bits_idx = 0
progressbar = ShadyBar(
'decoding',
max=len(self._bits),
suffix='%(percent).1f%% - %(elapsed_td)ss'
)
# Remove the remaining bits in the last of bit sequence generated by
# bitarray.tofile() to fill up to complete byte size (8 bits). The
# remaining bits length could be retrieved by reading the first 3 bits.
# Note that the first 3 bits are stored as big endian binary string.
remaining_bits_length = bool_list2int(read_bits(3))
if remaining_bits_length:
del self._bits[-remaining_bits_length:]
progressbar.next(remaining_bits_length)
self._bits = tuple(self._bits)
code = []
while self._bits_idx < len(self._bits):
current_node = self.tree # go to root
while current_node.left or current_node.right:
bit = read_bits(1)[0]
current_node = current_node.right if bit else current_node.left
if current_node.data == NYT:
first_appearance = True
dec = decode_fixed_code()
code.append(dec)
else:
# decode element corresponding to node
first_appearance = False
dec = current_node.data
code.append(current_node.data)
self.update(dec, first_appearance)
progressbar.finish()
return decode_dpcm(code) if self.dpcm else code
def update(self, data, first_appearance):
def find_node_data(data):
for node in self.all_nodes:
if node.data == data:
return node
raise KeyError(f'Cannot find the target node given {data}.')
current_node = None
while True:
if first_appearance:
current_node = self.nyt
self.current_node_num -= 1
new_external = Tree(1, self.current_node_num, data=data)
current_node.right = new_external
self.all_nodes.append(new_external)
self.current_node_num -= 1
self.nyt = Tree(0, self.current_node_num, data=NYT)
current_node.left = self.nyt
self.all_nodes.append(self.nyt)
current_node.weight += 1
current_node.data = None
self.nyt = current_node.left
else:
if not current_node:
# First time as `current_node` is None.
current_node = find_node_data(data)
node_max_num_in_block = max(
(
n for n in self.all_nodes
if n.weight == current_node.weight
),
key=operator.attrgetter('num')
)
if node_max_num_in_block not in (current_node, current_node.parent):
exchange(current_node, node_max_num_in_block)
current_node = node_max_num_in_block
current_node.weight += 1
if not current_node.parent:
break
current_node = current_node.parent
first_appearance = False
def compress(in_filename, out_filename, alphabet_range, dpcm):
with open(in_filename, 'rb') as in_file:
logging.getLogger(__name__).info('open file: "%s"', in_filename)
content = in_file.read()
logging.getLogger(__name__).info(
'original size: %d bytes', os.path.getsize(in_file.name)
)
ada_huff = AdaptiveHuffman(content, alphabet_range, dpcm)
code = ada_huff.encode()
with open(out_filename, 'wb') as out_file:
logging.getLogger(__name__).info('write file: "%s"', out_filename)
code.tofile(out_file)
logging.getLogger(__name__).info(
'compressed size: %d bytes', os.path.getsize(out_filename)
)
def extract(in_filename, out_filename, alphabet_range, dpcm):
with open(in_filename, 'rb') as in_file:
logging.getLogger(__name__).info('open file: "%s"', in_filename)
content = in_file.read()
logging.getLogger(__name__).info(
'original size: %d bytes', os.path.getsize(in_file.name)
)
ada_huff = AdaptiveHuffman(content, alphabet_range, dpcm)
code = ada_huff.decode()
with open(out_filename, 'wb') as out_file:
logging.getLogger(__name__).info('write file: "%s"', out_filename)
out_file.write(bytes(code))
logging.getLogger(__name__).info(
'extract size: %d bytes', os.path.getsize(out_filename)
) | 0.851367 | 0.354936 |
__author__ = '<NAME>'
import unittest
from mock import Mock
from pyon.util.unit_test import PyonTestCase
from pyon.util.int_test import IonIntegrationTestCase
from nose.plugins.attrib import attr
from pyon.core.exception import BadRequest, NotFound
from pyon.public import RT, IonObject
from interface.services.coi.iobject_management_service import ObjectManagementServiceClient
from ion.services.coi.object_management_service import ObjectManagementService
@attr('UNIT', group='coi')
class TestObjectManagementServiceUnit(PyonTestCase):
def setUp(self):
self.mock_clients = self._create_service_mock('object_management')
self.oms = ObjectManagementService()
self.oms.clients = self.mock_clients
self.yaml_definition = '''
TimerSchedulerEntry2: !Extends_AbstractSchedulerEntry
# String to put in origin of TimerEvent
event_origin: ""
# String to put in subtype field of TimerEvent
event_subtype: ""
'''
self.bad_yaml ='''
TimerSchedulerEntry2: !Extends_AbstractSchedulerEntry
# String to put in origin of TimerEvent
event_origin ""
# String to put in subtype field of TimerEvent
event_subtype: ""
'''
def rr_return_value(self):
return ['123',1]
def test_create_object(self):
ot = Mock()
ot.definition = self.bad_yaml
ot.name = "name"
with self.assertRaises(BadRequest):
self.oms.create_object_type(ot)
ot.name = "bad name"
with self.assertRaises(BadRequest):
self.oms.create_object_type(ot)
ot.name = "name"
ot.definition = self.yaml_definition
self.oms.clients.resource_registry.create.return_value = self.rr_return_value()
object_id = self.oms.create_object_type(ot)
self.assertEqual(object_id, '123')
self.oms.clients.resource_registry.create.assert_called_once_with(ot)
def test_read_and_update_object(self):
with self.assertRaises(BadRequest):
self.oms.read_object_type(None)
ot = Mock()
ot.definition = self.yaml_definition
ot.name = "name"
ot.description = "This is just a test, don't panic"
self.oms.clients.resource_registry.read.return_value = ot
ot_return = self.oms.read_object_type("123")
self.assertTrue(ot_return is ot)
self.oms.clients.resource_registry.read.assert_called_once_with('123','')
ot_return.name = "new name"
with self.assertRaises(BadRequest):
self.oms.update_object_type(ot_return)
ot_return.name = "new_name"
ot_return.definition = self.bad_yaml
with self.assertRaises(BadRequest):
self.oms.update_object_type(ot_return)
ot.definition = self.yaml_definition
self.oms.clients.resource_registry.update.return_value = ['123', 2]
ot_id = self.oms.update_object_type(ot_return)
self.assertEqual(ot_id, '123')
self.oms.clients.resource_registry.update.assert_called_once_with(ot_return)
def test_read_not_found(self):
self.oms.clients.resource_registry.read.side_effect = NotFound
with self.assertRaises(NotFound):
self.oms.read_object_type("0xBADC0FFEE")
self.oms.clients.resource_registry.read.assert_called_once_with('0xBADC0FFEE','')
def test_delete_object(self):
with self.assertRaises(BadRequest):
self.oms.delete_object_type(None)
self.oms.clients.resource_registry.delete.return_value = True
status = self.oms.delete_object_type("123")
self.assertEqual(status, True)
self.oms.clients.resource_registry.delete.assert_called_once_with("123")
def test_delete_not_found(self):
self.oms.clients.resource_registry.delete.side_effect = NotFound
with self.assertRaises(NotFound):
self.oms.delete_object_type("0xBADC0FFEE")
self.oms.clients.resource_registry.delete.assert_called_once_with('0xBADC0FFEE')
@attr('INT', group='coi')
class TestObjectManagementService(IonIntegrationTestCase):
def setUp(self):
self._start_container()
self.container.start_rel_from_url('res/deploy/r2deploy.yml')
self.oms = ObjectManagementServiceClient()
def test_create_object(self):
yaml_str = '''
TimerSchedulerEntry2: !Extends_AbstractSchedulerEntry
# String to put in origin of TimerEvent
event_origin: ""
# String to put in subtype field of TimerEvent
event_subtype: ""
'''
ot = IonObject(RT.ObjectType, {"definition": yaml_str})
object_type_id = self.oms.create_object_type(ot)
self.assertTrue(type(object_type_id) == str)
self.oms.delete_object_type(object_type_id)
def test_read_and_update_object(self):
# Create object type
# Read object type and validate
# Update object type
# Read back the object type and validate
# Delete the object type
object_definition = '''
TimerSchedulerEntry3: !Extends_AbstractSchedulerEntry
# String to put in origin of TimerEvent
event_origin: ""
# String to put in subtype field of TimerEvent
event_subtype: ""
'''
ot = IonObject(RT.ObjectType, {"definition": object_definition})
object_type_id = self.oms.create_object_type(ot)
object_type = self.oms.read_object_type(object_type_id)
self.assertEqual(object_definition,object_type.definition)
object_definition2 = '''
TimerSchedulerEntry3: !Extends_AbstractSchedulerEntry
# String to put in origin of TimerEvent
event_origin: ""
# String to put in subtype field of TimerEvent
event_subtype: ""
'''
object_type.definition = object_definition2
self.oms.update_object_type(object_type)
object_type = self.oms.read_object_type(object_type_id)
self.assertEqual(object_definition2, object_type.definition)
self.oms.delete_object_type(object_type_id)
def test_read_object_not_found(self):
object_type_id = "0xbadc0ffee"
with self.assertRaises(NotFound):
self.oms.read_object_type(object_type_id)
def test_delete_object_not_found(self):
object_type_id = "0xbadc0ffee"
with self.assertRaises(NotFound):
self.oms.delete_object_type(object_type_id) | ion/services/coi/test/test_object_management_service.py |
__author__ = '<NAME>'
import unittest
from mock import Mock
from pyon.util.unit_test import PyonTestCase
from pyon.util.int_test import IonIntegrationTestCase
from nose.plugins.attrib import attr
from pyon.core.exception import BadRequest, NotFound
from pyon.public import RT, IonObject
from interface.services.coi.iobject_management_service import ObjectManagementServiceClient
from ion.services.coi.object_management_service import ObjectManagementService
@attr('UNIT', group='coi')
class TestObjectManagementServiceUnit(PyonTestCase):
def setUp(self):
self.mock_clients = self._create_service_mock('object_management')
self.oms = ObjectManagementService()
self.oms.clients = self.mock_clients
self.yaml_definition = '''
TimerSchedulerEntry2: !Extends_AbstractSchedulerEntry
# String to put in origin of TimerEvent
event_origin: ""
# String to put in subtype field of TimerEvent
event_subtype: ""
'''
self.bad_yaml ='''
TimerSchedulerEntry2: !Extends_AbstractSchedulerEntry
# String to put in origin of TimerEvent
event_origin ""
# String to put in subtype field of TimerEvent
event_subtype: ""
'''
def rr_return_value(self):
return ['123',1]
def test_create_object(self):
ot = Mock()
ot.definition = self.bad_yaml
ot.name = "name"
with self.assertRaises(BadRequest):
self.oms.create_object_type(ot)
ot.name = "bad name"
with self.assertRaises(BadRequest):
self.oms.create_object_type(ot)
ot.name = "name"
ot.definition = self.yaml_definition
self.oms.clients.resource_registry.create.return_value = self.rr_return_value()
object_id = self.oms.create_object_type(ot)
self.assertEqual(object_id, '123')
self.oms.clients.resource_registry.create.assert_called_once_with(ot)
def test_read_and_update_object(self):
with self.assertRaises(BadRequest):
self.oms.read_object_type(None)
ot = Mock()
ot.definition = self.yaml_definition
ot.name = "name"
ot.description = "This is just a test, don't panic"
self.oms.clients.resource_registry.read.return_value = ot
ot_return = self.oms.read_object_type("123")
self.assertTrue(ot_return is ot)
self.oms.clients.resource_registry.read.assert_called_once_with('123','')
ot_return.name = "new name"
with self.assertRaises(BadRequest):
self.oms.update_object_type(ot_return)
ot_return.name = "new_name"
ot_return.definition = self.bad_yaml
with self.assertRaises(BadRequest):
self.oms.update_object_type(ot_return)
ot.definition = self.yaml_definition
self.oms.clients.resource_registry.update.return_value = ['123', 2]
ot_id = self.oms.update_object_type(ot_return)
self.assertEqual(ot_id, '123')
self.oms.clients.resource_registry.update.assert_called_once_with(ot_return)
def test_read_not_found(self):
self.oms.clients.resource_registry.read.side_effect = NotFound
with self.assertRaises(NotFound):
self.oms.read_object_type("0xBADC0FFEE")
self.oms.clients.resource_registry.read.assert_called_once_with('0xBADC0FFEE','')
def test_delete_object(self):
with self.assertRaises(BadRequest):
self.oms.delete_object_type(None)
self.oms.clients.resource_registry.delete.return_value = True
status = self.oms.delete_object_type("123")
self.assertEqual(status, True)
self.oms.clients.resource_registry.delete.assert_called_once_with("123")
def test_delete_not_found(self):
self.oms.clients.resource_registry.delete.side_effect = NotFound
with self.assertRaises(NotFound):
self.oms.delete_object_type("0xBADC0FFEE")
self.oms.clients.resource_registry.delete.assert_called_once_with('0xBADC0FFEE')
@attr('INT', group='coi')
class TestObjectManagementService(IonIntegrationTestCase):
def setUp(self):
self._start_container()
self.container.start_rel_from_url('res/deploy/r2deploy.yml')
self.oms = ObjectManagementServiceClient()
def test_create_object(self):
yaml_str = '''
TimerSchedulerEntry2: !Extends_AbstractSchedulerEntry
# String to put in origin of TimerEvent
event_origin: ""
# String to put in subtype field of TimerEvent
event_subtype: ""
'''
ot = IonObject(RT.ObjectType, {"definition": yaml_str})
object_type_id = self.oms.create_object_type(ot)
self.assertTrue(type(object_type_id) == str)
self.oms.delete_object_type(object_type_id)
def test_read_and_update_object(self):
# Create object type
# Read object type and validate
# Update object type
# Read back the object type and validate
# Delete the object type
object_definition = '''
TimerSchedulerEntry3: !Extends_AbstractSchedulerEntry
# String to put in origin of TimerEvent
event_origin: ""
# String to put in subtype field of TimerEvent
event_subtype: ""
'''
ot = IonObject(RT.ObjectType, {"definition": object_definition})
object_type_id = self.oms.create_object_type(ot)
object_type = self.oms.read_object_type(object_type_id)
self.assertEqual(object_definition,object_type.definition)
object_definition2 = '''
TimerSchedulerEntry3: !Extends_AbstractSchedulerEntry
# String to put in origin of TimerEvent
event_origin: ""
# String to put in subtype field of TimerEvent
event_subtype: ""
'''
object_type.definition = object_definition2
self.oms.update_object_type(object_type)
object_type = self.oms.read_object_type(object_type_id)
self.assertEqual(object_definition2, object_type.definition)
self.oms.delete_object_type(object_type_id)
def test_read_object_not_found(self):
object_type_id = "0xbadc0ffee"
with self.assertRaises(NotFound):
self.oms.read_object_type(object_type_id)
def test_delete_object_not_found(self):
object_type_id = "0xbadc0ffee"
with self.assertRaises(NotFound):
self.oms.delete_object_type(object_type_id) | 0.619356 | 0.259532 |
import numpy as np
import scipy.sparse as sp
def Diff_mat_r(Nr, r):
'''
Args:
Nr : number of points
r : list of r's
Returns:
Dr_1d : d/dr
rDr_1d : 1/r * d/dr
D2r_1d : d^2/dr^2
'''
# First derivative
Dr_1d = sp.diags([-1, 1], [-1, 1], shape = (Nr,Nr)) # A division by (2*dx) is required later.
Dr_1d = sp.lil_matrix(Dr_1d)
Dr_1d[0,[0,1,2]] = [-3, 4, -1] # this is 2nd order forward difference (2*dx division is required)
Dr_1d[Nr-1,[Nr-3, Nr-2, Nr-1]] = [1, -4, 3] # this is 2nd order backward difference (2*dx division is required)
rDr_1d = Dr_1d.T.multiply(1/r).T
# Second derivative
D2r_1d = sp.diags([1, -2, 1], [-1,0,1], shape = (Nr, Nr)) # division by dx^2 required
D2r_1d = sp.lil_matrix(D2r_1d)
D2r_1d[0,[0,1,2,3]] = [2, -5, 4, -1] # this is 2nd order forward difference. division by dx^2 required.
D2r_1d[Nr-1,[Nr-4, Nr-3, Nr-2, Nr-1]] = [-1, 4, -5, 2] # this is 2nd order backward difference. division by dx^2 required.
return Dr_1d, rDr_1d, D2r_1d
def Diff_mat_t(Nt):
'''
Args:
Nr : number of points
Returns:
Dt_1d : d/dt
D2t_1d : d^2/dt^2
'''
# First derivative
Dt_1d = sp.diags([-1, 1], [-1, 1], shape = (Nt,Nt)) # A division by (2*dx) is required later.
Dt_1d = sp.lil_matrix(Dt_1d)
Dt_1d[0,-1] = [-1] # periodic
Dt_1d[-1,0] = [1]
# Second derivative
D2t_1d = sp.diags([1, -2, 1], [-1,0,1], shape = (Nt, Nt)) # division by dx^2 required
D2t_1d = sp.lil_matrix(D2t_1d)
D2t_1d[0, -1] = [1]
D2t_1d[-1, 0] = [1]
return Dt_1d, D2t_1d
def Diff_mat_2D_polar(Nr,Nt, r):
'''
Args:
Nr : number of points in radial coordinate
Nt : number of points in theta coordinate
r : radial points
Returns:
Finite element matrices for the 2D space, in sparse format
Dr_2d : d/dr
rDr_2d : 1/r * d/dr
d2r_2d : d^2/dr^2
rDt_2d : 1/r * d/dt
r2D2t_2d : 1/r^2 * d^2/dt^2
'''
# 1D differentiation matrices
Dr_1d, rDr_1d, D2r_1d = Diff_mat_r(Nr, r)
Dt_1d, D2t_1d = Diff_mat_t(Nt)
# Sparse identity matrices
Ir = sp.eye(Nr)
It = sp.eye(Nt)
# Matrix of 1/r's
Rr = sp.spdiags([1/r], [0], Nr, Nr)
# Rr = sp.spdiags([1/r, 1/r, 1/r, 1/r, 1/r], [-2, -1, 0, 1, 2], Nr, Nr)
# Matrix of 1/r^2's
R2r = sp.spdiags([1/r**2], [0], Nr, Nr)
# R2r = sp.spdiags([1/r**2, 1/r**2, 1/r**2, 1/r**2, 1/r**2], [-2, -1, 0, 1, 2], Nr, Nr)
# 2D matrix operators from 1D operators using kronecker product
# Partial derivatives in r
Dr_2d = sp.kron(It, Dr_1d)
rDr_2d = sp.kron(It, rDr_1d)
D2r_2d = sp.kron(It, D2r_1d)
# Partial derivatives in t, with Jacobian element
rDt_2d = sp.kron(Dt_1d, Rr)
r2D2t_2d = sp.kron(D2t_1d, R2r)
# Return compressed Sparse Row format of the sparse matrices
return Dr_2d.tocsr(), rDr_2d.tocsr(), D2r_2d.tocsr(), rDt_2d.tocsr(), r2D2t_2d.tocsr() | diff_matrices_polar.py | import numpy as np
import scipy.sparse as sp
def Diff_mat_r(Nr, r):
'''
Args:
Nr : number of points
r : list of r's
Returns:
Dr_1d : d/dr
rDr_1d : 1/r * d/dr
D2r_1d : d^2/dr^2
'''
# First derivative
Dr_1d = sp.diags([-1, 1], [-1, 1], shape = (Nr,Nr)) # A division by (2*dx) is required later.
Dr_1d = sp.lil_matrix(Dr_1d)
Dr_1d[0,[0,1,2]] = [-3, 4, -1] # this is 2nd order forward difference (2*dx division is required)
Dr_1d[Nr-1,[Nr-3, Nr-2, Nr-1]] = [1, -4, 3] # this is 2nd order backward difference (2*dx division is required)
rDr_1d = Dr_1d.T.multiply(1/r).T
# Second derivative
D2r_1d = sp.diags([1, -2, 1], [-1,0,1], shape = (Nr, Nr)) # division by dx^2 required
D2r_1d = sp.lil_matrix(D2r_1d)
D2r_1d[0,[0,1,2,3]] = [2, -5, 4, -1] # this is 2nd order forward difference. division by dx^2 required.
D2r_1d[Nr-1,[Nr-4, Nr-3, Nr-2, Nr-1]] = [-1, 4, -5, 2] # this is 2nd order backward difference. division by dx^2 required.
return Dr_1d, rDr_1d, D2r_1d
def Diff_mat_t(Nt):
'''
Args:
Nr : number of points
Returns:
Dt_1d : d/dt
D2t_1d : d^2/dt^2
'''
# First derivative
Dt_1d = sp.diags([-1, 1], [-1, 1], shape = (Nt,Nt)) # A division by (2*dx) is required later.
Dt_1d = sp.lil_matrix(Dt_1d)
Dt_1d[0,-1] = [-1] # periodic
Dt_1d[-1,0] = [1]
# Second derivative
D2t_1d = sp.diags([1, -2, 1], [-1,0,1], shape = (Nt, Nt)) # division by dx^2 required
D2t_1d = sp.lil_matrix(D2t_1d)
D2t_1d[0, -1] = [1]
D2t_1d[-1, 0] = [1]
return Dt_1d, D2t_1d
def Diff_mat_2D_polar(Nr,Nt, r):
'''
Args:
Nr : number of points in radial coordinate
Nt : number of points in theta coordinate
r : radial points
Returns:
Finite element matrices for the 2D space, in sparse format
Dr_2d : d/dr
rDr_2d : 1/r * d/dr
d2r_2d : d^2/dr^2
rDt_2d : 1/r * d/dt
r2D2t_2d : 1/r^2 * d^2/dt^2
'''
# 1D differentiation matrices
Dr_1d, rDr_1d, D2r_1d = Diff_mat_r(Nr, r)
Dt_1d, D2t_1d = Diff_mat_t(Nt)
# Sparse identity matrices
Ir = sp.eye(Nr)
It = sp.eye(Nt)
# Matrix of 1/r's
Rr = sp.spdiags([1/r], [0], Nr, Nr)
# Rr = sp.spdiags([1/r, 1/r, 1/r, 1/r, 1/r], [-2, -1, 0, 1, 2], Nr, Nr)
# Matrix of 1/r^2's
R2r = sp.spdiags([1/r**2], [0], Nr, Nr)
# R2r = sp.spdiags([1/r**2, 1/r**2, 1/r**2, 1/r**2, 1/r**2], [-2, -1, 0, 1, 2], Nr, Nr)
# 2D matrix operators from 1D operators using kronecker product
# Partial derivatives in r
Dr_2d = sp.kron(It, Dr_1d)
rDr_2d = sp.kron(It, rDr_1d)
D2r_2d = sp.kron(It, D2r_1d)
# Partial derivatives in t, with Jacobian element
rDt_2d = sp.kron(Dt_1d, Rr)
r2D2t_2d = sp.kron(D2t_1d, R2r)
# Return compressed Sparse Row format of the sparse matrices
return Dr_2d.tocsr(), rDr_2d.tocsr(), D2r_2d.tocsr(), rDt_2d.tocsr(), r2D2t_2d.tocsr() | 0.59843 | 0.759069 |
from django.db import models
from ..core.models import TimeStampedModel
from ..historias.models import Historias
class Epicrisis(TimeStampedModel):
"""
- Tabla de la Epicrisis relacionada a la historia clinica
- La epicrisis es un documento que se completa cuando
se de de alta el paciente
"""
historia = models.ForeignKey(Historias, unique=True)
equipo_referencia = models.CharField(max_length=150, blank=True, null=True,
verbose_name=u"Equipo de referencia en la internación",
default=u"Cirugía general")
antecedentes = models.TextField(blank=True, null=True, verbose_name=u"Antecedentes")
problemas = models.TextField(blank=True, null=True,
verbose_name=u"Detalle de los problemas abordados en el proceso"
u" actual")
fecha_egreso = models.DateField(verbose_name=u"Fecha de egreso")
diagnostico_egreso = models.TextField(blank=True, null=True, verbose_name=u"Diagnóstico de egreso")
resultado_examenes = models.TextField(blank=True, null=True,
verbose_name=u"Resultado de exámenes complementarios")
laboratorio_alta = models.TextField(blank=True, null=True, verbose_name=u"Laboratorio al alta")
tratamiento_alta = models.TextField(blank=True, null=True,
verbose_name=u"Tratamiento al alta",
default=u"Control por consultorio externo. "
u"Curaciones de la herida. "
u"Antibiótico terapia.")
pendientes = models.TextField(blank=True, null=True,
verbose_name=u"Pendientes de resolución en el proceso"
u" de atención ambulatorio")
equipo_referencia_alta = models.CharField(max_length=150, blank=True, null=True,
verbose_name=u"Equipo y centro de referencia al alta",
default=u"Cirugía general, Otro")
fecha_proxima_consulta = models.DateField(verbose_name=u"Fecha de la próxima consulta",
blank=True, null=True)
hora_proxima_consulta = models.TimeField(verbose_name=u"Hora de la próxima consulta",
blank=True, null=True) | hpc-historias-clinicas/epicrisis/models.py | from django.db import models
from ..core.models import TimeStampedModel
from ..historias.models import Historias
class Epicrisis(TimeStampedModel):
"""
- Tabla de la Epicrisis relacionada a la historia clinica
- La epicrisis es un documento que se completa cuando
se de de alta el paciente
"""
historia = models.ForeignKey(Historias, unique=True)
equipo_referencia = models.CharField(max_length=150, blank=True, null=True,
verbose_name=u"Equipo de referencia en la internación",
default=u"Cirugía general")
antecedentes = models.TextField(blank=True, null=True, verbose_name=u"Antecedentes")
problemas = models.TextField(blank=True, null=True,
verbose_name=u"Detalle de los problemas abordados en el proceso"
u" actual")
fecha_egreso = models.DateField(verbose_name=u"Fecha de egreso")
diagnostico_egreso = models.TextField(blank=True, null=True, verbose_name=u"Diagnóstico de egreso")
resultado_examenes = models.TextField(blank=True, null=True,
verbose_name=u"Resultado de exámenes complementarios")
laboratorio_alta = models.TextField(blank=True, null=True, verbose_name=u"Laboratorio al alta")
tratamiento_alta = models.TextField(blank=True, null=True,
verbose_name=u"Tratamiento al alta",
default=u"Control por consultorio externo. "
u"Curaciones de la herida. "
u"Antibiótico terapia.")
pendientes = models.TextField(blank=True, null=True,
verbose_name=u"Pendientes de resolución en el proceso"
u" de atención ambulatorio")
equipo_referencia_alta = models.CharField(max_length=150, blank=True, null=True,
verbose_name=u"Equipo y centro de referencia al alta",
default=u"Cirugía general, Otro")
fecha_proxima_consulta = models.DateField(verbose_name=u"Fecha de la próxima consulta",
blank=True, null=True)
hora_proxima_consulta = models.TimeField(verbose_name=u"Hora de la próxima consulta",
blank=True, null=True) | 0.398055 | 0.287968 |
version = "v1.0.0"
import os,os.path, sys
from argparse import ArgumentParser
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '../core'))
import brc
if __name__ == '__main__':
#Parameters to be input.
parser=ArgumentParser(description="trimming module, version {}".format(version))
parser.add_argument("-f1","--fq1", action="store", dest="fq1",
help="fastq end 1", required=True)
parser.add_argument("-f2","--fq2", action="store", dest="fq2",
help="fastq end 2", required=True)
parser.add_argument("-o","--output_path", action="store", dest="output_path",
help="output path", required=True)
parser.add_argument("-c","--cfg", action="store", dest="cfg",
help="pipeline configure file", required=True)
parser.add_argument("-p","--prefix", action="store", dest="prefix",
help="output prefix, sample id", required=True)
args = parser.parse_args()
brc.check_files([args.fq1, args.fq2, args.cfg])
brc.createDirectory(args.output_path)
config = brc.resolveConfig(args.cfg)
prefix = args.prefix
output_path = os.path.abspath(args.output_path)
dirprefix = "%s/%s" %(output_path, prefix)
# software and args
java = config["java"]
trimmomatic = config["trimmomatic"]
cpu_trim = "6"
mem_trim = "80G"
# trim fastq
fq_1 = os.path.abspath(args.fq1)
fq_2 = os.path.abspath(args.fq2)
trimmo_fq_1 = "%s.trimmomatic.trimmed.R1.fq" % dirprefix
trimmo_fq_2 = "%s.trimmomatic.trimmed.R2.fq" % dirprefix
trimmo_cmd = " ".join([java, "-jar -Xmx" + mem_trim, trimmomatic, "PE -threads", cpu_trim, "-phred33",
fq_1, fq_2, trimmo_fq_1, dirprefix + ".unPair.R1.fq", trimmo_fq_2, dirprefix + ".unPair.R2.fq",
"ILLUMINACLIP:" + config["adapter"] + ":2:30:10:1:true SLIDINGWINDOW:4:15 TRAILING:20"])
brc.run_command(trimmo_cmd, ">>>Trimmomatic Failed")
trim_cmd = " ".join([config["python"], config["adapter_trim"], '--fq1', fq_1, '--fq2', fq_2,
'--output_path', output_path, "--output_prefix", prefix, "--adapter_type", config["adapter_type"]])
brc.run_command(trim_cmd, ">>> methylation trimming adapter Failed!!")
fastqc_cmd = " ".join([config['fastqc'], '-o', output_path, '--extract -f fastq', "--threads", cpu_trim,
"{}_clean.R1.fq".format(dirprefix), "{}_clean.R2.fq".format(dirprefix)])
brc.run_command(fastqc_cmd, ">>> do FASTQC Failed!!!")
brc.rm_files("%s*unPair*" % dirprefix)
brc.rm_files("%s*trim.R*.fq" % dirprefix)
brc.rm_files("%s.trimmed.reads.txt" % dirprefix)
brc.rm_files("%s.trimmomatic.trimmed.R*.fq" % dirprefix) | trim/run_trim.py | version = "v1.0.0"
import os,os.path, sys
from argparse import ArgumentParser
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '../core'))
import brc
if __name__ == '__main__':
#Parameters to be input.
parser=ArgumentParser(description="trimming module, version {}".format(version))
parser.add_argument("-f1","--fq1", action="store", dest="fq1",
help="fastq end 1", required=True)
parser.add_argument("-f2","--fq2", action="store", dest="fq2",
help="fastq end 2", required=True)
parser.add_argument("-o","--output_path", action="store", dest="output_path",
help="output path", required=True)
parser.add_argument("-c","--cfg", action="store", dest="cfg",
help="pipeline configure file", required=True)
parser.add_argument("-p","--prefix", action="store", dest="prefix",
help="output prefix, sample id", required=True)
args = parser.parse_args()
brc.check_files([args.fq1, args.fq2, args.cfg])
brc.createDirectory(args.output_path)
config = brc.resolveConfig(args.cfg)
prefix = args.prefix
output_path = os.path.abspath(args.output_path)
dirprefix = "%s/%s" %(output_path, prefix)
# software and args
java = config["java"]
trimmomatic = config["trimmomatic"]
cpu_trim = "6"
mem_trim = "80G"
# trim fastq
fq_1 = os.path.abspath(args.fq1)
fq_2 = os.path.abspath(args.fq2)
trimmo_fq_1 = "%s.trimmomatic.trimmed.R1.fq" % dirprefix
trimmo_fq_2 = "%s.trimmomatic.trimmed.R2.fq" % dirprefix
trimmo_cmd = " ".join([java, "-jar -Xmx" + mem_trim, trimmomatic, "PE -threads", cpu_trim, "-phred33",
fq_1, fq_2, trimmo_fq_1, dirprefix + ".unPair.R1.fq", trimmo_fq_2, dirprefix + ".unPair.R2.fq",
"ILLUMINACLIP:" + config["adapter"] + ":2:30:10:1:true SLIDINGWINDOW:4:15 TRAILING:20"])
brc.run_command(trimmo_cmd, ">>>Trimmomatic Failed")
trim_cmd = " ".join([config["python"], config["adapter_trim"], '--fq1', fq_1, '--fq2', fq_2,
'--output_path', output_path, "--output_prefix", prefix, "--adapter_type", config["adapter_type"]])
brc.run_command(trim_cmd, ">>> methylation trimming adapter Failed!!")
fastqc_cmd = " ".join([config['fastqc'], '-o', output_path, '--extract -f fastq', "--threads", cpu_trim,
"{}_clean.R1.fq".format(dirprefix), "{}_clean.R2.fq".format(dirprefix)])
brc.run_command(fastqc_cmd, ">>> do FASTQC Failed!!!")
brc.rm_files("%s*unPair*" % dirprefix)
brc.rm_files("%s*trim.R*.fq" % dirprefix)
brc.rm_files("%s.trimmed.reads.txt" % dirprefix)
brc.rm_files("%s.trimmomatic.trimmed.R*.fq" % dirprefix) | 0.229535 | 0.108898 |
import numpy as np
from pyccel.epyccel import epyccel
RTOL = 2e-14
ATOL = 1e-15
def test_module_1(language):
import modules.Module_1 as mod
modnew = epyccel(mod, language=language)
from numpy import zeros
# ...
x_expected = zeros(5)
x = zeros(5)
mod.f(x_expected)
mod.g(x_expected)
modnew.f(x)
modnew.g(x)
assert np.allclose( x, x_expected, rtol=RTOL, atol=ATOL )
# ...
def test_local_module_1(language):
import Module_1 as mod
modnew = epyccel(mod, language=language)
from numpy import zeros
# ...
x_expected = zeros(5)
x = zeros(5)
mod.f(x_expected)
mod.g(x_expected)
modnew.f(x)
modnew.g(x)
assert np.allclose( x, x_expected, rtol=RTOL, atol=ATOL )
# ...
def test_module_2(language):
import modules.Module_2 as mod
modnew = epyccel(mod, language=language)
# ...
m1 = 2 ; m2 = 3
x = np.zeros((m1,m2))
modnew.f6(m1, m2, x)
x_expected = np.zeros((m1,m2))
mod.f6(m1, m2, x_expected)
assert np.allclose( x, x_expected, rtol=RTOL, atol=ATOL )
# ...
def test_module_3(language):
import modules.call_user_defined_funcs as mod
modnew = epyccel(mod, language=language)
r = 4.5
x_expected = mod.circle_volume(r)
x = modnew.circle_volume(r)
assert np.isclose( x, x_expected, rtol=1e-14, atol=1e-14 )
def test_module_4(language):
import modules.Module_6 as mod
modnew = epyccel(mod, language=language)
n_x = np.random.randint(4,20)
n_y = np.random.randint(4,20)
x = np.empty(n_x, dtype=float)
y = np.random.random_sample(n_y)
x_pyc = x.copy()
y_pyc = y.copy()
max_pyt = mod.f(x,y)
max_pyc = modnew.f(x_pyc, y_pyc)
assert np.isclose( max_pyt, max_pyc, rtol=1e-14, atol=1e-14 )
assert np.allclose( x, x_pyc, rtol=1e-14, atol=1e-14 )
assert np.allclose( y, y_pyc, rtol=1e-14, atol=1e-14 )
def test_module_5(language):
import modules.Module_7 as mod
modnew = epyccel(mod, language=language)
max_pyt = mod.get_sum()
max_pyc = modnew.get_sum()
assert np.isclose( max_pyt, max_pyc, rtol=1e-14, atol=1e-14 )
max_pyt = mod.get_sum2()
max_pyc = modnew.get_sum2()
assert np.isclose( max_pyt, max_pyc, rtol=1e-14, atol=1e-14 )
def test_module_6(language):
import modules.consts as mod
modnew = epyccel(mod, language=language)
atts = ('g', 'R0', 'rMin', 'rMax', 'skip_centre',
'method', 'compl', 'tiny')
for att in atts:
mod_att = getattr(mod, att)
modnew_att = getattr(modnew, att)
assert mod_att == modnew_att
assert type(mod_att) is type(modnew_att)
def test_module_7(language):
import modules.array_consts as mod
modnew = epyccel(mod, language=language)
atts = ('a', 'b', 'c', 'd', 'e')
for att in atts:
mod_att = getattr(mod, att)
modnew_att = getattr(modnew, att)
assert np.array_equal(mod_att, modnew_att)
assert mod_att.dtype == modnew_att.dtype
modnew.update_a()
mod.update_a()
mod_att = mod.a
modnew_att = modnew.a
assert np.array_equal(mod_att, modnew_att)
assert mod_att.dtype == modnew_att.dtype
mod.a[3] = 10
modnew.a[3] = 10
assert np.array_equal(mod_att, modnew_att)
assert mod.get_elem_a(3) == modnew.get_elem_a(3)
mod.c[1,0] = 10
modnew.c[1,0] = 10
assert np.array_equal(mod.c, modnew.c)
assert mod.get_elem_c(1,0) == modnew.get_elem_c(1,0)
mod.e[1,0,2] = 50
modnew.e[1,0,2] = 50
assert np.array_equal(mod.e, modnew.e)
assert mod.get_elem_e(1,0,2) == modnew.get_elem_e(1,0,2)
# Necessary as python does not reload modules
mod.reset_a()
mod.reset_c()
mod.reset_e()
def test_awkward_names(language):
import modules.awkward_names as mod
modnew = epyccel(mod, language=language)
assert mod.awkward_names == modnew.awkward_names
assert mod.a == modnew.a
assert mod.A == modnew.A
assert mod.function() == modnew.function()
assert mod.pure() == modnew.pure()
assert mod.allocate(1) == modnew.allocate(1) | tests/epyccel/test_epyccel_modules.py | import numpy as np
from pyccel.epyccel import epyccel
RTOL = 2e-14
ATOL = 1e-15
def test_module_1(language):
import modules.Module_1 as mod
modnew = epyccel(mod, language=language)
from numpy import zeros
# ...
x_expected = zeros(5)
x = zeros(5)
mod.f(x_expected)
mod.g(x_expected)
modnew.f(x)
modnew.g(x)
assert np.allclose( x, x_expected, rtol=RTOL, atol=ATOL )
# ...
def test_local_module_1(language):
import Module_1 as mod
modnew = epyccel(mod, language=language)
from numpy import zeros
# ...
x_expected = zeros(5)
x = zeros(5)
mod.f(x_expected)
mod.g(x_expected)
modnew.f(x)
modnew.g(x)
assert np.allclose( x, x_expected, rtol=RTOL, atol=ATOL )
# ...
def test_module_2(language):
import modules.Module_2 as mod
modnew = epyccel(mod, language=language)
# ...
m1 = 2 ; m2 = 3
x = np.zeros((m1,m2))
modnew.f6(m1, m2, x)
x_expected = np.zeros((m1,m2))
mod.f6(m1, m2, x_expected)
assert np.allclose( x, x_expected, rtol=RTOL, atol=ATOL )
# ...
def test_module_3(language):
import modules.call_user_defined_funcs as mod
modnew = epyccel(mod, language=language)
r = 4.5
x_expected = mod.circle_volume(r)
x = modnew.circle_volume(r)
assert np.isclose( x, x_expected, rtol=1e-14, atol=1e-14 )
def test_module_4(language):
import modules.Module_6 as mod
modnew = epyccel(mod, language=language)
n_x = np.random.randint(4,20)
n_y = np.random.randint(4,20)
x = np.empty(n_x, dtype=float)
y = np.random.random_sample(n_y)
x_pyc = x.copy()
y_pyc = y.copy()
max_pyt = mod.f(x,y)
max_pyc = modnew.f(x_pyc, y_pyc)
assert np.isclose( max_pyt, max_pyc, rtol=1e-14, atol=1e-14 )
assert np.allclose( x, x_pyc, rtol=1e-14, atol=1e-14 )
assert np.allclose( y, y_pyc, rtol=1e-14, atol=1e-14 )
def test_module_5(language):
import modules.Module_7 as mod
modnew = epyccel(mod, language=language)
max_pyt = mod.get_sum()
max_pyc = modnew.get_sum()
assert np.isclose( max_pyt, max_pyc, rtol=1e-14, atol=1e-14 )
max_pyt = mod.get_sum2()
max_pyc = modnew.get_sum2()
assert np.isclose( max_pyt, max_pyc, rtol=1e-14, atol=1e-14 )
def test_module_6(language):
import modules.consts as mod
modnew = epyccel(mod, language=language)
atts = ('g', 'R0', 'rMin', 'rMax', 'skip_centre',
'method', 'compl', 'tiny')
for att in atts:
mod_att = getattr(mod, att)
modnew_att = getattr(modnew, att)
assert mod_att == modnew_att
assert type(mod_att) is type(modnew_att)
def test_module_7(language):
import modules.array_consts as mod
modnew = epyccel(mod, language=language)
atts = ('a', 'b', 'c', 'd', 'e')
for att in atts:
mod_att = getattr(mod, att)
modnew_att = getattr(modnew, att)
assert np.array_equal(mod_att, modnew_att)
assert mod_att.dtype == modnew_att.dtype
modnew.update_a()
mod.update_a()
mod_att = mod.a
modnew_att = modnew.a
assert np.array_equal(mod_att, modnew_att)
assert mod_att.dtype == modnew_att.dtype
mod.a[3] = 10
modnew.a[3] = 10
assert np.array_equal(mod_att, modnew_att)
assert mod.get_elem_a(3) == modnew.get_elem_a(3)
mod.c[1,0] = 10
modnew.c[1,0] = 10
assert np.array_equal(mod.c, modnew.c)
assert mod.get_elem_c(1,0) == modnew.get_elem_c(1,0)
mod.e[1,0,2] = 50
modnew.e[1,0,2] = 50
assert np.array_equal(mod.e, modnew.e)
assert mod.get_elem_e(1,0,2) == modnew.get_elem_e(1,0,2)
# Necessary as python does not reload modules
mod.reset_a()
mod.reset_c()
mod.reset_e()
def test_awkward_names(language):
import modules.awkward_names as mod
modnew = epyccel(mod, language=language)
assert mod.awkward_names == modnew.awkward_names
assert mod.a == modnew.a
assert mod.A == modnew.A
assert mod.function() == modnew.function()
assert mod.pure() == modnew.pure()
assert mod.allocate(1) == modnew.allocate(1) | 0.545528 | 0.516961 |
import numpy as np
from scipy import optimize
"""
<NAME>
an implementation of SIE model as introduced in Kormann, Schneider & Bartelmann (1994)
f : is the SIE lens axis ratio parameter in [0,1]
r,phi : polar coordinates of the images, r is scaled by the Einstein's radius
"""
def fRatio(f):
"""
f : SIE parameter
"""
return np.sqrt(f)/np.sqrt(1-f**2)
def kappa(r,phi,f):
"""
SIE dimensionless surface mass density
r,phi : angular polar coordinate of the image
f : SIE lens parameter
"""
N = np.sqrt(f)
D = 2*r*np.sqrt(np.power(np.cos(phi),2)+np.power(f,2)*np.power(np.cos(phi),2))
return N/D
def magnification(r,phi,f):
"""
SIE magnification at
r, phi : angular polar coordinate of the image
f : SIE lens parameter
"""
return 1/(1-2*kappa(r,phi,f))
def A(r,phi,f):
"""
SIE distortion matrix
x, phi : angular polar coordinate of the image
f : SIE lens parameter
"""
A11 = 1-2*kappa(r,phi,f)*np.power(np.sin(phi),2)
A12 = kappa(r,phi,f)*np.sin(2*phi)
A22 = 1-2*kappa(r,phi,f)*np.power(np.cos(phi),2)
return np.array([[A11,A12],[A12,A22]])
def alpha(phi,f):
"""SIE deflection angle"""
return -fRatio(f)*np.array([np.arcsinh(np.sqrt(1-f*f)*np.cos(phi)/f),np.arcsin(np.sqrt(1-f*f)*np.sin(phi))])
def cut(phi,f) :
"""
limit of the lens equation when x tends to zero
"""
return -alpha(phi,f)
def caustic(phi,f) :
"""
the points where the distortion matrix is singular
"""
DeltaPhi = np.sqrt(np.power(np.cos(phi),2)+np.power(f*np.sin(phi),2))
v1 = np.array([np.sqrt(f)*np.cos(phi),np.sqrt(f)*np.sin(phi)])/DeltaPhi
v2 = alpha(phi,f)
return v1+v2
def psiTilde(phi,f) :
return fRatio(f)*(
np.cos(phi)*np.arcsinh(np.sqrt(1-f*f)*np.cos(phi)/f)+
np.sin(phi)*np.arcsin(np.sin(phi)*np.sqrt(1-f*f))
)
def radius(phi,f,y1,y2) :
"""
SIE lens equation x as a function of phi
phi : polar angle of lens image
f : SIE lens parameter
y1,y2 : source location
return : x as a function of phi
"""
return y1*np.cos(phi)+y2*np.sin(phi)+psiTilde(phi,f)
def eq2(phi,f,y1,y2) :
"""
SIE lens equation in phi
phi : polar angle of lens image
f : SIE lens parameter
y1,y2 : source location
"""
eqA = (y1+fRatio(f)*np.arcsinh(np.sqrt(1-f*f)*np.cos(phi)/f))*np.sin(phi)
eqB =-(y2+fRatio(f)*np.arcsin(np.sin(phi)*np.sqrt(1-f*f)))*np.cos(phi)
return eqA+eqB
def solve(f,y1,y2) :
""" solve SIE lens equation with
f : axis ratio
y1,y2 : relative source position with respect to the lens
return : phi,x image position in polar coordinate as arrays of length 2 or 4
"""
eq = lambda phi : eq2(phi,f,y1,y2)
step = 0.1
phiTest = np.arange(0,2*np.pi+step,step)
test = eq(phiTest)>0
phiI = []
for phi0 in phiTest[np.where(test[:-1] != test[1:])]:
root = optimize.brentq(eq,phi0,phi0+step)
phiI.append(root%(2*np.pi))
phiI = np.array(phiI)
rI = radius(phiI,f,y1,y2)
return rI,phiI | lens/sie/model.py | import numpy as np
from scipy import optimize
"""
<NAME>
an implementation of SIE model as introduced in Kormann, Schneider & Bartelmann (1994)
f : is the SIE lens axis ratio parameter in [0,1]
r,phi : polar coordinates of the images, r is scaled by the Einstein's radius
"""
def fRatio(f):
"""
f : SIE parameter
"""
return np.sqrt(f)/np.sqrt(1-f**2)
def kappa(r,phi,f):
"""
SIE dimensionless surface mass density
r,phi : angular polar coordinate of the image
f : SIE lens parameter
"""
N = np.sqrt(f)
D = 2*r*np.sqrt(np.power(np.cos(phi),2)+np.power(f,2)*np.power(np.cos(phi),2))
return N/D
def magnification(r,phi,f):
"""
SIE magnification at
r, phi : angular polar coordinate of the image
f : SIE lens parameter
"""
return 1/(1-2*kappa(r,phi,f))
def A(r,phi,f):
"""
SIE distortion matrix
x, phi : angular polar coordinate of the image
f : SIE lens parameter
"""
A11 = 1-2*kappa(r,phi,f)*np.power(np.sin(phi),2)
A12 = kappa(r,phi,f)*np.sin(2*phi)
A22 = 1-2*kappa(r,phi,f)*np.power(np.cos(phi),2)
return np.array([[A11,A12],[A12,A22]])
def alpha(phi,f):
"""SIE deflection angle"""
return -fRatio(f)*np.array([np.arcsinh(np.sqrt(1-f*f)*np.cos(phi)/f),np.arcsin(np.sqrt(1-f*f)*np.sin(phi))])
def cut(phi,f) :
"""
limit of the lens equation when x tends to zero
"""
return -alpha(phi,f)
def caustic(phi,f) :
"""
the points where the distortion matrix is singular
"""
DeltaPhi = np.sqrt(np.power(np.cos(phi),2)+np.power(f*np.sin(phi),2))
v1 = np.array([np.sqrt(f)*np.cos(phi),np.sqrt(f)*np.sin(phi)])/DeltaPhi
v2 = alpha(phi,f)
return v1+v2
def psiTilde(phi,f) :
return fRatio(f)*(
np.cos(phi)*np.arcsinh(np.sqrt(1-f*f)*np.cos(phi)/f)+
np.sin(phi)*np.arcsin(np.sin(phi)*np.sqrt(1-f*f))
)
def radius(phi,f,y1,y2) :
"""
SIE lens equation x as a function of phi
phi : polar angle of lens image
f : SIE lens parameter
y1,y2 : source location
return : x as a function of phi
"""
return y1*np.cos(phi)+y2*np.sin(phi)+psiTilde(phi,f)
def eq2(phi,f,y1,y2) :
"""
SIE lens equation in phi
phi : polar angle of lens image
f : SIE lens parameter
y1,y2 : source location
"""
eqA = (y1+fRatio(f)*np.arcsinh(np.sqrt(1-f*f)*np.cos(phi)/f))*np.sin(phi)
eqB =-(y2+fRatio(f)*np.arcsin(np.sin(phi)*np.sqrt(1-f*f)))*np.cos(phi)
return eqA+eqB
def solve(f,y1,y2) :
""" solve SIE lens equation with
f : axis ratio
y1,y2 : relative source position with respect to the lens
return : phi,x image position in polar coordinate as arrays of length 2 or 4
"""
eq = lambda phi : eq2(phi,f,y1,y2)
step = 0.1
phiTest = np.arange(0,2*np.pi+step,step)
test = eq(phiTest)>0
phiI = []
for phi0 in phiTest[np.where(test[:-1] != test[1:])]:
root = optimize.brentq(eq,phi0,phi0+step)
phiI.append(root%(2*np.pi))
phiI = np.array(phiI)
rI = radius(phiI,f,y1,y2)
return rI,phiI | 0.699254 | 0.847842 |
import math
import cv2
import numpy as np
import torch
import torchvision as tv
def run_first_stage(args):
"""Run P-Net, generate bounding boxes, and do NMS.
Arguments:
image: an instance of PIL.Image.
net: an instance of pytorch's nn.Module, P-Net.
scale: a float number,
scale width and height of the image by this number.
threshold: a float number,
threshold on the probability of a face when generating
bounding boxes from predictions of the net.
Returns:
a float numpy array of shape [n_boxes, 9],
bounding boxes with scores and offsets (4 + 1 + 4).
"""
imgs = []
# imgt = args[0][0]
for image, size, net, scale, threshold in args:
# scale the image and convert it to a float array
width, height = size
sw, sh = math.ceil(width * scale), math.ceil(height * scale)
img = cv2.resize(image, (sw, sh), cv2.INTER_LINEAR)
img = torch.from_numpy(img.transpose(2, 0, 1)[None, :, :, :]).to("cuda:0").float()
img.sub_(127.5).mul_(0.0078125)
imgs.append(img)
outputs = []
with torch.no_grad():
for img in imgs:
outputs.append(net(img))
allboxes = []
for output, (_, _, _, scale, threshold) in zip(outputs, args):
probs = output[1][0, 1, :, :]
offsets = output[0]
# probs: probability of a face at each sliding window
# offsets: transformations to true bounding boxes
boxes = _generate_bboxes(probs, offsets, scale, threshold)
if len(boxes) == 0:
continue
# keep = nms(boxes[:, 0:5], overlap_threshold=0.5)
keep = tv.ops.nms(boxes[:, :4], boxes[:, 4], 0.5)
allboxes.append(boxes[keep])
return allboxes
def _generate_bboxes(probs, offsets, scale, threshold):
"""Generate bounding boxes at places
where there is probably a face.
Arguments:
probs: a float numpy array of shape [n, m].
offsets: a float numpy array of shape [1, 4, n, m].
scale: a float number,
width and height of the image were scaled by this number.
threshold: a float number.
Returns:
a float numpy array of shape [n_boxes, 9]
"""
# applying P-Net is equivalent, in some sense, to
# moving 12x12 window with stride 2
stride = 2
cell_size = 12
# indices of boxes where there is probably a face
inds = torch.where(probs > threshold)
if inds[0].size(0) == 0:
return np.array([])
# transformations of bounding boxes
tx1, ty1, tx2, ty2 = [offsets[0, i, inds[0], inds[1]] for i in range(4)]
# they are defined as:
# w = x2 - x1 + 1
# h = y2 - y1 + 1
# x1_true = x1 + tx1*w
# x2_true = x2 + tx2*w
# y1_true = y1 + ty1*h
# y2_true = y2 + ty2*h
offsets = torch.stack([tx1, ty1, tx2, ty2])
score = probs[inds[0], inds[1]]
# P-Net is applied to scaled images
# so we need to rescale bounding boxes back
bounding_boxes = torch.cat([
torch.round((stride * inds[1].float() + 1.0) / scale)[None, :],
torch.round((stride * inds[0].float() + 1.0) / scale)[None, :],
torch.round((stride * inds[1].float() + 1.0 + cell_size) / scale)[None, :],
torch.round((stride * inds[0].float() + 1.0 + cell_size) / scale)[None, :], score[None, :], offsets
]).permute(1, 0)
# why one is added?
return bounding_boxes | evolveface/align/first_stage.py | import math
import cv2
import numpy as np
import torch
import torchvision as tv
def run_first_stage(args):
"""Run P-Net, generate bounding boxes, and do NMS.
Arguments:
image: an instance of PIL.Image.
net: an instance of pytorch's nn.Module, P-Net.
scale: a float number,
scale width and height of the image by this number.
threshold: a float number,
threshold on the probability of a face when generating
bounding boxes from predictions of the net.
Returns:
a float numpy array of shape [n_boxes, 9],
bounding boxes with scores and offsets (4 + 1 + 4).
"""
imgs = []
# imgt = args[0][0]
for image, size, net, scale, threshold in args:
# scale the image and convert it to a float array
width, height = size
sw, sh = math.ceil(width * scale), math.ceil(height * scale)
img = cv2.resize(image, (sw, sh), cv2.INTER_LINEAR)
img = torch.from_numpy(img.transpose(2, 0, 1)[None, :, :, :]).to("cuda:0").float()
img.sub_(127.5).mul_(0.0078125)
imgs.append(img)
outputs = []
with torch.no_grad():
for img in imgs:
outputs.append(net(img))
allboxes = []
for output, (_, _, _, scale, threshold) in zip(outputs, args):
probs = output[1][0, 1, :, :]
offsets = output[0]
# probs: probability of a face at each sliding window
# offsets: transformations to true bounding boxes
boxes = _generate_bboxes(probs, offsets, scale, threshold)
if len(boxes) == 0:
continue
# keep = nms(boxes[:, 0:5], overlap_threshold=0.5)
keep = tv.ops.nms(boxes[:, :4], boxes[:, 4], 0.5)
allboxes.append(boxes[keep])
return allboxes
def _generate_bboxes(probs, offsets, scale, threshold):
"""Generate bounding boxes at places
where there is probably a face.
Arguments:
probs: a float numpy array of shape [n, m].
offsets: a float numpy array of shape [1, 4, n, m].
scale: a float number,
width and height of the image were scaled by this number.
threshold: a float number.
Returns:
a float numpy array of shape [n_boxes, 9]
"""
# applying P-Net is equivalent, in some sense, to
# moving 12x12 window with stride 2
stride = 2
cell_size = 12
# indices of boxes where there is probably a face
inds = torch.where(probs > threshold)
if inds[0].size(0) == 0:
return np.array([])
# transformations of bounding boxes
tx1, ty1, tx2, ty2 = [offsets[0, i, inds[0], inds[1]] for i in range(4)]
# they are defined as:
# w = x2 - x1 + 1
# h = y2 - y1 + 1
# x1_true = x1 + tx1*w
# x2_true = x2 + tx2*w
# y1_true = y1 + ty1*h
# y2_true = y2 + ty2*h
offsets = torch.stack([tx1, ty1, tx2, ty2])
score = probs[inds[0], inds[1]]
# P-Net is applied to scaled images
# so we need to rescale bounding boxes back
bounding_boxes = torch.cat([
torch.round((stride * inds[1].float() + 1.0) / scale)[None, :],
torch.round((stride * inds[0].float() + 1.0) / scale)[None, :],
torch.round((stride * inds[1].float() + 1.0 + cell_size) / scale)[None, :],
torch.round((stride * inds[0].float() + 1.0 + cell_size) / scale)[None, :], score[None, :], offsets
]).permute(1, 0)
# why one is added?
return bounding_boxes | 0.883651 | 0.722233 |
import logging
from ...lib import debug
from ...lib.gdsymbol import Symbol
from ...lib.symboltable import Scope
from ...lib.types.table.hierarchicalDict import HierarchicalDict
_LOGGER = logging.getLogger(__name__)
_DEBUG = debug.Debug(_LOGGER)
_version = '0.3.0'
class Requirement(HierarchicalDict):
def __init__(self, table, tag=None, parent=None) -> None:
_DEBUG.print('class Requirement(HierarchicalDict) {')
_DEBUG.indent()
super().__init__(table, tag)
self.setProp(None, 'plugin', 'sysml')
self.setProp(None, 'type', 'requirement')
self.setProp(None, 'version', _version)
self.itemTable = self._createItems()
_DEBUG.undent()
_DEBUG.print('}')
def getItems(self, symboltable):
items = []
for item in self.itemTable:
items.append(item.getItem(symboltable))
return items
def _createItems(self, element=None, parentId=''):
items = []
elements = self.getChildren(element)
for key in elements:
ids = key.split('.')
if len(ids) > 1:
if not parentId.endswith('.'.join(ids[:-1])): # 現在、tagを無視している
# should raise
return None
id = '' if parentId == '' else parentId + '.'
id += ids[-1]
# 事前準備
items.append(RequirementItem(self, id, elements[key], parentId))
items += self._createItems(elements[key], id) # 現在、tagを無視している
_DEBUG.print('createItems: len(items) = ' + str(len(items)))
return items
def link(self):
for item in self.itemTable:
for linktype in item.trace:
for linkto in item.trace[linktype]:
linkitem = item.symboltable.resolve(linkto)
if linkitem is not None:
if not linktype in item.link['to']:
item.link['to'][linktype] = []
item.link['to'][linktype].append(linkitem)
if not linktype in linkitem.link['from']:
linkitem.link['from'][linktype] = []
linkitem.link['from'][linktype].append(item)
else:
if not linktype in item.link['to']:
item.link['to'][linktype] = []
item.link['to'][linktype].append(linkto)
class RequirementItem:
def __init__(self, reqt, id, element, parentId='') -> None:
self.symboltable = None
self.id = Symbol.getId(id)
self.tags = Symbol.getTags(id)
self.name = reqt.getProp(None, 'Name', element)
self.stereotype = reqt.getProp(None, 'Name', element)
self.text = reqt.getProp(None, 'Description', element)
self.trace = Trace(reqt.getProp(None, 'Trace', element)).content
self.assosiation = {}
self.link = {'to': {}, 'from': {}}
if parentId != '':
self.addTrace('deriveReqt', parentId)
# addItem(self, symbol, name, objectClass, item, scope=Scope.PUBLIC):
def getItem(self, symboltable=None):
if symboltable is not None:
self.symboltable = symboltable
item = {}
item['symbol'] = self.id
item['name'] = self.name
item['objectClass'] = RequirementItem
item['item'] = self
item['scope'] = Scope.PUBLIC
return item
def addTrace(self, type, id):
if self.trace.get(type) is None:
self.trace[type] = []
self.trace[type].append(id)
class Trace:
def __init__(self, table) -> None:
self.content = {}
if isinstance(table, list):
if isinstance(table[0], list):
data = []
for row in table:
data = data + row
else:
data = table
elif isinstance(table, str):
data = [table]
else:
# should raise
return None
for cell in data:
self._parseTrace(self.content, cell)
def _parseTrace(self, content, cell):
result = {}
key = 'trace'
_VALID_TRACE_TYPES = {
'trace': 'trace',
'copy': 'copy',
'refine': 'refine',
'derive': 'deriveReqt',
'derivereqt': 'deriveReqt'
}
cell = cell.replace(',', ' ')
for word in cell.split():
if word.startswith('@'):
word = word[1:].lower()
if _VALID_TRACE_TYPES.get(word) is None:
# should raise
_LOGGER.warning('trace type \'%s\' is invalid.', word)
key = '_INVALID_'
else:
key = _VALID_TRACE_TYPES.get(word)
else:
if Symbol.isValid(word):
if not key in content:
content[key] = []
content[key].append(word)
else:
# should raise
_LOGGER.warning('trace id \'%s\' is invalid.', word) | gdoc/plugin/sysml/requirement.py |
import logging
from ...lib import debug
from ...lib.gdsymbol import Symbol
from ...lib.symboltable import Scope
from ...lib.types.table.hierarchicalDict import HierarchicalDict
_LOGGER = logging.getLogger(__name__)
_DEBUG = debug.Debug(_LOGGER)
_version = '0.3.0'
class Requirement(HierarchicalDict):
def __init__(self, table, tag=None, parent=None) -> None:
_DEBUG.print('class Requirement(HierarchicalDict) {')
_DEBUG.indent()
super().__init__(table, tag)
self.setProp(None, 'plugin', 'sysml')
self.setProp(None, 'type', 'requirement')
self.setProp(None, 'version', _version)
self.itemTable = self._createItems()
_DEBUG.undent()
_DEBUG.print('}')
def getItems(self, symboltable):
items = []
for item in self.itemTable:
items.append(item.getItem(symboltable))
return items
def _createItems(self, element=None, parentId=''):
items = []
elements = self.getChildren(element)
for key in elements:
ids = key.split('.')
if len(ids) > 1:
if not parentId.endswith('.'.join(ids[:-1])): # 現在、tagを無視している
# should raise
return None
id = '' if parentId == '' else parentId + '.'
id += ids[-1]
# 事前準備
items.append(RequirementItem(self, id, elements[key], parentId))
items += self._createItems(elements[key], id) # 現在、tagを無視している
_DEBUG.print('createItems: len(items) = ' + str(len(items)))
return items
def link(self):
for item in self.itemTable:
for linktype in item.trace:
for linkto in item.trace[linktype]:
linkitem = item.symboltable.resolve(linkto)
if linkitem is not None:
if not linktype in item.link['to']:
item.link['to'][linktype] = []
item.link['to'][linktype].append(linkitem)
if not linktype in linkitem.link['from']:
linkitem.link['from'][linktype] = []
linkitem.link['from'][linktype].append(item)
else:
if not linktype in item.link['to']:
item.link['to'][linktype] = []
item.link['to'][linktype].append(linkto)
class RequirementItem:
def __init__(self, reqt, id, element, parentId='') -> None:
self.symboltable = None
self.id = Symbol.getId(id)
self.tags = Symbol.getTags(id)
self.name = reqt.getProp(None, 'Name', element)
self.stereotype = reqt.getProp(None, 'Name', element)
self.text = reqt.getProp(None, 'Description', element)
self.trace = Trace(reqt.getProp(None, 'Trace', element)).content
self.assosiation = {}
self.link = {'to': {}, 'from': {}}
if parentId != '':
self.addTrace('deriveReqt', parentId)
# addItem(self, symbol, name, objectClass, item, scope=Scope.PUBLIC):
def getItem(self, symboltable=None):
if symboltable is not None:
self.symboltable = symboltable
item = {}
item['symbol'] = self.id
item['name'] = self.name
item['objectClass'] = RequirementItem
item['item'] = self
item['scope'] = Scope.PUBLIC
return item
def addTrace(self, type, id):
if self.trace.get(type) is None:
self.trace[type] = []
self.trace[type].append(id)
class Trace:
def __init__(self, table) -> None:
self.content = {}
if isinstance(table, list):
if isinstance(table[0], list):
data = []
for row in table:
data = data + row
else:
data = table
elif isinstance(table, str):
data = [table]
else:
# should raise
return None
for cell in data:
self._parseTrace(self.content, cell)
def _parseTrace(self, content, cell):
result = {}
key = 'trace'
_VALID_TRACE_TYPES = {
'trace': 'trace',
'copy': 'copy',
'refine': 'refine',
'derive': 'deriveReqt',
'derivereqt': 'deriveReqt'
}
cell = cell.replace(',', ' ')
for word in cell.split():
if word.startswith('@'):
word = word[1:].lower()
if _VALID_TRACE_TYPES.get(word) is None:
# should raise
_LOGGER.warning('trace type \'%s\' is invalid.', word)
key = '_INVALID_'
else:
key = _VALID_TRACE_TYPES.get(word)
else:
if Symbol.isValid(word):
if not key in content:
content[key] = []
content[key].append(word)
else:
# should raise
_LOGGER.warning('trace id \'%s\' is invalid.', word) | 0.261802 | 0.134349 |
import torch.nn as nn
from src.Sublayers import FeedForward, MultiHeadAttention, Norm, attention
import torch
class EncoderLayer(nn.Module):
def __init__(self, d_model, heads, dropout=0.1):
super().__init__()
self.norm_1 = Norm(d_model)
self.norm_2 = Norm(d_model)
self.attn = MultiHeadAttention(heads, d_model, dropout=dropout)
self.ff = FeedForward(d_model, d_ff=d_model, dropout=dropout)
self.dropout_1 = nn.Dropout(dropout)
self.dropout_2 = nn.Dropout(dropout)
def forward(self, x, mask=None, low_dim = False):
x2 = x if low_dim else self.norm_1(x)
x = x + self.dropout_1(self.attn(x2, x2, x2, mask))
x2 = x if low_dim else self.norm_2(x)
x = x + self.dropout_2(self.ff(x2, low_dim = low_dim))
return x
class OutputAttentionLayer(nn.Module):
def __init__(self, src_d_model, trg_d_model):
## norm(src) + norm(trg) + linear + attn
super().__init__()
self.src_norm = Norm(src_d_model)
self.trg_norm = Norm(trg_d_model)
self.src_linear = nn.Linear(src_d_model, src_d_model)
self.trg_linear = nn.Linear(trg_d_model, trg_d_model)
def forward(self, src, trg):
#src = self.src_linear(self.src_norm(src))
#trg = self.trg_linear(self.trg_norm(trg))
output = attention(src, trg, trg)
return output
class MulAttentionLayer(nn.Module):
def __init__(self, src_d_model, trg_d_model):
super().__init__()
self.context = nn.Parameter(torch.FloatTensor(src_d_model, 1))
self.src_norm = Norm(src_d_model)
self.trg_norm = Norm(trg_d_model)
self.src_linear = nn.Linear(src_d_model, src_d_model)
self.trg_linear = nn.Linear(trg_d_model, trg_d_model)
def forward(self, src, trg):
src = torch.tanh(self.src_linear(self.src_norm(src)))
trg = self.trg_linear(self.trg_norm(trg))
transfered_src = torch.matmul(src, self.context)
# build a decoder layer with two multi-head attention layers and
# one feed-forward layer
class DecoderLayer(nn.Module):
def __init__(self, d_model, heads, dropout=0.1):
super().__init__()
self.norm_1 = Norm(d_model)
self.norm_2 = Norm(d_model)
self.norm_3 = Norm(d_model)
self.dropout_1 = nn.Dropout(dropout)
self.dropout_2 = nn.Dropout(dropout)
self.dropout_3 = nn.Dropout(dropout)
self.attn_1 = MultiHeadAttention(heads, d_model, dropout=dropout)
self.attn_2 = MultiHeadAttention(heads, d_model, dropout=dropout)
self.ff = FeedForward(d_model, d_ff=d_model, dropout=dropout)
def forward(self, x, e_outputs, src_mask=None, trg_mask=None, low_dim = False):
x2 = x if low_dim else self.norm_1(x)
x = x + self.dropout_1(self.attn_1(x2, x2, x2, trg_mask))
x2 = x if low_dim else self.norm_2(x)
x = x + self.dropout_2(self.attn_2(x2, e_outputs, e_outputs, src_mask))
x2 = x if low_dim else self.norm_3(x)
x = x + self.dropout_3(self.ff(x2, low_dim = low_dim))
return x | src/Layers.py | import torch.nn as nn
from src.Sublayers import FeedForward, MultiHeadAttention, Norm, attention
import torch
class EncoderLayer(nn.Module):
def __init__(self, d_model, heads, dropout=0.1):
super().__init__()
self.norm_1 = Norm(d_model)
self.norm_2 = Norm(d_model)
self.attn = MultiHeadAttention(heads, d_model, dropout=dropout)
self.ff = FeedForward(d_model, d_ff=d_model, dropout=dropout)
self.dropout_1 = nn.Dropout(dropout)
self.dropout_2 = nn.Dropout(dropout)
def forward(self, x, mask=None, low_dim = False):
x2 = x if low_dim else self.norm_1(x)
x = x + self.dropout_1(self.attn(x2, x2, x2, mask))
x2 = x if low_dim else self.norm_2(x)
x = x + self.dropout_2(self.ff(x2, low_dim = low_dim))
return x
class OutputAttentionLayer(nn.Module):
def __init__(self, src_d_model, trg_d_model):
## norm(src) + norm(trg) + linear + attn
super().__init__()
self.src_norm = Norm(src_d_model)
self.trg_norm = Norm(trg_d_model)
self.src_linear = nn.Linear(src_d_model, src_d_model)
self.trg_linear = nn.Linear(trg_d_model, trg_d_model)
def forward(self, src, trg):
#src = self.src_linear(self.src_norm(src))
#trg = self.trg_linear(self.trg_norm(trg))
output = attention(src, trg, trg)
return output
class MulAttentionLayer(nn.Module):
def __init__(self, src_d_model, trg_d_model):
super().__init__()
self.context = nn.Parameter(torch.FloatTensor(src_d_model, 1))
self.src_norm = Norm(src_d_model)
self.trg_norm = Norm(trg_d_model)
self.src_linear = nn.Linear(src_d_model, src_d_model)
self.trg_linear = nn.Linear(trg_d_model, trg_d_model)
def forward(self, src, trg):
src = torch.tanh(self.src_linear(self.src_norm(src)))
trg = self.trg_linear(self.trg_norm(trg))
transfered_src = torch.matmul(src, self.context)
# build a decoder layer with two multi-head attention layers and
# one feed-forward layer
class DecoderLayer(nn.Module):
def __init__(self, d_model, heads, dropout=0.1):
super().__init__()
self.norm_1 = Norm(d_model)
self.norm_2 = Norm(d_model)
self.norm_3 = Norm(d_model)
self.dropout_1 = nn.Dropout(dropout)
self.dropout_2 = nn.Dropout(dropout)
self.dropout_3 = nn.Dropout(dropout)
self.attn_1 = MultiHeadAttention(heads, d_model, dropout=dropout)
self.attn_2 = MultiHeadAttention(heads, d_model, dropout=dropout)
self.ff = FeedForward(d_model, d_ff=d_model, dropout=dropout)
def forward(self, x, e_outputs, src_mask=None, trg_mask=None, low_dim = False):
x2 = x if low_dim else self.norm_1(x)
x = x + self.dropout_1(self.attn_1(x2, x2, x2, trg_mask))
x2 = x if low_dim else self.norm_2(x)
x = x + self.dropout_2(self.attn_2(x2, e_outputs, e_outputs, src_mask))
x2 = x if low_dim else self.norm_3(x)
x = x + self.dropout_3(self.ff(x2, low_dim = low_dim))
return x | 0.948953 | 0.364735 |
import os
import socket
import sys
import configparser
import logging
import json
import time
from task_loader import TaskLoader
from planner import Planner
# TODO: при отключении клиент адаптера на CUnit, которому была адресована
# последняя команда, начинается спам этой командой, так как в беск. цикле
# вызывается исключение, и так снова и снова.
logging.basicConfig(
format=u' %(levelname)-8s [%(asctime)s] %(message)s',
level=logging.DEBUG,
filename='Planner.log'
)
# config
CONFIG_FILE = os.path.join(
os.path.dirname(os.path.dirname(__file__)),
'configBL.ini'
)
CONFIG = configparser.ConfigParser()
CONFIG.read(CONFIG_FILE)
HOST = CONFIG['HOSTS']['Main_host']
PORT_CL_AD = int(CONFIG['PORTS']['Port_cl_adapter'])
PORT_PLANNER = int(CONFIG['PORTS']['Port_planner'])
PORT_3D_SCENE = int(CONFIG['PORTS']['Port_3d_scene'])
PORT_ROB_AD = int(CONFIG['PORTS']['Port_rca'])
BUFFER_SIZE = int(CONFIG['PARAMS']['Buffersize'])
WHO = 'p'
ROBO_DICT = ['f', 't']
# end config
SOCK_ROB_AD = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
SOCK_ROB_AD.connect((HOST, PORT_ROB_AD))
SOCK_ROB_AD.send(WHO.encode())
except ConnectionRefusedError:
logging.error('RCA refused connection')
SOCK_3D_SCENE = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
SOCK_3D_SCENE.connect((HOST, PORT_3D_SCENE))
SOCK_3D_SCENE.send(b'planner')
except ConnectionRefusedError:
logging.error('Scene3d refused connection')
SOCK_SERV = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
SOCK_SERV.bind((HOST, PORT_PLANNER))
SOCK_SERV.listen(1)
# Read all data from socket buffer.
def receive(sock):
total_data = b''
try:
while True:
recv_data = sock.recv(BUFFER_SIZE)
if recv_data:
total_data += recv_data
else:
break
except Exception:
pass
return total_data.decode()
planner = Planner(SOCK_ROB_AD, SOCK_3D_SCENE, ROBO_DICT, BUFFER_SIZE)
taskloader = TaskLoader()
count = 0
while True:
conn, addr = SOCK_SERV.accept()
conn.setblocking(False)
while True:
try:
messages = receive(conn)
if messages:
logging.info(messages)
print('Command iteration:', count)
else:
continue
messages = messages.split('|')
for message in messages[:-1]: # Skip last empty list.
if message == 'e':
for robot in ROBO_DICT:
message = f'{robot}: e|'
try:
print('Send exit message to robots:', message)
SOCK_ROB_AD.send(message.encode())
time.sleep(1)
except ConnectionAbortedError:
logging.error('RCA aborted connection')
try:
print('Send exit message to RCA:', message)
SOCK_ROB_AD.send(b'e|')
except ConnectionAbortedError:
logging.error('RCA aborted connection')
logging.info('Planner stopped')
sys.exit(0)
try:
print(message)
data = json.loads(message)
planner.process_complex_task(data, taskloader)
except ConnectionAbortedError:
# logging.error('RCA aborted connection')
pass
except Exception as e:
print('Exception:', e)
continue
except ConnectionAbortedError:
# logging.error('ClientAdapter aborted connection')
pass
except ConnectionResetError:
# logging.error('ClientAdapter reset connection')
pass
count += 1
# TODO: добавить сюда отказоустойчивость при отловке какого либо
# осключения. чтобы он постоянно не спамил названием этой ошибки. | Planner/main.py | import os
import socket
import sys
import configparser
import logging
import json
import time
from task_loader import TaskLoader
from planner import Planner
# TODO: при отключении клиент адаптера на CUnit, которому была адресована
# последняя команда, начинается спам этой командой, так как в беск. цикле
# вызывается исключение, и так снова и снова.
logging.basicConfig(
format=u' %(levelname)-8s [%(asctime)s] %(message)s',
level=logging.DEBUG,
filename='Planner.log'
)
# config
CONFIG_FILE = os.path.join(
os.path.dirname(os.path.dirname(__file__)),
'configBL.ini'
)
CONFIG = configparser.ConfigParser()
CONFIG.read(CONFIG_FILE)
HOST = CONFIG['HOSTS']['Main_host']
PORT_CL_AD = int(CONFIG['PORTS']['Port_cl_adapter'])
PORT_PLANNER = int(CONFIG['PORTS']['Port_planner'])
PORT_3D_SCENE = int(CONFIG['PORTS']['Port_3d_scene'])
PORT_ROB_AD = int(CONFIG['PORTS']['Port_rca'])
BUFFER_SIZE = int(CONFIG['PARAMS']['Buffersize'])
WHO = 'p'
ROBO_DICT = ['f', 't']
# end config
SOCK_ROB_AD = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
SOCK_ROB_AD.connect((HOST, PORT_ROB_AD))
SOCK_ROB_AD.send(WHO.encode())
except ConnectionRefusedError:
logging.error('RCA refused connection')
SOCK_3D_SCENE = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
SOCK_3D_SCENE.connect((HOST, PORT_3D_SCENE))
SOCK_3D_SCENE.send(b'planner')
except ConnectionRefusedError:
logging.error('Scene3d refused connection')
SOCK_SERV = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
SOCK_SERV.bind((HOST, PORT_PLANNER))
SOCK_SERV.listen(1)
# Read all data from socket buffer.
def receive(sock):
total_data = b''
try:
while True:
recv_data = sock.recv(BUFFER_SIZE)
if recv_data:
total_data += recv_data
else:
break
except Exception:
pass
return total_data.decode()
planner = Planner(SOCK_ROB_AD, SOCK_3D_SCENE, ROBO_DICT, BUFFER_SIZE)
taskloader = TaskLoader()
count = 0
while True:
conn, addr = SOCK_SERV.accept()
conn.setblocking(False)
while True:
try:
messages = receive(conn)
if messages:
logging.info(messages)
print('Command iteration:', count)
else:
continue
messages = messages.split('|')
for message in messages[:-1]: # Skip last empty list.
if message == 'e':
for robot in ROBO_DICT:
message = f'{robot}: e|'
try:
print('Send exit message to robots:', message)
SOCK_ROB_AD.send(message.encode())
time.sleep(1)
except ConnectionAbortedError:
logging.error('RCA aborted connection')
try:
print('Send exit message to RCA:', message)
SOCK_ROB_AD.send(b'e|')
except ConnectionAbortedError:
logging.error('RCA aborted connection')
logging.info('Planner stopped')
sys.exit(0)
try:
print(message)
data = json.loads(message)
planner.process_complex_task(data, taskloader)
except ConnectionAbortedError:
# logging.error('RCA aborted connection')
pass
except Exception as e:
print('Exception:', e)
continue
except ConnectionAbortedError:
# logging.error('ClientAdapter aborted connection')
pass
except ConnectionResetError:
# logging.error('ClientAdapter reset connection')
pass
count += 1
# TODO: добавить сюда отказоустойчивость при отловке какого либо
# осключения. чтобы он постоянно не спамил названием этой ошибки. | 0.077311 | 0.084985 |
from __future__ import unicode_literals
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.core.validators import MinValueValidator, MaxValueValidator
from django.utils import timezone
from django.utils.encoding import python_2_unicode_compatible
from django.db import models
from djchoices import DjangoChoices, ChoiceItem
# Create your models here.
CONNECT4_SIZE = 6
@python_2_unicode_compatible
class Game(models.Model):
class Status(DjangoChoices):
"""Enum class for the different possible status of a game."""
new = ChoiceItem('new')
first_player = ChoiceItem('player1')
second_player = ChoiceItem('player2')
finished = ChoiceItem('finished')
player1 = models.ForeignKey(User, on_delete=models.CASCADE, related_name='player_1')
player2 = models.ForeignKey(User, on_delete=models.CASCADE, related_name='player_2', blank=True, null=True)
status = models.CharField(max_length=10, choices=Status.choices)
winner = models.CharField(max_length=10)
created_date = models.DateTimeField(default=timezone.now)
def __str__(self):
if self.player2:
return ' vs '.join([self.player1.get_full_name(), self.player2.get_full_name()])
else:
return 'Join now to play %s' % self.player1.get_short_name()
@property
def start_date(self):
return self.coin_set.order_by('created_date')[0].created_date
@property
def last_move(self):
return self.coin_set.order_by('-created_date')[0]
@property
def last_action_date(self):
return self.last_move.created_date
def join_up(self, player_2):
if self.player2 is None:
self.player2 = player_2
self.save()
return True
else:
return False
def create_new_coin(self, user):
return Coin(game=self, player=user)
def player_context(self, user):
player = None
if self.player1 == user:
player = Game.Status.first_player
elif self.player2 == user:
player = Game.Status.second_player
next_turn = self.status == player
return player, next_turn
def get_play_url(self):
return reverse('play_game', args=[self.id])
def is_pending(self):
return not (self.status == Game.Status.new or self.status == Game.Status.finished)
def is_valid_location(self, row, column):
return not self.coin_set.filter(row=row, column=column).exists() and \
(self.coin_set.filter(row=row-1, column=column).exists() or row == 0)
def update_game(self, coin, user):
coin.player = user
coin.save()
game_over = self.calculate_status(user)
player, _ = self.player_context(user)
if game_over is None:
# Draw
self.status = Game.Status.finished
elif game_over:
# Win
self.status = Game.Status.finished
self.winner = player
else:
# Toggle
self.status = Game.Status.first_player if player == Game.Status.second_player else Game.Status.second_player
self.save()
return self.status == Game.Status.finished
def calculate_status(self, user):
count_all = Coin.objects.count()
for coin in Coin.objects.filter(player=user).order_by('row', 'column'):
if coin.column + 3 <= CONNECT4_SIZE and coin.row + 3 <= CONNECT4_SIZE:
for i in range(4):
if not Coin.objects.filter(player=user, row=coin.row+i, column=coin.column+i).exists():
break
else:
return True
elif count_all == CONNECT4_SIZE ** 2:
# Draw condition
return None
else:
return False
if coin.row + 3 <= CONNECT4_SIZE:
if Coin.objects.filter(
player=user,
row__gte=coin.row,
row__lte=coin.row + 3,
column=coin.column
).count() == 4:
return True
if coin.column + 3 <= CONNECT4_SIZE:
if Coin.objects.filter(
player=user,
row=coin.row,
column__gte=coin.row,
column__lte=coin.row + 3
).count() == 4:
return True
return False
@python_2_unicode_compatible
class Coin(models.Model):
game = models.ForeignKey(Game, on_delete=models.CASCADE)
player = models.ForeignKey(User, on_delete=models.CASCADE)
column = models.IntegerField(validators=[MinValueValidator(0), MaxValueValidator(CONNECT4_SIZE - 1)])
row = models.IntegerField(validators=[MinValueValidator(0), MaxValueValidator(CONNECT4_SIZE - 1)])
created_date = models.DateTimeField(default=timezone.now)
def __str__(self):
return ' '.join([
self.player, 'to', self.row, self.column
]) | connect4/models.py | from __future__ import unicode_literals
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.core.validators import MinValueValidator, MaxValueValidator
from django.utils import timezone
from django.utils.encoding import python_2_unicode_compatible
from django.db import models
from djchoices import DjangoChoices, ChoiceItem
# Create your models here.
CONNECT4_SIZE = 6
@python_2_unicode_compatible
class Game(models.Model):
class Status(DjangoChoices):
"""Enum class for the different possible status of a game."""
new = ChoiceItem('new')
first_player = ChoiceItem('player1')
second_player = ChoiceItem('player2')
finished = ChoiceItem('finished')
player1 = models.ForeignKey(User, on_delete=models.CASCADE, related_name='player_1')
player2 = models.ForeignKey(User, on_delete=models.CASCADE, related_name='player_2', blank=True, null=True)
status = models.CharField(max_length=10, choices=Status.choices)
winner = models.CharField(max_length=10)
created_date = models.DateTimeField(default=timezone.now)
def __str__(self):
if self.player2:
return ' vs '.join([self.player1.get_full_name(), self.player2.get_full_name()])
else:
return 'Join now to play %s' % self.player1.get_short_name()
@property
def start_date(self):
return self.coin_set.order_by('created_date')[0].created_date
@property
def last_move(self):
return self.coin_set.order_by('-created_date')[0]
@property
def last_action_date(self):
return self.last_move.created_date
def join_up(self, player_2):
if self.player2 is None:
self.player2 = player_2
self.save()
return True
else:
return False
def create_new_coin(self, user):
return Coin(game=self, player=user)
def player_context(self, user):
player = None
if self.player1 == user:
player = Game.Status.first_player
elif self.player2 == user:
player = Game.Status.second_player
next_turn = self.status == player
return player, next_turn
def get_play_url(self):
return reverse('play_game', args=[self.id])
def is_pending(self):
return not (self.status == Game.Status.new or self.status == Game.Status.finished)
def is_valid_location(self, row, column):
return not self.coin_set.filter(row=row, column=column).exists() and \
(self.coin_set.filter(row=row-1, column=column).exists() or row == 0)
def update_game(self, coin, user):
coin.player = user
coin.save()
game_over = self.calculate_status(user)
player, _ = self.player_context(user)
if game_over is None:
# Draw
self.status = Game.Status.finished
elif game_over:
# Win
self.status = Game.Status.finished
self.winner = player
else:
# Toggle
self.status = Game.Status.first_player if player == Game.Status.second_player else Game.Status.second_player
self.save()
return self.status == Game.Status.finished
def calculate_status(self, user):
count_all = Coin.objects.count()
for coin in Coin.objects.filter(player=user).order_by('row', 'column'):
if coin.column + 3 <= CONNECT4_SIZE and coin.row + 3 <= CONNECT4_SIZE:
for i in range(4):
if not Coin.objects.filter(player=user, row=coin.row+i, column=coin.column+i).exists():
break
else:
return True
elif count_all == CONNECT4_SIZE ** 2:
# Draw condition
return None
else:
return False
if coin.row + 3 <= CONNECT4_SIZE:
if Coin.objects.filter(
player=user,
row__gte=coin.row,
row__lte=coin.row + 3,
column=coin.column
).count() == 4:
return True
if coin.column + 3 <= CONNECT4_SIZE:
if Coin.objects.filter(
player=user,
row=coin.row,
column__gte=coin.row,
column__lte=coin.row + 3
).count() == 4:
return True
return False
@python_2_unicode_compatible
class Coin(models.Model):
game = models.ForeignKey(Game, on_delete=models.CASCADE)
player = models.ForeignKey(User, on_delete=models.CASCADE)
column = models.IntegerField(validators=[MinValueValidator(0), MaxValueValidator(CONNECT4_SIZE - 1)])
row = models.IntegerField(validators=[MinValueValidator(0), MaxValueValidator(CONNECT4_SIZE - 1)])
created_date = models.DateTimeField(default=timezone.now)
def __str__(self):
return ' '.join([
self.player, 'to', self.row, self.column
]) | 0.759761 | 0.180035 |
import math
import sys
sys.path.append("./")
import numpy as np
from utils.belief_prop import bp_error_correction
from utils.viterbi import viterbi_error_correction
from utils.kjv_text import KJVTextDataset
from utils.metrics import char_err_rate, word_err_rate
kjv = KJVTextDataset()
# Simply use ground truth one-hot vectors as predictions
# Just a baseline model -- not much accomplished here in general
predictions = kjv.one_hot()
# Generate Gaussian noise (don't worry about normalization/rectification,
# the error correction will do this automatically later)
print("Generating Gaussian noise...")
mean = 0.0
std_dev = 0.2
gaussian_noise = np.random.normal(mean, std_dev, predictions.shape)
noisy_predictions = np.add(predictions, gaussian_noise)
print("Done generating Gaussian noise.")
# Compute character error rate and word error rate before error correction
print("PRE-ERROR CORRECTION")
print("Computing character error rate (CER)...")
cer = char_err_rate(np.argmax(noisy_predictions, axis=1), kjv)
print("Character error rate (CER): %.3f%%" % (cer * 100.0))
print("Computing word error rate (WER)...")
wer = word_err_rate(np.argmax(noisy_predictions, axis=1), kjv)
print("Word error rate (WER): %.3f%%" % (wer * 100.0))
print("Running belief prop with one-hot vectors degraded by Gaussian noise...")
# Run belief propagation with the bigram model
# Note: prediction is label vector, not one-hot matrix
bp_predictions = bp_error_correction(kjv, noisy_predictions)
# Compute character error rate and word error rate after error correction
print("POST-ERROR CORRECTION")
print("Computing character error rate (CER)...")
cer = char_err_rate(bp_predictions, kjv)
print("Character error rate (CER): %.3f%%" % (cer * 100.0))
print("Computing word error rate (WER)...")
wer = word_err_rate(bp_predictions, kjv)
print("Word error rate (WER): %.3f%%" % (wer * 100.0))
print("Completed BP run!")
print("Running Viterbi algorithm with one-hot vectors degraded by Gaussian noise...")
# Run Viterbi algorithm with the bigram model
# Note: prediction is label vector, not one-hot matrix
viterbi_predictions = viterbi_error_correction(kjv, noisy_predictions)
# Compute character error rate and word error rate after error correction
print("POST-ERROR CORRECTION")
print("Computing character error rate (CER)...")
cer = char_err_rate(viterbi_predictions, kjv)
print("Character error rate (CER): %.3f%%" % (cer * 100.0))
print("Computing word error rate (WER)...")
wer = word_err_rate(viterbi_predictions, kjv)
print("Word error rate (WER): %.3f%%" % (wer * 100.0))
print("Completed Viterbi run!") | scripts/onehot_gaussian.py | import math
import sys
sys.path.append("./")
import numpy as np
from utils.belief_prop import bp_error_correction
from utils.viterbi import viterbi_error_correction
from utils.kjv_text import KJVTextDataset
from utils.metrics import char_err_rate, word_err_rate
kjv = KJVTextDataset()
# Simply use ground truth one-hot vectors as predictions
# Just a baseline model -- not much accomplished here in general
predictions = kjv.one_hot()
# Generate Gaussian noise (don't worry about normalization/rectification,
# the error correction will do this automatically later)
print("Generating Gaussian noise...")
mean = 0.0
std_dev = 0.2
gaussian_noise = np.random.normal(mean, std_dev, predictions.shape)
noisy_predictions = np.add(predictions, gaussian_noise)
print("Done generating Gaussian noise.")
# Compute character error rate and word error rate before error correction
print("PRE-ERROR CORRECTION")
print("Computing character error rate (CER)...")
cer = char_err_rate(np.argmax(noisy_predictions, axis=1), kjv)
print("Character error rate (CER): %.3f%%" % (cer * 100.0))
print("Computing word error rate (WER)...")
wer = word_err_rate(np.argmax(noisy_predictions, axis=1), kjv)
print("Word error rate (WER): %.3f%%" % (wer * 100.0))
print("Running belief prop with one-hot vectors degraded by Gaussian noise...")
# Run belief propagation with the bigram model
# Note: prediction is label vector, not one-hot matrix
bp_predictions = bp_error_correction(kjv, noisy_predictions)
# Compute character error rate and word error rate after error correction
print("POST-ERROR CORRECTION")
print("Computing character error rate (CER)...")
cer = char_err_rate(bp_predictions, kjv)
print("Character error rate (CER): %.3f%%" % (cer * 100.0))
print("Computing word error rate (WER)...")
wer = word_err_rate(bp_predictions, kjv)
print("Word error rate (WER): %.3f%%" % (wer * 100.0))
print("Completed BP run!")
print("Running Viterbi algorithm with one-hot vectors degraded by Gaussian noise...")
# Run Viterbi algorithm with the bigram model
# Note: prediction is label vector, not one-hot matrix
viterbi_predictions = viterbi_error_correction(kjv, noisy_predictions)
# Compute character error rate and word error rate after error correction
print("POST-ERROR CORRECTION")
print("Computing character error rate (CER)...")
cer = char_err_rate(viterbi_predictions, kjv)
print("Character error rate (CER): %.3f%%" % (cer * 100.0))
print("Computing word error rate (WER)...")
wer = word_err_rate(viterbi_predictions, kjv)
print("Word error rate (WER): %.3f%%" % (wer * 100.0))
print("Completed Viterbi run!") | 0.4917 | 0.290022 |
import os
import datetime
import json
import codecs
import markdown
import sys
def save_utf8(filename, text):
with codecs.open(filename, 'w', encoding='utf-8')as f:
f.write(text)
def load_utf8(filename):
with codecs.open(filename, 'r', encoding='utf-8') as f:
return f.read()
def savefinalhtml(filepath, finalhtml):
output_file = codecs.open(filepath, "w", encoding="utf-8")
output_file.write(finalhtml)
output_file.close()
print("success generate ", filepath)
# load templates
index = load_utf8("index_template.html")
banner = load_utf8("banner_template.html")
u8u4 = load_utf8("8u-4u.html")
personal = load_utf8("people/personal_template.html")
# siteMap = load_utf8("templates/sitemap.tm.xml")
# generate index
new_index = index.replace("{{TITLE}}", "CBMI Group")
index_body = ""
index_body = index_body + banner + u8u4
news = [
['images/GNMD.png', 'Blind Denoising of Fluorescence Microscopy Images Using GAN-Based Global Noise Modeling', 'We have developed a blind denoiser that uses one GAN to model image noise globally and another GAN to drastically reduce background noise.', 'https://biomedicalimaging.org/2021/'],
['images/wsbm.jpg', 'Dynamic Organization of Intracellular Organelle Networks', 'We have developed a method to assess quality of synthetic fluorescence microscopy images and to evaluate their training performance in image segmentation.', 'https://onlinelibrary.wiley.com/doi/10.1002/wsbm.1505'],
["https://ars.els-cdn.com/content/image/1-s2.0-S221112471830860X-mmc6.mp4", "Whole-Cell Scale Dynamic Organization of Lysosomes Revealed by Spatial Statistical Analysis", "Our findings reveal whole-cell scale spatial organization of lysosomes and provide insights into how organelle interactions are mediated and regulated across the entire intracellular space.", "https://www.sciencedirect.com/science/article/pii/S221112471830860X",
"https://ars.els-cdn.com/content/image/1-s2.0-S221112471830860X-mmc6.jpg"],
["images/er-segmentation.png", "Deep Learning-Based Segmentation of Biological Networks in Fluorescence Microscopy", "We developed a deep learning-based pipeline to study the effects of image pre-processing, loss functions and model architectures for accurate segmentation of biological networks in FLMI.", "./projects/er-segmentation.html"],
["images/feng3-p5-feng-large.gif", "Quality Assessment of Synthetic Fluorescence Microscopy Images for Image Segmentation", "We have developed a method to assess quality of synthetic fluorescence microscopy images and to evaluate their training performance in image segmentation.", "https://ieeexplore.ieee.org/abstract/document/8802971"],
]
news_content = []
for a_new in news:
if len(a_new) == 4: # news_template
a_news_template = load_utf8("news_template.html")
t_new = a_news_template.replace("{{IMG_URL}}", a_new[0])
t_new = t_new.replace("{{RESEARCH_TITLE}}", a_new[1])
t_new = t_new.replace("{{RESEARCH_BRIEF}}", a_new[2])
t_new = t_new.replace("{{RESEARCH_LINK}}", a_new[3])
news_content.append(t_new)
elif len(a_new) == 5: # video_news
t_video_template = load_utf8("video_news.html")
t_new = t_video_template.replace("{{VIDEO_URL}}", a_new[0])
t_new = t_new.replace("{{RESEARCH_TITLE}}", a_new[1])
t_new = t_new.replace("{{RESEARCH_BRIEF}}", a_new[2])
t_new = t_new.replace("{{RESEARCH_LINK}}", a_new[3])
t_new = t_new.replace("{{VIDEO_IMG}}", a_new[4])
news_content.append(t_new)
else:
pass
a_row = load_utf8("row_template.html")
more_research_row = load_utf8("more_research_row.html")
index_body = index_body + a_row.replace("{{INNER}}", news_content[0] + news_content[1]) + more_research_row
new_index = new_index.replace("{{BODY}}", index_body)
new_index = new_index.replace("{{COUNT}}", "")
savefinalhtml("index.html", new_index)
# generate research
pub = index.replace("{{TITLE}}", "Research")
pub_tem = load_utf8("style2_template.html")
publications = load_utf8("md/research.md")
publications = markdown.markdown(publications)
pub_content = pub_tem.replace("{{POST_TITLE}}", "Research Projects")
research_row = load_utf8("a_project_row.html")
research_content = ""
for a_content in news_content:
research_content = research_content + a_content.replace('"4u"', '"6u"')
pub_content = pub_content.replace("{{POST_CONTENT}}", publications + research_row.replace("{{INNER}}", research_content))
pub = pub.replace("{{BODY}}", pub_content)
pub = pub.replace("{{COUNT}}", "research.html")
savefinalhtml("research.html", pub)
# generate people
pub = index.replace("{{TITLE}}", "Team")
my_people = load_utf8("md/people_template.html")
pub = pub.replace("{{BODY}}", my_people)
pub = pub.replace("{{COUNT}}", "people.html")
savefinalhtml("people.html", pub)
def generate_a_person(mdpath, pagetitle, htmlpath):
pub = personal.replace("{{TITLE}}", pagetitle)
pub_tem = load_utf8("style2_template.html")
publications = load_utf8(mdpath)
publications = markdown.markdown(publications)
pub_content = pub_tem.replace("{{POST_TITLE}}", pagetitle)
pub_content = pub_content.replace("{{POST_CONTENT}}", publications)
pub = pub.replace("{{BODY}}", pub_content)
count = htmlpath.replace("/", "%2F")
pub = pub.replace("{{COUNT}}", count)
savefinalhtml(htmlpath, pub)
person_infos = [
# markdown_path, title, html_path
["md/yangge.md", "<NAME>", "people/geyang.html"],
["md/lwj.md", "Wenjing", "people/wenjingli.html"],
["md/gyh.md", "<NAME>", "people/yuanhaoguo.html"],
["md/yp.md", "<NAME>", "people/pingyang.html"],
["md/lgl.md", "<NAME>", "people/guoleliu.html"],
["md/lyr.md", "<NAME>", "people/yaoruluo.html"],
["md/zlq.md", "<NAME>", "people/liqunzhong.html"],
["md/xyp.md", "<NAME>", "people/yunpengxiao.html"],
["md/wsy.md", "<NAME>", "people/shiyuwu.html"],
["md/zyt.md", "<NAME>", "people/yatingzhou.html"],
["md/zyf.md", "<NAME>", "people/yanfengzhou.html"],
["md/qmx.md", "M<NAME>", "people/mengxuanqiu.html"],
["md/zyd.md", "<NAME>", "people/yudongzhang.html"],
["md/hj.md", "<NAME>", "people/jiahe.html"],
]
# generate personal homepage.
for a_person in person_infos:
generate_a_person(a_person[0], a_person[1], a_person[2])
# generate publications
pub = index.replace("{{TITLE}}", "Publications")
pub_tem = load_utf8("style2_template.html")
publications = load_utf8("md/publications_yangge.md")
publications = markdown.markdown(publications)
pub_content = pub_tem.replace("{{POST_TITLE}}", "Publications")
pub_content = pub_content.replace("{{POST_CONTENT}}", publications)
pub = pub.replace("{{BODY}}", pub_content)
pub = pub.replace("{{COUNT}}", "publications.html")
savefinalhtml("publications.html", pub)
# generate positions
pub = index.replace("{{TITLE}}", "Open Positions")
pub_tem = load_utf8("style2_template.html")
publications = load_utf8("md/positions.md")
publications = markdown.markdown(publications)
pub_content = pub_tem.replace("{{POST_TITLE}}", "Open Positions")
pub_content = pub_content.replace("{{POST_CONTENT}}", publications)
pub = pub.replace("{{BODY}}", pub_content)
pub = pub.replace("{{COUNT}}", "openpositions.html")
savefinalhtml("openpositions.html", pub)
# generate contacts
contacts = index.replace("{{TITLE}}", "Contact Us")
contact_tem = load_utf8("contact_template.html")
contact_html = contacts.replace("{{BODY}}", contact_tem)
contact_html = contact_html.replace("{{COUNT}}", "contact.html")
savefinalhtml("contact.html", contact_html)
project_tem = load_utf8("projects/project_template.html")
def generate_a_project(mdpath, pagetitle, htmlpath):
pub = project_tem.replace("{{TITLE}}", pagetitle)
article_tem = load_utf8("article_template.html")
project_md = load_utf8(mdpath)
project_content = markdown.markdown(project_md, extensions=['codehilite', 'fenced_code', 'extra'])
article_content = article_tem.replace("{{POST_CONTENT}}", project_content)
pub = pub.replace("{{BODY}}", article_content)
count = htmlpath.replace("/", "%2F")
pub = pub.replace("{{COUNT}}", count)
savefinalhtml(htmlpath, pub)
# generate projects
projects_info = [
# markdown_path, title, html_path
["md/er-segmentation.md", "ER Segmentation", "projects/er-segmentation.html"]
]
for a_project in projects_info:
generate_a_project(a_project[0], a_project[1], a_project[2]) | update_html.py | import os
import datetime
import json
import codecs
import markdown
import sys
def save_utf8(filename, text):
with codecs.open(filename, 'w', encoding='utf-8')as f:
f.write(text)
def load_utf8(filename):
with codecs.open(filename, 'r', encoding='utf-8') as f:
return f.read()
def savefinalhtml(filepath, finalhtml):
output_file = codecs.open(filepath, "w", encoding="utf-8")
output_file.write(finalhtml)
output_file.close()
print("success generate ", filepath)
# load templates
index = load_utf8("index_template.html")
banner = load_utf8("banner_template.html")
u8u4 = load_utf8("8u-4u.html")
personal = load_utf8("people/personal_template.html")
# siteMap = load_utf8("templates/sitemap.tm.xml")
# generate index
new_index = index.replace("{{TITLE}}", "CBMI Group")
index_body = ""
index_body = index_body + banner + u8u4
news = [
['images/GNMD.png', 'Blind Denoising of Fluorescence Microscopy Images Using GAN-Based Global Noise Modeling', 'We have developed a blind denoiser that uses one GAN to model image noise globally and another GAN to drastically reduce background noise.', 'https://biomedicalimaging.org/2021/'],
['images/wsbm.jpg', 'Dynamic Organization of Intracellular Organelle Networks', 'We have developed a method to assess quality of synthetic fluorescence microscopy images and to evaluate their training performance in image segmentation.', 'https://onlinelibrary.wiley.com/doi/10.1002/wsbm.1505'],
["https://ars.els-cdn.com/content/image/1-s2.0-S221112471830860X-mmc6.mp4", "Whole-Cell Scale Dynamic Organization of Lysosomes Revealed by Spatial Statistical Analysis", "Our findings reveal whole-cell scale spatial organization of lysosomes and provide insights into how organelle interactions are mediated and regulated across the entire intracellular space.", "https://www.sciencedirect.com/science/article/pii/S221112471830860X",
"https://ars.els-cdn.com/content/image/1-s2.0-S221112471830860X-mmc6.jpg"],
["images/er-segmentation.png", "Deep Learning-Based Segmentation of Biological Networks in Fluorescence Microscopy", "We developed a deep learning-based pipeline to study the effects of image pre-processing, loss functions and model architectures for accurate segmentation of biological networks in FLMI.", "./projects/er-segmentation.html"],
["images/feng3-p5-feng-large.gif", "Quality Assessment of Synthetic Fluorescence Microscopy Images for Image Segmentation", "We have developed a method to assess quality of synthetic fluorescence microscopy images and to evaluate their training performance in image segmentation.", "https://ieeexplore.ieee.org/abstract/document/8802971"],
]
news_content = []
for a_new in news:
if len(a_new) == 4: # news_template
a_news_template = load_utf8("news_template.html")
t_new = a_news_template.replace("{{IMG_URL}}", a_new[0])
t_new = t_new.replace("{{RESEARCH_TITLE}}", a_new[1])
t_new = t_new.replace("{{RESEARCH_BRIEF}}", a_new[2])
t_new = t_new.replace("{{RESEARCH_LINK}}", a_new[3])
news_content.append(t_new)
elif len(a_new) == 5: # video_news
t_video_template = load_utf8("video_news.html")
t_new = t_video_template.replace("{{VIDEO_URL}}", a_new[0])
t_new = t_new.replace("{{RESEARCH_TITLE}}", a_new[1])
t_new = t_new.replace("{{RESEARCH_BRIEF}}", a_new[2])
t_new = t_new.replace("{{RESEARCH_LINK}}", a_new[3])
t_new = t_new.replace("{{VIDEO_IMG}}", a_new[4])
news_content.append(t_new)
else:
pass
a_row = load_utf8("row_template.html")
more_research_row = load_utf8("more_research_row.html")
index_body = index_body + a_row.replace("{{INNER}}", news_content[0] + news_content[1]) + more_research_row
new_index = new_index.replace("{{BODY}}", index_body)
new_index = new_index.replace("{{COUNT}}", "")
savefinalhtml("index.html", new_index)
# generate research
pub = index.replace("{{TITLE}}", "Research")
pub_tem = load_utf8("style2_template.html")
publications = load_utf8("md/research.md")
publications = markdown.markdown(publications)
pub_content = pub_tem.replace("{{POST_TITLE}}", "Research Projects")
research_row = load_utf8("a_project_row.html")
research_content = ""
for a_content in news_content:
research_content = research_content + a_content.replace('"4u"', '"6u"')
pub_content = pub_content.replace("{{POST_CONTENT}}", publications + research_row.replace("{{INNER}}", research_content))
pub = pub.replace("{{BODY}}", pub_content)
pub = pub.replace("{{COUNT}}", "research.html")
savefinalhtml("research.html", pub)
# generate people
pub = index.replace("{{TITLE}}", "Team")
my_people = load_utf8("md/people_template.html")
pub = pub.replace("{{BODY}}", my_people)
pub = pub.replace("{{COUNT}}", "people.html")
savefinalhtml("people.html", pub)
def generate_a_person(mdpath, pagetitle, htmlpath):
pub = personal.replace("{{TITLE}}", pagetitle)
pub_tem = load_utf8("style2_template.html")
publications = load_utf8(mdpath)
publications = markdown.markdown(publications)
pub_content = pub_tem.replace("{{POST_TITLE}}", pagetitle)
pub_content = pub_content.replace("{{POST_CONTENT}}", publications)
pub = pub.replace("{{BODY}}", pub_content)
count = htmlpath.replace("/", "%2F")
pub = pub.replace("{{COUNT}}", count)
savefinalhtml(htmlpath, pub)
person_infos = [
# markdown_path, title, html_path
["md/yangge.md", "<NAME>", "people/geyang.html"],
["md/lwj.md", "Wenjing", "people/wenjingli.html"],
["md/gyh.md", "<NAME>", "people/yuanhaoguo.html"],
["md/yp.md", "<NAME>", "people/pingyang.html"],
["md/lgl.md", "<NAME>", "people/guoleliu.html"],
["md/lyr.md", "<NAME>", "people/yaoruluo.html"],
["md/zlq.md", "<NAME>", "people/liqunzhong.html"],
["md/xyp.md", "<NAME>", "people/yunpengxiao.html"],
["md/wsy.md", "<NAME>", "people/shiyuwu.html"],
["md/zyt.md", "<NAME>", "people/yatingzhou.html"],
["md/zyf.md", "<NAME>", "people/yanfengzhou.html"],
["md/qmx.md", "M<NAME>", "people/mengxuanqiu.html"],
["md/zyd.md", "<NAME>", "people/yudongzhang.html"],
["md/hj.md", "<NAME>", "people/jiahe.html"],
]
# generate personal homepage.
for a_person in person_infos:
generate_a_person(a_person[0], a_person[1], a_person[2])
# generate publications
pub = index.replace("{{TITLE}}", "Publications")
pub_tem = load_utf8("style2_template.html")
publications = load_utf8("md/publications_yangge.md")
publications = markdown.markdown(publications)
pub_content = pub_tem.replace("{{POST_TITLE}}", "Publications")
pub_content = pub_content.replace("{{POST_CONTENT}}", publications)
pub = pub.replace("{{BODY}}", pub_content)
pub = pub.replace("{{COUNT}}", "publications.html")
savefinalhtml("publications.html", pub)
# generate positions
pub = index.replace("{{TITLE}}", "Open Positions")
pub_tem = load_utf8("style2_template.html")
publications = load_utf8("md/positions.md")
publications = markdown.markdown(publications)
pub_content = pub_tem.replace("{{POST_TITLE}}", "Open Positions")
pub_content = pub_content.replace("{{POST_CONTENT}}", publications)
pub = pub.replace("{{BODY}}", pub_content)
pub = pub.replace("{{COUNT}}", "openpositions.html")
savefinalhtml("openpositions.html", pub)
# generate contacts
contacts = index.replace("{{TITLE}}", "Contact Us")
contact_tem = load_utf8("contact_template.html")
contact_html = contacts.replace("{{BODY}}", contact_tem)
contact_html = contact_html.replace("{{COUNT}}", "contact.html")
savefinalhtml("contact.html", contact_html)
project_tem = load_utf8("projects/project_template.html")
def generate_a_project(mdpath, pagetitle, htmlpath):
pub = project_tem.replace("{{TITLE}}", pagetitle)
article_tem = load_utf8("article_template.html")
project_md = load_utf8(mdpath)
project_content = markdown.markdown(project_md, extensions=['codehilite', 'fenced_code', 'extra'])
article_content = article_tem.replace("{{POST_CONTENT}}", project_content)
pub = pub.replace("{{BODY}}", article_content)
count = htmlpath.replace("/", "%2F")
pub = pub.replace("{{COUNT}}", count)
savefinalhtml(htmlpath, pub)
# generate projects
projects_info = [
# markdown_path, title, html_path
["md/er-segmentation.md", "ER Segmentation", "projects/er-segmentation.html"]
]
for a_project in projects_info:
generate_a_project(a_project[0], a_project[1], a_project[2]) | 0.361277 | 0.304623 |
import os
import time
import rospy
if (os.environ['ARCHITECTURE'] == 'raspi'):
import RPi.GPIO as GPIO
elif (os.environ['ARCHITECTURE'] == 'nano'):
import Jetson.GPIO as GPIO
from umnitsa_msgs.msg import Joystick, Ultrasonic
class RGB():
def __init__(self):
GPIO.setmode(GPIO.BOARD)
self.SDI = rospy.get_param('RGB_SDI')
self.RCLK = rospy.get_param('RGB_RCLK')
self.SRCLK = rospy.get_param('RGB_SRCLK')
GPIO.setwarnings(False) #don't show setup warnings
GPIO.setup(self.SDI, GPIO.OUT, initial=GPIO.LOW)
GPIO.setup(self.RCLK, GPIO.OUT, initial=GPIO.LOW)
GPIO.setup(self.SRCLK, GPIO.OUT, initial=GPIO.LOW)
# colors
self.off = ['0','0','0']
self.red = ['1','0','0']
self.green = ['0','1','0']
self.blue = ['0','0','1']
self.yellow = ['1','1','0']
self.purple = ['1','0','1']
self.cyan = ['0','1','1']
self.white = ['1','1','1']
# initialize LED values
self.LED1 = self.off
self.LED2 = self.off
self.LED3 = self.off
self.LED4 = self.off
self.LED5 = self.off
self.LED6 = self.off
self.LED7 = self.off
self.LED8 = self.off
self.clearance = rospy.get_param('clearance')
def hc595_in(self):
bitlist = self.LED1 + self.LED2 + self.LED3 + self.LED4 + self.LED5 + self.LED6 + self.LED7 + self.LED8
input = bitlist[::-1]
for bit in input:
GPIO.output(self.SDI,int(bit))
GPIO.output(self.SRCLK, GPIO.HIGH)
time.sleep(0.001)
GPIO.output(self.SRCLK, GPIO.LOW)
def hc595_out(self):
GPIO.output(self.RCLK, GPIO.HIGH)
time.sleep(0.001)
GPIO.output(self.RCLK, GPIO.LOW)
def updateCommands(self,commands):
# only update output if it's a button or hat press (not axis)
if commands.TYPE == "BUTTON" or commands.TYPE == "HAT":
#rospy.loginfo(commands)
if commands.HOME:
self.LED1 = self.blue
self.LED2 = self.blue
self.LED3 = self.blue
self.LED4 = self.blue
elif commands.X:
self.LED1 = self.green
self.LED2 = self.green
self.LED3 = self.green
self.LED4 = self.green
elif commands.B:
self.LED1 = self.red
self.LED2 = self.red
self.LED3 = self.red
self.LED4 = self.red
elif commands.A:
self.LED1 = self.white
self.LED2 = self.white
self.LED3 = self.white
self.LED4 = self.white
elif commands.Y:
self.LED1 = self.yellow
self.LED2 = self.yellow
self.LED3 = self.yellow
self.LED4 = self.yellow
else:
self.LED1 = self.off
self.LED2 = self.off
self.LED3 = self.off
self.LED4 = self.off
self.hc595_in()
self.hc595_out()
def updateUltrasonic(self,ultrasonic):
if ultrasonic.ULTRA1 < self.clearance:
self.LED5 = self.red
else:
self.LED5 = self.off
if ultrasonic.ULTRA2 < self.clearance:
self.LED6 = self.red
else:
self.LED6 = self.off
if ultrasonic.ULTRA3 < self.clearance:
self.LED7 = self.red
else:
self.LED7 = self.off
if ultrasonic.ULTRA4 < self.clearance:
self.LED8 = self.red
else:
self.LED8 = self.off
self.hc595_in()
self.hc595_out()
def subscribe(self):
rospy.init_node('rgb', anonymous=False)
rospy.Subscriber('commands',Joystick, self.updateCommands)
rospy.Subscriber('ultrasonic',Ultrasonic,self.updateUltrasonic)
# spin() simply keeps python from exiting until this node is stopped
rospy.spin()
if __name__ == '__main__':
try:
subscriber = RGB()
subscriber.subscribe()
except rospy.ROSInterruptException:
GPIO.cleanup() | src/umnitsa_hardware/src/rgb.py | import os
import time
import rospy
if (os.environ['ARCHITECTURE'] == 'raspi'):
import RPi.GPIO as GPIO
elif (os.environ['ARCHITECTURE'] == 'nano'):
import Jetson.GPIO as GPIO
from umnitsa_msgs.msg import Joystick, Ultrasonic
class RGB():
def __init__(self):
GPIO.setmode(GPIO.BOARD)
self.SDI = rospy.get_param('RGB_SDI')
self.RCLK = rospy.get_param('RGB_RCLK')
self.SRCLK = rospy.get_param('RGB_SRCLK')
GPIO.setwarnings(False) #don't show setup warnings
GPIO.setup(self.SDI, GPIO.OUT, initial=GPIO.LOW)
GPIO.setup(self.RCLK, GPIO.OUT, initial=GPIO.LOW)
GPIO.setup(self.SRCLK, GPIO.OUT, initial=GPIO.LOW)
# colors
self.off = ['0','0','0']
self.red = ['1','0','0']
self.green = ['0','1','0']
self.blue = ['0','0','1']
self.yellow = ['1','1','0']
self.purple = ['1','0','1']
self.cyan = ['0','1','1']
self.white = ['1','1','1']
# initialize LED values
self.LED1 = self.off
self.LED2 = self.off
self.LED3 = self.off
self.LED4 = self.off
self.LED5 = self.off
self.LED6 = self.off
self.LED7 = self.off
self.LED8 = self.off
self.clearance = rospy.get_param('clearance')
def hc595_in(self):
bitlist = self.LED1 + self.LED2 + self.LED3 + self.LED4 + self.LED5 + self.LED6 + self.LED7 + self.LED8
input = bitlist[::-1]
for bit in input:
GPIO.output(self.SDI,int(bit))
GPIO.output(self.SRCLK, GPIO.HIGH)
time.sleep(0.001)
GPIO.output(self.SRCLK, GPIO.LOW)
def hc595_out(self):
GPIO.output(self.RCLK, GPIO.HIGH)
time.sleep(0.001)
GPIO.output(self.RCLK, GPIO.LOW)
def updateCommands(self,commands):
# only update output if it's a button or hat press (not axis)
if commands.TYPE == "BUTTON" or commands.TYPE == "HAT":
#rospy.loginfo(commands)
if commands.HOME:
self.LED1 = self.blue
self.LED2 = self.blue
self.LED3 = self.blue
self.LED4 = self.blue
elif commands.X:
self.LED1 = self.green
self.LED2 = self.green
self.LED3 = self.green
self.LED4 = self.green
elif commands.B:
self.LED1 = self.red
self.LED2 = self.red
self.LED3 = self.red
self.LED4 = self.red
elif commands.A:
self.LED1 = self.white
self.LED2 = self.white
self.LED3 = self.white
self.LED4 = self.white
elif commands.Y:
self.LED1 = self.yellow
self.LED2 = self.yellow
self.LED3 = self.yellow
self.LED4 = self.yellow
else:
self.LED1 = self.off
self.LED2 = self.off
self.LED3 = self.off
self.LED4 = self.off
self.hc595_in()
self.hc595_out()
def updateUltrasonic(self,ultrasonic):
if ultrasonic.ULTRA1 < self.clearance:
self.LED5 = self.red
else:
self.LED5 = self.off
if ultrasonic.ULTRA2 < self.clearance:
self.LED6 = self.red
else:
self.LED6 = self.off
if ultrasonic.ULTRA3 < self.clearance:
self.LED7 = self.red
else:
self.LED7 = self.off
if ultrasonic.ULTRA4 < self.clearance:
self.LED8 = self.red
else:
self.LED8 = self.off
self.hc595_in()
self.hc595_out()
def subscribe(self):
rospy.init_node('rgb', anonymous=False)
rospy.Subscriber('commands',Joystick, self.updateCommands)
rospy.Subscriber('ultrasonic',Ultrasonic,self.updateUltrasonic)
# spin() simply keeps python from exiting until this node is stopped
rospy.spin()
if __name__ == '__main__':
try:
subscriber = RGB()
subscriber.subscribe()
except rospy.ROSInterruptException:
GPIO.cleanup() | 0.127232 | 0.09472 |
## examples:
## tune.py D331RXf P7I7bML DX352lK # compare scores for three images
## tune.py --ratio_midpoint .8 D331RXf P7I7bML DX352lK # override ratio_midpoint
import argparse
import redrum
import json
# read in parameter overrides
parser = argparse.ArgumentParser()
parser.add_argument('--ratio_midpoint', type=float)
parser.add_argument('--ratio_k', type=float)
parser.add_argument('--pixel_midpoint', type=float)
parser.add_argument('--pixel_k', type=float)
parser.add_argument('--views_midpoint', type=float)
parser.add_argument('--views_k', type=float)
parser.add_argument('ids', metavar='imgur_id', type=str, nargs='+', help="image ID to score from the cache")
args = parser.parse_args()
if args.ratio_midpoint:
redrum.ratio_midpoint = args.ratio_midpoint
if args.ratio_k:
redrum.ratio_k = args.ratio_k
if args.pixel_midpoint:
redrum.pixel_midpoint = args.pixel_midpoint
if args.pixel_k:
redrum.pixel_k = args.pixel_k
if args.views_midpoint:
redrum.views_midpoint = args.views_midpoint
if args.views_k:
redrum.views_k = args.views_k
if args.ids:
ids = args.ids
# load images in the cache
f = open(redrum.cache_file, 'r')
j = json.loads(f.read())
images = j['images']
max_views = max([image['views'] for image in images])
# print scores in a tabular format
print("{:^60} {:<31}".format("Input Scores", "Logistic Scores"))
print("%-12s | %-12s%-12s%-7s | %-12s%-12s%-7s | %-12s" % ("ID", "ratio", "views", "pixel", "ratio", "views", "pixel", "final_score"))
print("=" * 103)
# calculate and print scores and logistic scores for each image
for id in ids:
image = [image for image in images if image['id'] == id][0]
[final_score,
ratio_score,
views_score,
pixel_score,
ratio_logistic_score,
views_logistic_score,
pixel_logistic_score] = redrum.score_image(image, max_views)
print("%-12s | %-12.5f%-12.5f%-7.5f | %-12.5f%-12.5f%-7.5f | %-12.11f" % (image['id'],
ratio_score,
views_score,
pixel_score,
ratio_logistic_score,
views_logistic_score,
pixel_logistic_score,
final_score))
print("-" * 103) | redrum/tune.py |
## examples:
## tune.py D331RXf P7I7bML DX352lK # compare scores for three images
## tune.py --ratio_midpoint .8 D331RXf P7I7bML DX352lK # override ratio_midpoint
import argparse
import redrum
import json
# read in parameter overrides
parser = argparse.ArgumentParser()
parser.add_argument('--ratio_midpoint', type=float)
parser.add_argument('--ratio_k', type=float)
parser.add_argument('--pixel_midpoint', type=float)
parser.add_argument('--pixel_k', type=float)
parser.add_argument('--views_midpoint', type=float)
parser.add_argument('--views_k', type=float)
parser.add_argument('ids', metavar='imgur_id', type=str, nargs='+', help="image ID to score from the cache")
args = parser.parse_args()
if args.ratio_midpoint:
redrum.ratio_midpoint = args.ratio_midpoint
if args.ratio_k:
redrum.ratio_k = args.ratio_k
if args.pixel_midpoint:
redrum.pixel_midpoint = args.pixel_midpoint
if args.pixel_k:
redrum.pixel_k = args.pixel_k
if args.views_midpoint:
redrum.views_midpoint = args.views_midpoint
if args.views_k:
redrum.views_k = args.views_k
if args.ids:
ids = args.ids
# load images in the cache
f = open(redrum.cache_file, 'r')
j = json.loads(f.read())
images = j['images']
max_views = max([image['views'] for image in images])
# print scores in a tabular format
print("{:^60} {:<31}".format("Input Scores", "Logistic Scores"))
print("%-12s | %-12s%-12s%-7s | %-12s%-12s%-7s | %-12s" % ("ID", "ratio", "views", "pixel", "ratio", "views", "pixel", "final_score"))
print("=" * 103)
# calculate and print scores and logistic scores for each image
for id in ids:
image = [image for image in images if image['id'] == id][0]
[final_score,
ratio_score,
views_score,
pixel_score,
ratio_logistic_score,
views_logistic_score,
pixel_logistic_score] = redrum.score_image(image, max_views)
print("%-12s | %-12.5f%-12.5f%-7.5f | %-12.5f%-12.5f%-7.5f | %-12.11f" % (image['id'],
ratio_score,
views_score,
pixel_score,
ratio_logistic_score,
views_logistic_score,
pixel_logistic_score,
final_score))
print("-" * 103) | 0.449151 | 0.187802 |
import sys
import time
import math
import numpy as np
import matplotlib.pyplot as plt
class NNet:
def __init__(self, in_size, val_size, layers, random_seed=1, verbose=True,
sigm=lambda x:1/(1+np.exp(-x)),
sigm_d=lambda x:np.exp(-x)/np.power((np.exp(-x) + 1), 2)):
self.verbose = verbose
self.layers = len(layers)
if self.verbose:
print("nodes in layer: input {}, output {}".format(in_size, val_size))
print("{} hidden layers: {}".format(self.layers, layers))
self.sigm = sigm
self.sigm_d = sigm_d
np.random.seed(random_seed)
self.weights = []
self.weights.append(2*np.random.random([layers[0], val_size])-1)
for i in range(1, self.layers):
self.weights.append(2*np.random.random([layers[i], layers[i-1]])-1)
self.weights.append(2*np.random.random([in_size, layers[self.layers-1]])-1)
self.stats_err_list = []
self.stats_acc_list = []
self.stats_loopstamp = []
self.total_time = 0
self.total_epochs = 0
def fit(self, x, y, epochs=sys.maxsize, batch=16,
timeout=sys.maxsize, lrate=5, stats_record=1):
print('Fitting: batch size: {}'.format(batch))
stopwatch = time.time()
start_epoch = self.total_epochs
while (time.time() - stopwatch < timeout
and self.total_epochs - start_epoch < epochs):
for i in range(math.ceil(len(x)/batch)):
batch_x = x[batch*i:batch*i+batch]
batch_y = y[batch*i:batch*i+batch]
err = []
gradient = []
c = []
neuron_output, z = self._spin(batch_x)
err.append(neuron_output[0] - batch_y)
for i in range(self.layers):
c.append(err[i] * self.sigm_d(z[i]))
gradient.append((-2*lrate/batch) * neuron_output[i+1].T.dot(c[i]))
err.append(c[i].dot(self.weights[i].T))
c.append(err[self.layers] * self.sigm_d(z[self.layers]))
gradient.append((-2*lrate/batch) * batch_x.T.dot(c[self.layers]))
for i in range(self.layers+1):
self.weights[i] += gradient[i]
if (self.total_epochs - start_epoch) % stats_record == 0:
self.record_stats(x, y)
self.total_epochs += 1
self.total_time += time.time() - stopwatch
print('time: {:.2f} s, {:.2f} epochs/s'.format(
self.total_time,
self.total_epochs/self.total_time))
def predict(self, x):
res, _ = self._spin(x)
return res[0]
def evaluate(self, x, y):
ok = 0
not_ok = 0
neuron_output, _ = self._spin(x)
for j in range(len(neuron_output[0])):
max = -1
for k in range(len(neuron_output[0][0])):
if max < neuron_output[0][j, k]:
max = neuron_output[0][j, k]
ans = k
if y[j][ans] == 1:
ok += 1
else:
not_ok += 1
acc = ok/(ok+not_ok)
err = np.mean(np.square(neuron_output[0] - y))
return acc, err
def record_stats(self, x, y):
acc, err = self.evaluate(x, y)
if self.verbose:
self.print_stats(x, y, acc, err)
self.stats_loopstamp.append(self.total_epochs)
self.stats_acc_list.append(acc)
self.stats_err_list.append(err)
def print_stats(self, x, y, acc=None, err=None):
if acc == None:
acc, err = self.evaluate(x, y)
print("{}th epoch - acc: {:.2%}, err: {:.3}".format(
self.total_epochs, acc, err))
def plot_stats(self):
plt.figure()
plt.subplot(211)
plt.plot(self.stats_loopstamp, self.stats_err_list, label="Cost function")
plt.legend()
plt.subplot(212)
plt.plot(self.stats_loopstamp, self.stats_acc_list, label="Accuracy")
plt.legend()
plt.show()
def _spin(self, x):
neuron_output = [0] * (self.layers+2)
z = [0] * (self.layers+1)
neuron_output[self.layers+1] = x
for i in range(self.layers+1):
z[self.layers-i] = np.matmul(
neuron_output[self.layers-i+1],
self.weights[self.layers-i])
neuron_output[self.layers-i] = self.sigm(z[self.layers-i])
return neuron_output, z | nnet.py | import sys
import time
import math
import numpy as np
import matplotlib.pyplot as plt
class NNet:
def __init__(self, in_size, val_size, layers, random_seed=1, verbose=True,
sigm=lambda x:1/(1+np.exp(-x)),
sigm_d=lambda x:np.exp(-x)/np.power((np.exp(-x) + 1), 2)):
self.verbose = verbose
self.layers = len(layers)
if self.verbose:
print("nodes in layer: input {}, output {}".format(in_size, val_size))
print("{} hidden layers: {}".format(self.layers, layers))
self.sigm = sigm
self.sigm_d = sigm_d
np.random.seed(random_seed)
self.weights = []
self.weights.append(2*np.random.random([layers[0], val_size])-1)
for i in range(1, self.layers):
self.weights.append(2*np.random.random([layers[i], layers[i-1]])-1)
self.weights.append(2*np.random.random([in_size, layers[self.layers-1]])-1)
self.stats_err_list = []
self.stats_acc_list = []
self.stats_loopstamp = []
self.total_time = 0
self.total_epochs = 0
def fit(self, x, y, epochs=sys.maxsize, batch=16,
timeout=sys.maxsize, lrate=5, stats_record=1):
print('Fitting: batch size: {}'.format(batch))
stopwatch = time.time()
start_epoch = self.total_epochs
while (time.time() - stopwatch < timeout
and self.total_epochs - start_epoch < epochs):
for i in range(math.ceil(len(x)/batch)):
batch_x = x[batch*i:batch*i+batch]
batch_y = y[batch*i:batch*i+batch]
err = []
gradient = []
c = []
neuron_output, z = self._spin(batch_x)
err.append(neuron_output[0] - batch_y)
for i in range(self.layers):
c.append(err[i] * self.sigm_d(z[i]))
gradient.append((-2*lrate/batch) * neuron_output[i+1].T.dot(c[i]))
err.append(c[i].dot(self.weights[i].T))
c.append(err[self.layers] * self.sigm_d(z[self.layers]))
gradient.append((-2*lrate/batch) * batch_x.T.dot(c[self.layers]))
for i in range(self.layers+1):
self.weights[i] += gradient[i]
if (self.total_epochs - start_epoch) % stats_record == 0:
self.record_stats(x, y)
self.total_epochs += 1
self.total_time += time.time() - stopwatch
print('time: {:.2f} s, {:.2f} epochs/s'.format(
self.total_time,
self.total_epochs/self.total_time))
def predict(self, x):
res, _ = self._spin(x)
return res[0]
def evaluate(self, x, y):
ok = 0
not_ok = 0
neuron_output, _ = self._spin(x)
for j in range(len(neuron_output[0])):
max = -1
for k in range(len(neuron_output[0][0])):
if max < neuron_output[0][j, k]:
max = neuron_output[0][j, k]
ans = k
if y[j][ans] == 1:
ok += 1
else:
not_ok += 1
acc = ok/(ok+not_ok)
err = np.mean(np.square(neuron_output[0] - y))
return acc, err
def record_stats(self, x, y):
acc, err = self.evaluate(x, y)
if self.verbose:
self.print_stats(x, y, acc, err)
self.stats_loopstamp.append(self.total_epochs)
self.stats_acc_list.append(acc)
self.stats_err_list.append(err)
def print_stats(self, x, y, acc=None, err=None):
if acc == None:
acc, err = self.evaluate(x, y)
print("{}th epoch - acc: {:.2%}, err: {:.3}".format(
self.total_epochs, acc, err))
def plot_stats(self):
plt.figure()
plt.subplot(211)
plt.plot(self.stats_loopstamp, self.stats_err_list, label="Cost function")
plt.legend()
plt.subplot(212)
plt.plot(self.stats_loopstamp, self.stats_acc_list, label="Accuracy")
plt.legend()
plt.show()
def _spin(self, x):
neuron_output = [0] * (self.layers+2)
z = [0] * (self.layers+1)
neuron_output[self.layers+1] = x
for i in range(self.layers+1):
z[self.layers-i] = np.matmul(
neuron_output[self.layers-i+1],
self.weights[self.layers-i])
neuron_output[self.layers-i] = self.sigm(z[self.layers-i])
return neuron_output, z | 0.333069 | 0.393968 |
import sys
import os, os.path
import shutil
if sys.version_info < (3,):
range = xrange
def CheckParameter():
outputPath = None
searchStartDir = None
isIncludeFolder = None
excludePaths = None
count = len(sys.argv)-1
if count >= 8:
for i in range(1, count):
if sys.argv[i] == "-OutputPath":
outputPath = os.path.abspath(sys.argv[i+1])
elif sys.argv[i] == "-SearchStartDir":
searchStartDir = os.path.abspath(sys.argv[i+1])
elif sys.argv[i] == "-IsIncludeFolder":
isIncludeFolder = sys.argv[i+1]
elif sys.argv[i] == "-ExcludePaths":
excludePaths = sys.argv[i+1]
else:
i-=1
i+=1
if isIncludeFolder == "True":
isIncludeFolder = True
elif isIncludeFolder == "False":
isIncludeFolder = False
if excludePaths is not None:
excludePaths = excludePaths.split(',')
if len(excludePaths) == 1 and excludePaths[0].lower() is 'null':
excludePaths = None
else:
for i in list(range(0, len(excludePaths))):
excludePaths[i] = os.path.abspath(excludePaths[i])
result = (outputPath is not None) and (searchStartDir is not None) and (isIncludeFolder is not None)
return result, outputPath, searchStartDir, isIncludeFolder, excludePaths
def Dump():
print ("Paramater Error!!\n")
print ("-OutputPath \'outputpath\' -SearchStartDir \'searchstartDir\' -IsIncludeFolder \'True or False\' -ExcludePaths excludepath\n")
print ('Example 1 :')
print ("-OutputPath ../../Output -SearchStartDir ./Engine -IsIncludeFolder False -ExcludePaths ./Engine/ShaderCodes,./Engine/Scripts \n")
return
CONSOLE_LINE = "***********************************************"
print (CONSOLE_LINE + '\n')
print ("SOC Framework HeaderOrganizer\n")
result, outputPath, searchStartDir, isIncludeFolder, excludePaths = CheckParameter()
if result == False:
Dump()
print (CONSOLE_LINE)
exit()
headerFormat = ['.h', '.hpp', '.inl']
def MakeDirectoryPiramid(path):
folders = path.split('\\')
folders.reverse()
for i in list(range(1, len(folders))):
invIdx = len(folders) - i
folders[invIdx - 1] = folders[invIdx] + '\\' + folders[invIdx - 1]
folders.reverse()
return folders
# Clear Output Header Folder
if os.path.exists(outputPath):
shutil.rmtree(outputPath, ignore_errors=True)
os.makedirs(outputPath)
targetDir = os.path.normpath(searchStartDir)
for (path, dirs, files) in os.walk(targetDir):
for fileNameWithExtension in files:
if path in excludePaths:
continue
fileExtension = fileNameWithExtension[fileNameWithExtension.rfind('.'):]
if not (fileExtension.lower() in headerFormat):
continue
fileFullPath = path + "\\" + fileNameWithExtension
saveFilePath = ""
if isIncludeFolder:
relativePath = path[len(searchStartDir)+1:]
saveFolderPath = outputPath + '\\' + relativePath
saveFilePath = saveFolderPath + '\\' + fileNameWithExtension
# print saveFolderPath
folders = MakeDirectoryPiramid(saveFolderPath)
for folderPath in folders:
if not os.path.exists(folderPath):
os.makedirs(folderPath)
shutil.copy(fileFullPath, saveFilePath)
else:
saveFilePath = outputPath + '\\' + fileNameWithExtension
shutil.copy(fileFullPath, saveFilePath)
print (fileFullPath + " -> " + saveFilePath)
print ("\nDone!\n")
print (CONSOLE_LINE) | Script/HeaderOrganizer.py | import sys
import os, os.path
import shutil
if sys.version_info < (3,):
range = xrange
def CheckParameter():
outputPath = None
searchStartDir = None
isIncludeFolder = None
excludePaths = None
count = len(sys.argv)-1
if count >= 8:
for i in range(1, count):
if sys.argv[i] == "-OutputPath":
outputPath = os.path.abspath(sys.argv[i+1])
elif sys.argv[i] == "-SearchStartDir":
searchStartDir = os.path.abspath(sys.argv[i+1])
elif sys.argv[i] == "-IsIncludeFolder":
isIncludeFolder = sys.argv[i+1]
elif sys.argv[i] == "-ExcludePaths":
excludePaths = sys.argv[i+1]
else:
i-=1
i+=1
if isIncludeFolder == "True":
isIncludeFolder = True
elif isIncludeFolder == "False":
isIncludeFolder = False
if excludePaths is not None:
excludePaths = excludePaths.split(',')
if len(excludePaths) == 1 and excludePaths[0].lower() is 'null':
excludePaths = None
else:
for i in list(range(0, len(excludePaths))):
excludePaths[i] = os.path.abspath(excludePaths[i])
result = (outputPath is not None) and (searchStartDir is not None) and (isIncludeFolder is not None)
return result, outputPath, searchStartDir, isIncludeFolder, excludePaths
def Dump():
print ("Paramater Error!!\n")
print ("-OutputPath \'outputpath\' -SearchStartDir \'searchstartDir\' -IsIncludeFolder \'True or False\' -ExcludePaths excludepath\n")
print ('Example 1 :')
print ("-OutputPath ../../Output -SearchStartDir ./Engine -IsIncludeFolder False -ExcludePaths ./Engine/ShaderCodes,./Engine/Scripts \n")
return
CONSOLE_LINE = "***********************************************"
print (CONSOLE_LINE + '\n')
print ("SOC Framework HeaderOrganizer\n")
result, outputPath, searchStartDir, isIncludeFolder, excludePaths = CheckParameter()
if result == False:
Dump()
print (CONSOLE_LINE)
exit()
headerFormat = ['.h', '.hpp', '.inl']
def MakeDirectoryPiramid(path):
folders = path.split('\\')
folders.reverse()
for i in list(range(1, len(folders))):
invIdx = len(folders) - i
folders[invIdx - 1] = folders[invIdx] + '\\' + folders[invIdx - 1]
folders.reverse()
return folders
# Clear Output Header Folder
if os.path.exists(outputPath):
shutil.rmtree(outputPath, ignore_errors=True)
os.makedirs(outputPath)
targetDir = os.path.normpath(searchStartDir)
for (path, dirs, files) in os.walk(targetDir):
for fileNameWithExtension in files:
if path in excludePaths:
continue
fileExtension = fileNameWithExtension[fileNameWithExtension.rfind('.'):]
if not (fileExtension.lower() in headerFormat):
continue
fileFullPath = path + "\\" + fileNameWithExtension
saveFilePath = ""
if isIncludeFolder:
relativePath = path[len(searchStartDir)+1:]
saveFolderPath = outputPath + '\\' + relativePath
saveFilePath = saveFolderPath + '\\' + fileNameWithExtension
# print saveFolderPath
folders = MakeDirectoryPiramid(saveFolderPath)
for folderPath in folders:
if not os.path.exists(folderPath):
os.makedirs(folderPath)
shutil.copy(fileFullPath, saveFilePath)
else:
saveFilePath = outputPath + '\\' + fileNameWithExtension
shutil.copy(fileFullPath, saveFilePath)
print (fileFullPath + " -> " + saveFilePath)
print ("\nDone!\n")
print (CONSOLE_LINE) | 0.047283 | 0.077169 |
import pandas as pd
import numpy as np
from collections import Counter
import sanalytics.estimators.pu_estimators as pu
import sanalytics.evaluation.utils as seu
import sanalytics.algorithms.utils as sau
import joblib
import random
import itertools
from gensim.models.doc2vec import Doc2Vec
from collections import Counter
from progressbar import progressbar
## String parsing helper
def parse_path(i): return "_".join('.'.join (i.split(".")[:-1]).split("_")[:-1])
## Read data
best_clfs = seu.get_best_classifiers("outputcsvs/validation/*.csv", "analysis/pu_learning/foldinfo.pkl").set_index("clf")
c_label = ["variation", "classifier", "test_set", "recall", "precision", "f1_score", "gmean", "mcc", "fit_time", "step1_time", "eval_time"]
c_unlabel = ["variation", "classifier", "test_set", "recall", "prec_lower", "prec_opt", "f1_lower", "f1_opt", "f_measure", "fit_time", "step1_time", "eval_time"]
len(combs)
len([i for i in list(os.walk("analysis/job_array_rq3/testmodels/rq3_results"))[0][2] if "csv" in i])
## Loop
while True:
## Update combs
s_vars = [parse_path(i) for i in sorted(list(os.walk("datasets/rq3_vecdata_new/"))[0][2]) if "train" in i]
s_clfs = list(pd.read_csv("analysis/job_array_rq3/testmodels/classifiers.csv", header=None)[0])
combs = list(itertools.product(s_vars, s_clfs))
## Get unperformed combination
variation, classifier = random.sample(combs, 1)[0]
if "{}_{}".format(variation, classifier) in ' '.join([i for i in list(os.walk("analysis/job_array_rq3/testmodels/rq3_results"))[0][2] if "csv" in i]):
continue
print("Starting {}_{}".format(variation, classifier))
## Load data
X_train = pd.read_parquet("datasets/rq3_vecdata_new/{}_train.parquet".format(variation))
## Get classifier
clfname, nvp = classifier.split("_")[0:2]
clfinfo = best_clfs.loc[clfname]
clf = pu.get_estimator(clfname, clfinfo.params_2)
if clf==None: clf = pu.NC(clfinfo.params_1)
print("{}\n{}\n{}\n{}".format(variation, classifier, nvp, clf.model))
final_test_results = []
if nvp == "pu":
X_train, step1_time = pu.step1(X_train, clfinfo.params_1)
clf_fitted, fit_time = clf.fit(X_train)
joblib.dump(clf_fitted, r'analysis/job_array_rq3/testmodels/rq3_results/{}_{}.clf.pkl'.format(variation, classifier), compress = 1)
if nvp == "naive":
step1_time = 0.0
clf_fitted, fit_time = clf.fit(X_train)
joblib.dump(clf_fitted, r'analysis/job_array_rq3/testmodels/rq3_results/{}_{}.clf.pkl'.format(variation, classifier), compress = 1)
if "all" in variation:
X_edge = pd.read_parquet("datasets/rq3_vecdata_new/{}_test_edge.parquet".format(variation))
X_easy = pd.read_parquet("datasets/rq3_vecdata_new/{}_test_easy.parquet".format(variation))
results_edge, eval_time_edge = clf_fitted.score(X_edge)
results_easy, eval_time_easy = clf_fitted.score(X_easy)
X_edge.to_parquet("analysis/job_array_rq3/testmodels/rq3_results/{}_{}.edge.preds.parquet".format(variation, classifier), compression=None, index=False)
X_easy.to_parquet("analysis/job_array_rq3/testmodels/rq3_results/{}_{}.easy.preds.parquet".format(variation, classifier), compression=None, index=False)
final_test_results.append([variation, classifier] + ["edge"] + list(results_edge) + [fit_time, step1_time, eval_time_edge])
final_test_results.append([variation, classifier] + ["easy"] + list(results_easy) + [fit_time, step1_time, eval_time_easy])
best_results_test = pd.DataFrame(final_test_results, columns=c_label)
best_results_test.to_csv("analysis/job_array_rq3/testmodels/rq3_results/{}_{}.score.csv".format(variation, classifier), index=False)
if "all" not in variation:
X_test = pd.read_parquet("datasets/rq3_vecdata_new/{}_test.parquet".format(variation))
results_test, eval_time_test = clf_fitted.evaluate(X_test)
X_test.to_parquet("analysis/job_array_rq3/testmodels/rq3_results/{}_{}.test.preds.parquet".format(variation, classifier), compression=None, index=False)
final_test_results.append([variation, classifier] + ["test"] + list(results_test) + [fit_time, step1_time, eval_time_test])
best_results_test = pd.DataFrame(final_test_results, columns=c_unlabel)
best_results_test.to_csv("analysis/job_array_rq3/testmodels/rq3_results/{}_{}.score.csv".format(variation, classifier), index=False)
print("Finished {}_{}".format(variation, classifier)) | Code/analysis/job_array_rq3/testmodels/test_models.py | import pandas as pd
import numpy as np
from collections import Counter
import sanalytics.estimators.pu_estimators as pu
import sanalytics.evaluation.utils as seu
import sanalytics.algorithms.utils as sau
import joblib
import random
import itertools
from gensim.models.doc2vec import Doc2Vec
from collections import Counter
from progressbar import progressbar
## String parsing helper
def parse_path(i): return "_".join('.'.join (i.split(".")[:-1]).split("_")[:-1])
## Read data
best_clfs = seu.get_best_classifiers("outputcsvs/validation/*.csv", "analysis/pu_learning/foldinfo.pkl").set_index("clf")
c_label = ["variation", "classifier", "test_set", "recall", "precision", "f1_score", "gmean", "mcc", "fit_time", "step1_time", "eval_time"]
c_unlabel = ["variation", "classifier", "test_set", "recall", "prec_lower", "prec_opt", "f1_lower", "f1_opt", "f_measure", "fit_time", "step1_time", "eval_time"]
len(combs)
len([i for i in list(os.walk("analysis/job_array_rq3/testmodels/rq3_results"))[0][2] if "csv" in i])
## Loop
while True:
## Update combs
s_vars = [parse_path(i) for i in sorted(list(os.walk("datasets/rq3_vecdata_new/"))[0][2]) if "train" in i]
s_clfs = list(pd.read_csv("analysis/job_array_rq3/testmodels/classifiers.csv", header=None)[0])
combs = list(itertools.product(s_vars, s_clfs))
## Get unperformed combination
variation, classifier = random.sample(combs, 1)[0]
if "{}_{}".format(variation, classifier) in ' '.join([i for i in list(os.walk("analysis/job_array_rq3/testmodels/rq3_results"))[0][2] if "csv" in i]):
continue
print("Starting {}_{}".format(variation, classifier))
## Load data
X_train = pd.read_parquet("datasets/rq3_vecdata_new/{}_train.parquet".format(variation))
## Get classifier
clfname, nvp = classifier.split("_")[0:2]
clfinfo = best_clfs.loc[clfname]
clf = pu.get_estimator(clfname, clfinfo.params_2)
if clf==None: clf = pu.NC(clfinfo.params_1)
print("{}\n{}\n{}\n{}".format(variation, classifier, nvp, clf.model))
final_test_results = []
if nvp == "pu":
X_train, step1_time = pu.step1(X_train, clfinfo.params_1)
clf_fitted, fit_time = clf.fit(X_train)
joblib.dump(clf_fitted, r'analysis/job_array_rq3/testmodels/rq3_results/{}_{}.clf.pkl'.format(variation, classifier), compress = 1)
if nvp == "naive":
step1_time = 0.0
clf_fitted, fit_time = clf.fit(X_train)
joblib.dump(clf_fitted, r'analysis/job_array_rq3/testmodels/rq3_results/{}_{}.clf.pkl'.format(variation, classifier), compress = 1)
if "all" in variation:
X_edge = pd.read_parquet("datasets/rq3_vecdata_new/{}_test_edge.parquet".format(variation))
X_easy = pd.read_parquet("datasets/rq3_vecdata_new/{}_test_easy.parquet".format(variation))
results_edge, eval_time_edge = clf_fitted.score(X_edge)
results_easy, eval_time_easy = clf_fitted.score(X_easy)
X_edge.to_parquet("analysis/job_array_rq3/testmodels/rq3_results/{}_{}.edge.preds.parquet".format(variation, classifier), compression=None, index=False)
X_easy.to_parquet("analysis/job_array_rq3/testmodels/rq3_results/{}_{}.easy.preds.parquet".format(variation, classifier), compression=None, index=False)
final_test_results.append([variation, classifier] + ["edge"] + list(results_edge) + [fit_time, step1_time, eval_time_edge])
final_test_results.append([variation, classifier] + ["easy"] + list(results_easy) + [fit_time, step1_time, eval_time_easy])
best_results_test = pd.DataFrame(final_test_results, columns=c_label)
best_results_test.to_csv("analysis/job_array_rq3/testmodels/rq3_results/{}_{}.score.csv".format(variation, classifier), index=False)
if "all" not in variation:
X_test = pd.read_parquet("datasets/rq3_vecdata_new/{}_test.parquet".format(variation))
results_test, eval_time_test = clf_fitted.evaluate(X_test)
X_test.to_parquet("analysis/job_array_rq3/testmodels/rq3_results/{}_{}.test.preds.parquet".format(variation, classifier), compression=None, index=False)
final_test_results.append([variation, classifier] + ["test"] + list(results_test) + [fit_time, step1_time, eval_time_test])
best_results_test = pd.DataFrame(final_test_results, columns=c_unlabel)
best_results_test.to_csv("analysis/job_array_rq3/testmodels/rq3_results/{}_{}.score.csv".format(variation, classifier), index=False)
print("Finished {}_{}".format(variation, classifier)) | 0.424651 | 0.219421 |
from typing import Generic
from typing import List
from typing import NewType
from typing import Tuple
from typing import Type
from typing import TypeVar
from typedjson.annotation import args_of
from typedjson.annotation import origin_of
from typedjson.annotation import parameters_of
from typedjson.annotation import supertype_of
from dataclasses import dataclass
A = NewType("A", str)
@dataclass(frozen=True)
class NameJson:
first: str
last: str
T1 = TypeVar("T1")
T2 = TypeVar("T2")
@dataclass(frozen=True)
class GenericJson(Generic[T1, T2]):
t1: T1
t2: T2
def test_can_obtain_args_of_generics() -> None:
expectation = (int, str)
assert args_of(GenericJson[int, str]) == expectation
def test_can_obtain_parameters_of_generics() -> None:
expectation = (T1, T2)
assert parameters_of(GenericJson[int, str]) == expectation
def test_can_obtain_origin_of_generics() -> None:
expectation = GenericJson
assert origin_of(GenericJson[int, str]) == expectation
def test_can_obtain_origin_of_tuple() -> None:
assert origin_of(Tuple[int, ...]) is tuple
def test_can_obtain_origin_of_list() -> None:
assert origin_of(List[int]) is list
def test_can_obtain_supertype_of_newtype() -> None:
assert supertype_of(A) == str
def test_cannot_obtain_args_of_raw_generics() -> None:
expectation: Tuple[Type, ...] = tuple()
assert args_of(GenericJson) == expectation
def test_cannot_obtain_parameters_of_raw_generics() -> None:
expectation: Tuple[Type, ...] = tuple()
assert parameters_of(GenericJson) == expectation
def test_cannot_obtain_origin_of_raw_generics() -> None:
assert origin_of(GenericJson) is None
def test_cannot_obtain_args_of_non_generics() -> None:
expectation: Tuple[Type, ...] = tuple()
assert args_of(NameJson) == expectation
def test_cannot_obtain_parameters_of_non_generics() -> None:
expectation: Tuple[Type, ...] = tuple()
assert parameters_of(NameJson) == expectation
def test_cannot_obtain_origin_of_non_generics() -> None:
assert origin_of(NameJson) is None
def test_cannot_obtain_supertype_of_non_newtype() -> None:
assert supertype_of(NameJson) is None
assert supertype_of(str) is None | tests/test_annotation.py |
from typing import Generic
from typing import List
from typing import NewType
from typing import Tuple
from typing import Type
from typing import TypeVar
from typedjson.annotation import args_of
from typedjson.annotation import origin_of
from typedjson.annotation import parameters_of
from typedjson.annotation import supertype_of
from dataclasses import dataclass
A = NewType("A", str)
@dataclass(frozen=True)
class NameJson:
first: str
last: str
T1 = TypeVar("T1")
T2 = TypeVar("T2")
@dataclass(frozen=True)
class GenericJson(Generic[T1, T2]):
t1: T1
t2: T2
def test_can_obtain_args_of_generics() -> None:
expectation = (int, str)
assert args_of(GenericJson[int, str]) == expectation
def test_can_obtain_parameters_of_generics() -> None:
expectation = (T1, T2)
assert parameters_of(GenericJson[int, str]) == expectation
def test_can_obtain_origin_of_generics() -> None:
expectation = GenericJson
assert origin_of(GenericJson[int, str]) == expectation
def test_can_obtain_origin_of_tuple() -> None:
assert origin_of(Tuple[int, ...]) is tuple
def test_can_obtain_origin_of_list() -> None:
assert origin_of(List[int]) is list
def test_can_obtain_supertype_of_newtype() -> None:
assert supertype_of(A) == str
def test_cannot_obtain_args_of_raw_generics() -> None:
expectation: Tuple[Type, ...] = tuple()
assert args_of(GenericJson) == expectation
def test_cannot_obtain_parameters_of_raw_generics() -> None:
expectation: Tuple[Type, ...] = tuple()
assert parameters_of(GenericJson) == expectation
def test_cannot_obtain_origin_of_raw_generics() -> None:
assert origin_of(GenericJson) is None
def test_cannot_obtain_args_of_non_generics() -> None:
expectation: Tuple[Type, ...] = tuple()
assert args_of(NameJson) == expectation
def test_cannot_obtain_parameters_of_non_generics() -> None:
expectation: Tuple[Type, ...] = tuple()
assert parameters_of(NameJson) == expectation
def test_cannot_obtain_origin_of_non_generics() -> None:
assert origin_of(NameJson) is None
def test_cannot_obtain_supertype_of_non_newtype() -> None:
assert supertype_of(NameJson) is None
assert supertype_of(str) is None | 0.853715 | 0.601681 |
from ceo.tools import ascupy
from ceo.pyramid import Pyramid
import numpy as np
import cupy as cp
from scipy.ndimage import center_of_mass
class PyramidWFS(Pyramid):
def __init__(self, N_SIDE_LENSLET, N_PX_LENSLET, modulation=0.0, N_GS=1, throughput=1.0, separation=None):
Pyramid.__init__(self)
self._ccd_frame = ascupy(self.camera.frame)
self._SUBAP_NORM = 'MEAN_FLUX_PER_SUBAP'
self.camera.photoelectron_gain = throughput
def calibrate(self, src, calib_modulation=10.0, calib_modulation_sampling=64, percent_extra_subaps=0.0, thr=0.0):
"""
Perform the following calibration tasks:
1) Acquire a CCD frame using high modulation (default: 10 lambda/D);
2) Estimate center of the four sub-pupil images;
3) Calibrate an initial pupil registration assuming a circular pupil.
4) Refines pupil registration by selecting only sub-apertures with flux above threshold thr.
5) Stores pupil registration in self._indpup
6) Computes and stores the reference slope null vector for a flat WF
Parameters
----------
src : Source
The Source object used for Pyramid sensing
gmt : GMT_MX
The GMT object
calib_modulation: modulation radius applied during calibration (default 10 lambda/D).
percent_extra_subaps: percent of extra subapertures across the pupil for initial pupil registration (default: 0).
thr : Threshold for pupil registration refinement: select only SAs with flux percentage above thr.
"""
#-> Insert a sub-pupil image into a CCD frame
def insert_subpupil(this_frame, this_pup):
fr = np.zeros((nx,ny))
sz = this_frame.shape
fr[yra[this_pup][0]:yra[this_pup][1]+1,xra[this_pup][0]:xra[this_pup][1]+1] = this_frame
return fr
#-> Acquire CCD frame applying high modulation:
self.reset()
cl_modulation = self.modulation # keep track of selected modulation radius
cl_modulation_sampling = self.modulation_sampling
self.modulation = calib_modulation
self.modulation_sampling = calib_modulation_sampling
self.propagate(src)
ccd_frame = self._ccd_frame.get()
self.modulation = cl_modulation
self.modulation_sampling = cl_modulation_sampling
#-> Find center of four sup-pupil images:
nx, ny = ccd_frame.shape
x = np.linspace(0, nx-1, nx)
y = np.linspace(0, ny-1, ny)
xx, yy = np.meshgrid(x, y)
mqt1 = np.logical_and(xx< (nx/2), yy< (ny/2)) # First quadrant (lower left)
mqt2 = np.logical_and(xx>=(nx/2), yy< (ny/2)) # Second quadrant (lower right)
mqt3 = np.logical_and(xx< (nx/2), yy>=(ny/2)) # Third quadrant (upper left)
mqt4 = np.logical_and(xx>=(nx/2), yy>=(ny/2)) # Fourth quadrant (upper right)
label = np.zeros((nx,ny)) # labels needed for ndimage.center_of_mass
label[mqt1] = 1
label[mqt2] = 2
label[mqt3] = 3
label[mqt4] = 4
centers = center_of_mass(ccd_frame, labels=label, index=[1,2,3,4])
#centers = [[117.5,117.5],[117.5,249.5],[249.5,117.5],[249.5,249.5]] # OVERRIDE!!!!!
print("Center of subpupil images (pix):")
print(np.array_str(np.array(centers), precision=1), end='\n')
#-> Circular pupil registration
n_sub = self.N_SIDE_LENSLET + round(self.N_SIDE_LENSLET*percent_extra_subaps/100)
print("Number of SAs across pupil: %d"%n_sub, end="\r", flush=True)
indpup = []
xr = []
yr = []
xra = []
yra = []
for this_pup in range(4):
xxn = xx-centers[this_pup][0]
yyn = yy-centers[this_pup][1]
xr.append( np.arange(np.min(xxn),np.max(xxn)+1) )
yr.append( np.arange(np.min(yyn),np.max(yyn)+1) )
xra.append((np.squeeze(np.where(np.abs(xr[this_pup])<= n_sub/2))[0] ,
np.squeeze(np.where(np.abs(xr[this_pup])<= n_sub/2))[-1]))
yra.append((np.squeeze(np.where(np.abs(yr[this_pup])<= n_sub/2))[0] ,
np.squeeze(np.where(np.abs(yr[this_pup])<= n_sub/2))[-1]))
indpup.append( np.sqrt(xxn**2 + yyn**2) <= n_sub/2)
self._xr = xr
self._yr = yr
#-> Create the intersection of the four sub-pupil circular masks
indpup0 = []
for this_pup in range(4):
indpup0.append(self.get_subpupil(this_pup, indpup[this_pup], sz=n_sub))
indpup0 = np.sum(indpup0, axis=0) == 4 # Select SA present on ALL sub-pupils
#-> Pupil registration refinement based on SA flux thresholding
if thr > 0:
# Compute the flux per SA
flux2D = np.zeros((n_sub,n_sub))
for this_pup in range(4):
flux2D += self.get_subpupil(this_pup, ccd_frame, sz=n_sub)
meanflux = np.mean(flux2D[indpup0])
fluxthr = meanflux*thr
indpup1 = flux2D > fluxthr
n_sspp1 = np.sum(indpup1)
print("-> Number of valid SAs: %d"%n_sspp1, flush=True)
indpup = []
for this_pup in range(4):
indpup.append(insert_subpupil(indpup1,this_pup).astype(bool))
#-> Save pupil registration (GPU memory)
self._indpup = [cp.asarray(subpup) for subpup in indpup]
self.n_sspp = int(cp.sum(self._indpup[0])) # number of valid SAs
#-> Compute reference vector
self.set_reference_measurement(src)
def set_reference_measurement(self, src):
"""
Calibrates the reference measurement vector
"""
self.reset()
self.analyze(src)
self._ref_measurement = self._measurement.copy()
def get_subpupil(self, this_pup, this_frame=None, sz=None):
"""
Extracts the selected sub-pupil from CCD frame.
Parameters:
this_pup: Sup-pupil number = {0,1,2,3}
this_frame: CCD frame (optional). Default: Current CCD frame.
sz: Size of array to be extracted (optional). Default: Size of sub-pupil image (N_SIDE_LENSLET).
"""
if sz is None:
sz = self.N_SIDE_LENSLET
if this_frame is None:
this_frame = self.ccd_frame
extr = this_frame[np.abs(self._yr[this_pup])<= sz/2,:][:,np.abs(self._xr[this_pup]) <= sz/2]
return extr
@property
def indpup(self):
"""
Pupil regitration: List containing the valid sub-aperture maps for each of the four sub-pupil images.
"""
return [cp.asnumpy(subpup) for subpup in self._indpup]
@property
def ccd_frame(self):
return self._ccd_frame.get()
@property
def signal_normalization(self):
return self._SUBAP_NORM
@signal_normalization.setter
def signal_normalization(self, value):
assert value == 'QUADCELL' or value == 'MEAN_FLUX_PER_SUBAP', 'Normalization supported: "QUADCELL", "MEAN_FLUX_PER_SUBAP"'
self._SUBAP_NORM = value
def process(self):
"""
Computes the measurement vector from CCD frame.
"""
# Flux computation for normalization factors
flux_per_SA = cp.zeros(self.n_sspp)
for subpup in self._indpup:
flux_per_SA += self._ccd_frame[subpup]
tot_flux = cp.sum(flux_per_SA)
# If the frame has some photons, compute the signals...
if tot_flux > 0:
# Choose the signal normalization factor:
if self._SUBAP_NORM == 'QUADCELL':
norm_fact = flux_per_SA # flux on each SA
elif self._SUBAP_NORM == 'MEAN_FLUX_PER_SUBAP':
norm_fact = tot_flux / self.n_sspp # mean flux per SA
# Compute the signals
sx = (self._ccd_frame[self._indpup[3]]+self._ccd_frame[self._indpup[2]]-
self._ccd_frame[self._indpup[1]]-self._ccd_frame[self._indpup[0]]) / norm_fact
sy = (self._ccd_frame[self._indpup[1]]+self._ccd_frame[self._indpup[3]]-
self._ccd_frame[self._indpup[0]]-self._ccd_frame[self._indpup[2]]) / norm_fact
else:
# If the frame has no photons, provide a zero slope vector!
sx = cp.zeros(self.n_sspp)
sy = cp.zeros(self.n_sspp)
self._measurement = [sx,sy]
@property
def Data(self):
return self.get_measurement()
def get_measurement(self, out_format='vector'):
"""
Returns the measurement vector minus reference vector.
Parameters:
out_format: if "vector" return a 1D vector (default). If "list" return [sx,sy].
"""
assert out_format == 'vector' or out_format == 'list', 'output format supported: "vector", "list [sx,sy]"'
meas = [m - n for (m,n) in zip(self._measurement, self._ref_measurement)]
if out_format == 'vector':
return cp.asnumpy(cp.concatenate(meas))
else:
return cp.asnumpy(meas)
def get_ref_measurement(self, out_format='vector'):
"""
Returns the reference measurement vector.
Parameters:
out_format: if "vector" return a 1D vector (default). If "list" return [sx,sy].
"""
assert out_format == 'vector' or out_format == 'list', 'output format supported: "vector", "list [sx,sy]"'
if out_format == 'vector':
return cp.asnumpy(cp.concatenate(self._ref_measurement))
else:
return cp.asnumpy(self._ref_measurement)
def get_sx(self):
"""
Returns Sx in vector format.
"""
return self.get_measurement(out_format='list')[0]
def get_sy(self):
"""
Returns Sy in vector format.
"""
return self.get_measurement(out_format='list')[1]
def get_sx2d(self, this_sx=None):
"""
Returns Sx in 2D format.
"""
if this_sx is None:
this_sx = self.get_sx()
#sx2d = np.full((self.camera.N_PX_FRAME,self.camera.N_PX_FRAME), np.nan)
sx2d = np.zeros((self.camera.N_PX_FRAME,self.camera.N_PX_FRAME))
sx2d[self.indpup[0]] = this_sx
sx2d = self.get_subpupil(0,sx2d)
return sx2d
def get_sy2d(self, this_sy=None):
"""
Returns Sy in 2D format.
"""
if this_sy is None:
this_sy = self.get_sy()
#sy2d = np.full((self.camera.N_PX_FRAME,self.camera.N_PX_FRAME), np.nan)
sy2d = np.zeros((self.camera.N_PX_FRAME,self.camera.N_PX_FRAME))
sy2d[self.indpup[0]] = this_sy
sy2d = self.get_subpupil(0, sy2d)
return sy2d
def get_measurement_size(self):
"""
Returns the size of the measurement vector.
"""
return self.n_sspp * 2
def measurement_rms(self):
"""
Returns the slope RMS (Sx and Sy).
"""
return (np.std(self.get_sx()), np.std(self.get_sy()))
def reset(self):
"""
Resets the detector frame.
"""
self.camera.reset()
def analyze(self, src):
"""
Propagates the guide star to the Pyramid detector (noiseless) and processes the frame
Parameters
----------
src : Source
The pyramid's guide star object
"""
self.propagate(src)
self.process() | python/ceo/sensors/PyramidWFS.py | from ceo.tools import ascupy
from ceo.pyramid import Pyramid
import numpy as np
import cupy as cp
from scipy.ndimage import center_of_mass
class PyramidWFS(Pyramid):
def __init__(self, N_SIDE_LENSLET, N_PX_LENSLET, modulation=0.0, N_GS=1, throughput=1.0, separation=None):
Pyramid.__init__(self)
self._ccd_frame = ascupy(self.camera.frame)
self._SUBAP_NORM = 'MEAN_FLUX_PER_SUBAP'
self.camera.photoelectron_gain = throughput
def calibrate(self, src, calib_modulation=10.0, calib_modulation_sampling=64, percent_extra_subaps=0.0, thr=0.0):
"""
Perform the following calibration tasks:
1) Acquire a CCD frame using high modulation (default: 10 lambda/D);
2) Estimate center of the four sub-pupil images;
3) Calibrate an initial pupil registration assuming a circular pupil.
4) Refines pupil registration by selecting only sub-apertures with flux above threshold thr.
5) Stores pupil registration in self._indpup
6) Computes and stores the reference slope null vector for a flat WF
Parameters
----------
src : Source
The Source object used for Pyramid sensing
gmt : GMT_MX
The GMT object
calib_modulation: modulation radius applied during calibration (default 10 lambda/D).
percent_extra_subaps: percent of extra subapertures across the pupil for initial pupil registration (default: 0).
thr : Threshold for pupil registration refinement: select only SAs with flux percentage above thr.
"""
#-> Insert a sub-pupil image into a CCD frame
def insert_subpupil(this_frame, this_pup):
fr = np.zeros((nx,ny))
sz = this_frame.shape
fr[yra[this_pup][0]:yra[this_pup][1]+1,xra[this_pup][0]:xra[this_pup][1]+1] = this_frame
return fr
#-> Acquire CCD frame applying high modulation:
self.reset()
cl_modulation = self.modulation # keep track of selected modulation radius
cl_modulation_sampling = self.modulation_sampling
self.modulation = calib_modulation
self.modulation_sampling = calib_modulation_sampling
self.propagate(src)
ccd_frame = self._ccd_frame.get()
self.modulation = cl_modulation
self.modulation_sampling = cl_modulation_sampling
#-> Find center of four sup-pupil images:
nx, ny = ccd_frame.shape
x = np.linspace(0, nx-1, nx)
y = np.linspace(0, ny-1, ny)
xx, yy = np.meshgrid(x, y)
mqt1 = np.logical_and(xx< (nx/2), yy< (ny/2)) # First quadrant (lower left)
mqt2 = np.logical_and(xx>=(nx/2), yy< (ny/2)) # Second quadrant (lower right)
mqt3 = np.logical_and(xx< (nx/2), yy>=(ny/2)) # Third quadrant (upper left)
mqt4 = np.logical_and(xx>=(nx/2), yy>=(ny/2)) # Fourth quadrant (upper right)
label = np.zeros((nx,ny)) # labels needed for ndimage.center_of_mass
label[mqt1] = 1
label[mqt2] = 2
label[mqt3] = 3
label[mqt4] = 4
centers = center_of_mass(ccd_frame, labels=label, index=[1,2,3,4])
#centers = [[117.5,117.5],[117.5,249.5],[249.5,117.5],[249.5,249.5]] # OVERRIDE!!!!!
print("Center of subpupil images (pix):")
print(np.array_str(np.array(centers), precision=1), end='\n')
#-> Circular pupil registration
n_sub = self.N_SIDE_LENSLET + round(self.N_SIDE_LENSLET*percent_extra_subaps/100)
print("Number of SAs across pupil: %d"%n_sub, end="\r", flush=True)
indpup = []
xr = []
yr = []
xra = []
yra = []
for this_pup in range(4):
xxn = xx-centers[this_pup][0]
yyn = yy-centers[this_pup][1]
xr.append( np.arange(np.min(xxn),np.max(xxn)+1) )
yr.append( np.arange(np.min(yyn),np.max(yyn)+1) )
xra.append((np.squeeze(np.where(np.abs(xr[this_pup])<= n_sub/2))[0] ,
np.squeeze(np.where(np.abs(xr[this_pup])<= n_sub/2))[-1]))
yra.append((np.squeeze(np.where(np.abs(yr[this_pup])<= n_sub/2))[0] ,
np.squeeze(np.where(np.abs(yr[this_pup])<= n_sub/2))[-1]))
indpup.append( np.sqrt(xxn**2 + yyn**2) <= n_sub/2)
self._xr = xr
self._yr = yr
#-> Create the intersection of the four sub-pupil circular masks
indpup0 = []
for this_pup in range(4):
indpup0.append(self.get_subpupil(this_pup, indpup[this_pup], sz=n_sub))
indpup0 = np.sum(indpup0, axis=0) == 4 # Select SA present on ALL sub-pupils
#-> Pupil registration refinement based on SA flux thresholding
if thr > 0:
# Compute the flux per SA
flux2D = np.zeros((n_sub,n_sub))
for this_pup in range(4):
flux2D += self.get_subpupil(this_pup, ccd_frame, sz=n_sub)
meanflux = np.mean(flux2D[indpup0])
fluxthr = meanflux*thr
indpup1 = flux2D > fluxthr
n_sspp1 = np.sum(indpup1)
print("-> Number of valid SAs: %d"%n_sspp1, flush=True)
indpup = []
for this_pup in range(4):
indpup.append(insert_subpupil(indpup1,this_pup).astype(bool))
#-> Save pupil registration (GPU memory)
self._indpup = [cp.asarray(subpup) for subpup in indpup]
self.n_sspp = int(cp.sum(self._indpup[0])) # number of valid SAs
#-> Compute reference vector
self.set_reference_measurement(src)
def set_reference_measurement(self, src):
"""
Calibrates the reference measurement vector
"""
self.reset()
self.analyze(src)
self._ref_measurement = self._measurement.copy()
def get_subpupil(self, this_pup, this_frame=None, sz=None):
"""
Extracts the selected sub-pupil from CCD frame.
Parameters:
this_pup: Sup-pupil number = {0,1,2,3}
this_frame: CCD frame (optional). Default: Current CCD frame.
sz: Size of array to be extracted (optional). Default: Size of sub-pupil image (N_SIDE_LENSLET).
"""
if sz is None:
sz = self.N_SIDE_LENSLET
if this_frame is None:
this_frame = self.ccd_frame
extr = this_frame[np.abs(self._yr[this_pup])<= sz/2,:][:,np.abs(self._xr[this_pup]) <= sz/2]
return extr
@property
def indpup(self):
"""
Pupil regitration: List containing the valid sub-aperture maps for each of the four sub-pupil images.
"""
return [cp.asnumpy(subpup) for subpup in self._indpup]
@property
def ccd_frame(self):
return self._ccd_frame.get()
@property
def signal_normalization(self):
return self._SUBAP_NORM
@signal_normalization.setter
def signal_normalization(self, value):
assert value == 'QUADCELL' or value == 'MEAN_FLUX_PER_SUBAP', 'Normalization supported: "QUADCELL", "MEAN_FLUX_PER_SUBAP"'
self._SUBAP_NORM = value
def process(self):
"""
Computes the measurement vector from CCD frame.
"""
# Flux computation for normalization factors
flux_per_SA = cp.zeros(self.n_sspp)
for subpup in self._indpup:
flux_per_SA += self._ccd_frame[subpup]
tot_flux = cp.sum(flux_per_SA)
# If the frame has some photons, compute the signals...
if tot_flux > 0:
# Choose the signal normalization factor:
if self._SUBAP_NORM == 'QUADCELL':
norm_fact = flux_per_SA # flux on each SA
elif self._SUBAP_NORM == 'MEAN_FLUX_PER_SUBAP':
norm_fact = tot_flux / self.n_sspp # mean flux per SA
# Compute the signals
sx = (self._ccd_frame[self._indpup[3]]+self._ccd_frame[self._indpup[2]]-
self._ccd_frame[self._indpup[1]]-self._ccd_frame[self._indpup[0]]) / norm_fact
sy = (self._ccd_frame[self._indpup[1]]+self._ccd_frame[self._indpup[3]]-
self._ccd_frame[self._indpup[0]]-self._ccd_frame[self._indpup[2]]) / norm_fact
else:
# If the frame has no photons, provide a zero slope vector!
sx = cp.zeros(self.n_sspp)
sy = cp.zeros(self.n_sspp)
self._measurement = [sx,sy]
@property
def Data(self):
return self.get_measurement()
def get_measurement(self, out_format='vector'):
"""
Returns the measurement vector minus reference vector.
Parameters:
out_format: if "vector" return a 1D vector (default). If "list" return [sx,sy].
"""
assert out_format == 'vector' or out_format == 'list', 'output format supported: "vector", "list [sx,sy]"'
meas = [m - n for (m,n) in zip(self._measurement, self._ref_measurement)]
if out_format == 'vector':
return cp.asnumpy(cp.concatenate(meas))
else:
return cp.asnumpy(meas)
def get_ref_measurement(self, out_format='vector'):
"""
Returns the reference measurement vector.
Parameters:
out_format: if "vector" return a 1D vector (default). If "list" return [sx,sy].
"""
assert out_format == 'vector' or out_format == 'list', 'output format supported: "vector", "list [sx,sy]"'
if out_format == 'vector':
return cp.asnumpy(cp.concatenate(self._ref_measurement))
else:
return cp.asnumpy(self._ref_measurement)
def get_sx(self):
"""
Returns Sx in vector format.
"""
return self.get_measurement(out_format='list')[0]
def get_sy(self):
"""
Returns Sy in vector format.
"""
return self.get_measurement(out_format='list')[1]
def get_sx2d(self, this_sx=None):
"""
Returns Sx in 2D format.
"""
if this_sx is None:
this_sx = self.get_sx()
#sx2d = np.full((self.camera.N_PX_FRAME,self.camera.N_PX_FRAME), np.nan)
sx2d = np.zeros((self.camera.N_PX_FRAME,self.camera.N_PX_FRAME))
sx2d[self.indpup[0]] = this_sx
sx2d = self.get_subpupil(0,sx2d)
return sx2d
def get_sy2d(self, this_sy=None):
"""
Returns Sy in 2D format.
"""
if this_sy is None:
this_sy = self.get_sy()
#sy2d = np.full((self.camera.N_PX_FRAME,self.camera.N_PX_FRAME), np.nan)
sy2d = np.zeros((self.camera.N_PX_FRAME,self.camera.N_PX_FRAME))
sy2d[self.indpup[0]] = this_sy
sy2d = self.get_subpupil(0, sy2d)
return sy2d
def get_measurement_size(self):
"""
Returns the size of the measurement vector.
"""
return self.n_sspp * 2
def measurement_rms(self):
"""
Returns the slope RMS (Sx and Sy).
"""
return (np.std(self.get_sx()), np.std(self.get_sy()))
def reset(self):
"""
Resets the detector frame.
"""
self.camera.reset()
def analyze(self, src):
"""
Propagates the guide star to the Pyramid detector (noiseless) and processes the frame
Parameters
----------
src : Source
The pyramid's guide star object
"""
self.propagate(src)
self.process() | 0.74382 | 0.368491 |
from imutils.face_utils import FaceAligner
from imutils.face_utils import rect_to_bb
import dlib
import imutils
import numpy as np
import cv2
import face_recognition
def FaceAlign(image, shape_predictor="assets/shape_predictor_68_face_landmarks.dat"):
'''
return a list of aligned faces
'''
faceDetector = dlib.get_frontal_face_detector()
predictor = dlib.shape_predictor(shape_predictor)
fa = FaceAligner(predictor, desiredFaceWidth=256)
# load the input image, rcv2_imshowesize it, and convert it to grayscale
image = cv2.imread(image)
image = imutils.resize(image, width=800)
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
# detect faces in the grayscale image
rects = faceDetector(gray, 2)
# maintain a list of aligned images
images = []
# loop over the face detections
for rect in rects:
# extract the ROI of the *original* face, then align the face
# using facial landmarks
(x, y, w, h) = rect_to_bb(rect)
# faceOrig = imutils.resize(image[y:y + h, x:x + w], width=256)
faceAligned = fa.align(image, gray, rect)
cv2_imshow(faceAligned)
# save output images
images.append(faceAligned)
return images
def distanceVector(knownEncodings, image, align=False):
'''
knownEncodings: Matrix of precalculated encodings. shape: (#, 128)
image: path to image.
align: Whether to align face first? if 'True', it'll be slower but accuracy
is greater.(keep it True always unless the dataset is too big, Accuracy is
already very bad for one shot detection)
Returns a distance vector corresponding to the order as in knownEncodings
'''
A = np.concatenate( knownEncodings, axis=0 )
x,y = np.shape(A)
im = FaceAlign(image)[0] if align else cv2.imread(image)
cv2_imshow(im)
v = face_recognition.face_encodings(im)[0]
B = np.concatenate([[v]*x], axis=0 )
distMat = np.sum(np.multiply(A-B,A-B), axis=1)
return distMat
def getNames(knownEncodings, knownNames, image, align=False, top=5):
'''
knownNames : List of names(roll no) with same order as that of knownEncodings.
image : path to the image considered
align : Whether to align face first? if 'True', it'll be slower but accuracy
is greater.(keep it True always unless the dataset is too big, Accuracy is
already very bad for one shot detection)
top : number of matches to return
Returns a list of predicted roll nos.
'''
dist = calcDistance(knownEncodings,image,align)
names = knownNames
predictedNames = []
for i in range(top):
index = np.argmin(dist)
predictedNames.append(names[index])
dist[index] = 10000000
return predictedNames
def recognise(image, knownEncodings, knownNames, align=False, top=5):
'''
image : path to image
returns predcted roll no with their image.
'''
try:
return getNames(knownEncodings, knownNames,image,align,top)
except:
print("[Error] Cannot find a face or an image") | image-search/helpers.py | from imutils.face_utils import FaceAligner
from imutils.face_utils import rect_to_bb
import dlib
import imutils
import numpy as np
import cv2
import face_recognition
def FaceAlign(image, shape_predictor="assets/shape_predictor_68_face_landmarks.dat"):
'''
return a list of aligned faces
'''
faceDetector = dlib.get_frontal_face_detector()
predictor = dlib.shape_predictor(shape_predictor)
fa = FaceAligner(predictor, desiredFaceWidth=256)
# load the input image, rcv2_imshowesize it, and convert it to grayscale
image = cv2.imread(image)
image = imutils.resize(image, width=800)
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
# detect faces in the grayscale image
rects = faceDetector(gray, 2)
# maintain a list of aligned images
images = []
# loop over the face detections
for rect in rects:
# extract the ROI of the *original* face, then align the face
# using facial landmarks
(x, y, w, h) = rect_to_bb(rect)
# faceOrig = imutils.resize(image[y:y + h, x:x + w], width=256)
faceAligned = fa.align(image, gray, rect)
cv2_imshow(faceAligned)
# save output images
images.append(faceAligned)
return images
def distanceVector(knownEncodings, image, align=False):
'''
knownEncodings: Matrix of precalculated encodings. shape: (#, 128)
image: path to image.
align: Whether to align face first? if 'True', it'll be slower but accuracy
is greater.(keep it True always unless the dataset is too big, Accuracy is
already very bad for one shot detection)
Returns a distance vector corresponding to the order as in knownEncodings
'''
A = np.concatenate( knownEncodings, axis=0 )
x,y = np.shape(A)
im = FaceAlign(image)[0] if align else cv2.imread(image)
cv2_imshow(im)
v = face_recognition.face_encodings(im)[0]
B = np.concatenate([[v]*x], axis=0 )
distMat = np.sum(np.multiply(A-B,A-B), axis=1)
return distMat
def getNames(knownEncodings, knownNames, image, align=False, top=5):
'''
knownNames : List of names(roll no) with same order as that of knownEncodings.
image : path to the image considered
align : Whether to align face first? if 'True', it'll be slower but accuracy
is greater.(keep it True always unless the dataset is too big, Accuracy is
already very bad for one shot detection)
top : number of matches to return
Returns a list of predicted roll nos.
'''
dist = calcDistance(knownEncodings,image,align)
names = knownNames
predictedNames = []
for i in range(top):
index = np.argmin(dist)
predictedNames.append(names[index])
dist[index] = 10000000
return predictedNames
def recognise(image, knownEncodings, knownNames, align=False, top=5):
'''
image : path to image
returns predcted roll no with their image.
'''
try:
return getNames(knownEncodings, knownNames,image,align,top)
except:
print("[Error] Cannot find a face or an image") | 0.675872 | 0.638018 |
# assumes you downbloaded the CORD-19 data: https://pages.semanticscholar.org/coronavirus-research
# On a modern laptop this scrip takes about less tha a minute to run on each CORD-19 subset.
import os
import sys
import pandas as pd
import numpy as np
import json
from tqdm import tqdm
# Individual paths to various CORD-19 subsets
COMM_USE_SUBSET = 'comm_use_subset/comm_use_subset/'
BIORXIV_MEDRXIV = 'biorxiv_medrxiv/biorxiv_medrxiv/'
NONCOMM_USE_SUBSET = 'noncomm_use_subset/noncomm_use_subset/'
# Add your path to the CORD-19 data here.
ROOT = '...ADD-HERE.../CORD-19-research-challenge/'
SUBSET_CORD_DATA = 'Add one of the individual paths from the above subsets here...'
OUTPUT_DIR = 'custom_txt_data/'
METADATA = 'metadata.csv'
COLUMNS = ['sha','title','doi','license','abstract','publish_time','authors','url'] #data to keep
# df of all the SHAs in the metadata.csv
df = pd.read_csv(os.path.join(ROOT, METADATA), usecols = COLUMNS)
print('Total articles found in Metadata are: ', len(df)) #length around 45774 articles
# Get file names for SHAs matching from commercial available dir
dir_to_walk = os.listdir(os.path.join(ROOT,SUBSET_CORD_DATA)) #switch out CORD-19 data subset here
sha_list = []
for item in dir_to_walk:
sha_list.append(item.split('.')[0]) #strip out '.json'
# Now to extract out the relevant SHA data from metadata
custom_df = df[df['sha'].isin(sha_list)]
# print(len(custom_df)) #might be a count less than the number found in metadata, some SHA cells are empty
# E.g. 850 json docs from COMM_USE_SUBSET are not found in the metadata's SHA column
# thus we will save the missing filenames to a list to look at later
json_docs_not_in_csv = list(set(sha_list) - set(custom_df['sha'].to_list()))
missing_json = 'missing_json_from_metadata.txt'
with open(os.path.join(ROOT,missing_json), 'w') as out_file:
for row in json_docs_not_in_csv:
out_file.write(row + '\n')
print("Any missing JSON filenames have been marked and saved to a new file!")
# Let's create .txt files from the known JSON and save them in a dir to upload
# this combines metadata with json textbody data into a newly formatted .txt file
for row in tqdm(custom_df.iterrows()):
article_text = []
with open(os.path.join(ROOT, custom_df, row[1].sha + '.json')) as in_file:
json_data = json.load(in_file)
for idx in range(len(json_data["body_text"])):
article_text.append("{}".format(json_data["body_text"][idx]["text"]))
formatted_article_text = '\n\n'.join(article_text)
file_to_write = row[1].sha + '.txt'
text_to_write = f"{row[1].title}\n\n" \
f"{row[1].url}\n\n" \
f"SHA: {row[1].sha}\n\n" \
f"Authors: {row[1].authors}\n" \
f"Date: {row[1].publish_time}\n" \
f"DOI: {row[1].doi}\n" \
f"License: {row[1].license}\n\n" \
f"Abstract: {row[1].abstract}\n\n" \
f"Text: {formatted_article_text}"
with open(os.path.join(ROOT, OUTPUT_DIR, file_to_write), 'w') as out_file:
out_file.write(text_to_write.strip())
print("Processed all known files for the CORD-19 subset choosen and saved .txt files in the custom_txt_data dir!") | datasources/manual/cord_nineteen_transformer.py |
# assumes you downbloaded the CORD-19 data: https://pages.semanticscholar.org/coronavirus-research
# On a modern laptop this scrip takes about less tha a minute to run on each CORD-19 subset.
import os
import sys
import pandas as pd
import numpy as np
import json
from tqdm import tqdm
# Individual paths to various CORD-19 subsets
COMM_USE_SUBSET = 'comm_use_subset/comm_use_subset/'
BIORXIV_MEDRXIV = 'biorxiv_medrxiv/biorxiv_medrxiv/'
NONCOMM_USE_SUBSET = 'noncomm_use_subset/noncomm_use_subset/'
# Add your path to the CORD-19 data here.
ROOT = '...ADD-HERE.../CORD-19-research-challenge/'
SUBSET_CORD_DATA = 'Add one of the individual paths from the above subsets here...'
OUTPUT_DIR = 'custom_txt_data/'
METADATA = 'metadata.csv'
COLUMNS = ['sha','title','doi','license','abstract','publish_time','authors','url'] #data to keep
# df of all the SHAs in the metadata.csv
df = pd.read_csv(os.path.join(ROOT, METADATA), usecols = COLUMNS)
print('Total articles found in Metadata are: ', len(df)) #length around 45774 articles
# Get file names for SHAs matching from commercial available dir
dir_to_walk = os.listdir(os.path.join(ROOT,SUBSET_CORD_DATA)) #switch out CORD-19 data subset here
sha_list = []
for item in dir_to_walk:
sha_list.append(item.split('.')[0]) #strip out '.json'
# Now to extract out the relevant SHA data from metadata
custom_df = df[df['sha'].isin(sha_list)]
# print(len(custom_df)) #might be a count less than the number found in metadata, some SHA cells are empty
# E.g. 850 json docs from COMM_USE_SUBSET are not found in the metadata's SHA column
# thus we will save the missing filenames to a list to look at later
json_docs_not_in_csv = list(set(sha_list) - set(custom_df['sha'].to_list()))
missing_json = 'missing_json_from_metadata.txt'
with open(os.path.join(ROOT,missing_json), 'w') as out_file:
for row in json_docs_not_in_csv:
out_file.write(row + '\n')
print("Any missing JSON filenames have been marked and saved to a new file!")
# Let's create .txt files from the known JSON and save them in a dir to upload
# this combines metadata with json textbody data into a newly formatted .txt file
for row in tqdm(custom_df.iterrows()):
article_text = []
with open(os.path.join(ROOT, custom_df, row[1].sha + '.json')) as in_file:
json_data = json.load(in_file)
for idx in range(len(json_data["body_text"])):
article_text.append("{}".format(json_data["body_text"][idx]["text"]))
formatted_article_text = '\n\n'.join(article_text)
file_to_write = row[1].sha + '.txt'
text_to_write = f"{row[1].title}\n\n" \
f"{row[1].url}\n\n" \
f"SHA: {row[1].sha}\n\n" \
f"Authors: {row[1].authors}\n" \
f"Date: {row[1].publish_time}\n" \
f"DOI: {row[1].doi}\n" \
f"License: {row[1].license}\n\n" \
f"Abstract: {row[1].abstract}\n\n" \
f"Text: {formatted_article_text}"
with open(os.path.join(ROOT, OUTPUT_DIR, file_to_write), 'w') as out_file:
out_file.write(text_to_write.strip())
print("Processed all known files for the CORD-19 subset choosen and saved .txt files in the custom_txt_data dir!") | 0.30549 | 0.345298 |
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor.FileDescriptor(
name='sql_write.proto',
package='sql_write',
syntax='proto3',
serialized_options=None,
create_key=_descriptor._internal_create_key,
serialized_pb=b'\n\x0fsql_write.proto\x12\tsql_write\"\x12\n\x03\x41\x63k\x12\x0b\n\x03msg\x18\x01 \x01(\x08\"\x16\n\x05Users\x12\r\n\x05names\x18\x01 \x03(\t2<\n\x08SQLWrite\x12\x30\n\nWriteUsers\x12\x10.sql_write.Users\x1a\x0e.sql_write.Ack\"\x00\x62\x06proto3'
)
_ACK = _descriptor.Descriptor(
name='Ack',
full_name='sql_write.Ack',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='msg', full_name='sql_write.Ack.msg', index=0,
number=1, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=30,
serialized_end=48,
)
_USERS = _descriptor.Descriptor(
name='Users',
full_name='sql_write.Users',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='names', full_name='sql_write.Users.names', index=0,
number=1, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=50,
serialized_end=72,
)
DESCRIPTOR.message_types_by_name['Ack'] = _ACK
DESCRIPTOR.message_types_by_name['Users'] = _USERS
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
Ack = _reflection.GeneratedProtocolMessageType('Ack', (_message.Message,), {
'DESCRIPTOR' : _ACK,
'__module__' : 'sql_write_pb2'
# @@protoc_insertion_point(class_scope:sql_write.Ack)
})
_sym_db.RegisterMessage(Ack)
Users = _reflection.GeneratedProtocolMessageType('Users', (_message.Message,), {
'DESCRIPTOR' : _USERS,
'__module__' : 'sql_write_pb2'
# @@protoc_insertion_point(class_scope:sql_write.Users)
})
_sym_db.RegisterMessage(Users)
_SQLWRITE = _descriptor.ServiceDescriptor(
name='SQLWrite',
full_name='sql_write.SQLWrite',
file=DESCRIPTOR,
index=0,
serialized_options=None,
create_key=_descriptor._internal_create_key,
serialized_start=74,
serialized_end=134,
methods=[
_descriptor.MethodDescriptor(
name='WriteUsers',
full_name='sql_write.SQLWrite.WriteUsers',
index=0,
containing_service=None,
input_type=_USERS,
output_type=_ACK,
serialized_options=None,
create_key=_descriptor._internal_create_key,
),
])
_sym_db.RegisterServiceDescriptor(_SQLWRITE)
DESCRIPTOR.services_by_name['SQLWrite'] = _SQLWRITE
# @@protoc_insertion_point(module_scope) | sql_write_pb2.py | """Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor.FileDescriptor(
name='sql_write.proto',
package='sql_write',
syntax='proto3',
serialized_options=None,
create_key=_descriptor._internal_create_key,
serialized_pb=b'\n\x0fsql_write.proto\x12\tsql_write\"\x12\n\x03\x41\x63k\x12\x0b\n\x03msg\x18\x01 \x01(\x08\"\x16\n\x05Users\x12\r\n\x05names\x18\x01 \x03(\t2<\n\x08SQLWrite\x12\x30\n\nWriteUsers\x12\x10.sql_write.Users\x1a\x0e.sql_write.Ack\"\x00\x62\x06proto3'
)
_ACK = _descriptor.Descriptor(
name='Ack',
full_name='sql_write.Ack',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='msg', full_name='sql_write.Ack.msg', index=0,
number=1, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=30,
serialized_end=48,
)
_USERS = _descriptor.Descriptor(
name='Users',
full_name='sql_write.Users',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='names', full_name='sql_write.Users.names', index=0,
number=1, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=50,
serialized_end=72,
)
DESCRIPTOR.message_types_by_name['Ack'] = _ACK
DESCRIPTOR.message_types_by_name['Users'] = _USERS
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
Ack = _reflection.GeneratedProtocolMessageType('Ack', (_message.Message,), {
'DESCRIPTOR' : _ACK,
'__module__' : 'sql_write_pb2'
# @@protoc_insertion_point(class_scope:sql_write.Ack)
})
_sym_db.RegisterMessage(Ack)
Users = _reflection.GeneratedProtocolMessageType('Users', (_message.Message,), {
'DESCRIPTOR' : _USERS,
'__module__' : 'sql_write_pb2'
# @@protoc_insertion_point(class_scope:sql_write.Users)
})
_sym_db.RegisterMessage(Users)
_SQLWRITE = _descriptor.ServiceDescriptor(
name='SQLWrite',
full_name='sql_write.SQLWrite',
file=DESCRIPTOR,
index=0,
serialized_options=None,
create_key=_descriptor._internal_create_key,
serialized_start=74,
serialized_end=134,
methods=[
_descriptor.MethodDescriptor(
name='WriteUsers',
full_name='sql_write.SQLWrite.WriteUsers',
index=0,
containing_service=None,
input_type=_USERS,
output_type=_ACK,
serialized_options=None,
create_key=_descriptor._internal_create_key,
),
])
_sym_db.RegisterServiceDescriptor(_SQLWRITE)
DESCRIPTOR.services_by_name['SQLWrite'] = _SQLWRITE
# @@protoc_insertion_point(module_scope) | 0.235988 | 0.075075 |
#@author hebert.santos
#@since 23/10/2019
#@version P12
#/*/
#//-------------------------------------------------------------------
from tir import Webapp
import unittest
import time
class MATA310(unittest.TestCase):
@classmethod
def setUpClass(inst):
inst.oHelper = Webapp()
inst.oHelper.Setup('SIGAEST','','T1','D MG 01','04')
inst.oHelper.Program('MATA310')
def test_MATA310_001(self):
self.oHelper.SetValue('De produto ? ','ESTSE0000000000000000000000354')
self.oHelper.SetValue('Ate produto ?','ESTSE0000000000000000000000354')
self.oHelper.SetValue('Ate filial ?','D RJ 01')
self.oHelper.SetValue('Ate armazem ?','02')
self.oHelper.SetValue('Ate tipo ?','ZZ')
self.oHelper.SetValue('Ate grupo ?','9999')
self.oHelper.SetValue('Filtra produtos por categ. ? ', 'Nao')
self.oHelper.SetValue('Quebra informacoes ?','Por armazem')
self.oHelper.SetValue('TES para notas de saida ?','549')
self.oHelper.SetValue('Gera documento de entrada ?','Classificado')
self.oHelper.SetValue('TES para notas de entrada ?','400')
self.oHelper.SetValue('Condicao de pagamento ?','101')
self.oHelper.SetValue('Considera como preco no PV ?','Tabela de Preco')
self.oHelper.SetValue('Dados da origem ?','Todas filiais')
self.oHelper.SetValue('Utilizar Saldo de Terceiros ?','Nao')
self.oHelper.SetValue('Espécie documento de entrada ?','NF')
self.oHelper.SetValue('Descrição de produtos ?','Não')
self.oHelper.SetValue('Informa prod. manualmente ?','Não')
self.oHelper.SetValue('Abre tela da nota de entrada ?','Não')
self.oHelper.SetButton('OK')
self.oHelper.ClickTree('Filial D MG 01 Filial BELO HOR > Armazem 01 > ESTSE0000000000000000000000354 - 100,00')
self.oHelper.ClickTree('Filial D RJ 01 Filial RIO DE J', position=2)
self.oHelper.ClickTree('Armazem 01 > ESTSE0000000000000000000000354 - 0,00', position=0)
self.oHelper.SetButton('Outras Ações', 'Relacao')
self.oHelper.SetValue('Lote','LOTE01')
self.oHelper.SetValue('Endereço','ENDSE01')
self.oHelper.SetValue('Quantidade','10,00')
self.oHelper.SetButton('Confirmar')
self.oHelper.SetButton('Confirmar')
self.oHelper.SetButton('Ok')
self.oHelper.SetButton('OK')
time.sleep(50)
self.oHelper.Program('MATA310')
self.oHelper.AssertTrue()
def test_MATA310_002(self):
self.oHelper.SetValue('De produto ? ','ESTSE0000000000000000000000363')
self.oHelper.SetValue('Ate produto ?','ESTSE0000000000000000000000363')
self.oHelper.SetValue('Ate filial ?','D RJ 01')
self.oHelper.SetValue('Ate armazem ?','02')
self.oHelper.SetValue('Ate tipo ?','ZZ')
self.oHelper.SetValue('Ate grupo ?','9999')
self.oHelper.SetValue('Filtra produtos por categ. ? ', 'Nao')
self.oHelper.SetValue('Quebra informacoes ?','Por armazem')
self.oHelper.SetValue('TES para notas de saida ?','549')
self.oHelper.SetValue('Gera documento de entrada ?','Classificado')
self.oHelper.SetValue('TES para notas de entrada ?','400')
self.oHelper.SetValue('Condicao de pagamento ?','101')
self.oHelper.SetValue('Considera como preco no PV ?','Tabela de Preco')
self.oHelper.SetValue('Dados da origem ?','Todas filiais')
self.oHelper.SetValue('Utilizar Saldo de Terceiros ?','Nao')
self.oHelper.SetValue('Espécie documento de entrada ?','NF')
self.oHelper.SetValue('Descrição de produtos ?','Não')
self.oHelper.SetValue('Informa prod. manualmente ?','Não')
self.oHelper.SetValue('Abre tela da nota de entrada ?','Não')
self.oHelper.SetButton('OK')
self.oHelper.ClickTree('Filial D MG 01 Filial BELO HOR > Armazem 01 > ESTSE0000000000000000000000363 - 100,00')
self.oHelper.ClickTree('Filial D RJ 01 Filial RIO DE J', position=2)
self.oHelper.ClickTree('Armazem 01 > ESTSE0000000000000000000000363 - 0,00', position=0)
self.oHelper.SetButton('Outras Ações', 'Relacao')
self.oHelper.SetValue('Lote', 'LOTE01')
self.oHelper.SetValue('Endereço', 'ENDSE01')
self.oHelper.SetValue('Quantidade', '10,00')
self.oHelper.SetButton('Confirmar')
time.sleep(10)
self.oHelper.SetButton('Outras Ações', 'Estorno')
self.oHelper.SetButton('Confirmar')
self.oHelper.SetButton('Sim')
self.oHelper.SetButton('Confirmar')
self.oHelper.SetButton('Ok')
self.oHelper.SetButton('Cancelar')
self.oHelper.Program('MATA310')
self.oHelper.AssertTrue()
def test_MATA310_003(self):
self.oHelper.SetValue('De produto ? ', 'ESTSE0000000000000000000000363')
self.oHelper.SetValue('Ate produto ?','ESTSE0000000000000000000000363')
self.oHelper.SetValue('Ate filial ?','D RJ 01')
self.oHelper.SetValue('Ate armazem ?','02')
self.oHelper.SetValue('Ate tipo ?','ZZ')
self.oHelper.SetValue('Ate grupo ?','9999')
self.oHelper.SetValue('Filtra produtos por categ. ? ', 'Nao')
self.oHelper.SetValue('Quebra informacoes ?','Por armazem')
self.oHelper.SetValue('TES para notas de saida ?','549')
self.oHelper.SetValue('Gera documento de entrada ?','Classificado')
self.oHelper.SetValue('TES para notas de entrada ?','400')
self.oHelper.SetValue('Condicao de pagamento ?','101')
self.oHelper.SetValue('Considera como preco no PV ?','Tabela de Preco')
self.oHelper.SetValue('Dados da origem ?','Todas filiais')
self.oHelper.SetValue('Utilizar Saldo de Terceiros ?','Nao')
self.oHelper.SetValue('Espécie documento de entrada ?','NF')
self.oHelper.SetValue('Descrição de produtos ?','Não')
self.oHelper.SetValue('Informa prod. manualmente ?','Não')
self.oHelper.SetValue('Abre tela da nota de entrada ?','Não')
self.oHelper.SetButton('OK')
self.oHelper.ClickTree('Filial D MG 01 Filial BELO HOR > Armazem 01 > ESTSE0000000000000000000000363 - 100,00')
self.oHelper.ClickTree('Filial D RJ 01 Filial RIO DE J', position=2)
self.oHelper.ClickTree('Armazem 01 > ESTSE0000000000000000000000363 - 0,00', position=0)
self.oHelper.SetButton('Outras Ações', 'Relacao')
self.oHelper.SetValue('Lote', 'LOTE01')
self.oHelper.SetValue('Endereço', 'ENDSE01')
self.oHelper.SetValue('Quantidade', '10,00')
self.oHelper.SetButton('Confirmar')
self.oHelper.SetButton('Outras Ações', 'Itens')
self.oHelper.SetButton('Ok')
self.oHelper.SetButton('Outras Ações', 'Legenda')
self.oHelper.SetButton('Ok')
self.oHelper.SetButton('Outras Ações', 'Pesquisar')
self.oHelper.SetButton('Cancelar')
self.oHelper.SetButton('Cancelar')
self.oHelper.AssertTrue()
self.oHelper.Finish()
def test_MATA310_004(self):
if self.oHelper.GetRelease() >= '12.1.030':
self.oHelper.AddParameter("MV_TRFVLDP", "","2","2","2")
self.oHelper.SetParameters()
self.oHelper.SetValue('De produto ? ', 'ESTSE0000000000000000000000962')
self.oHelper.SetValue('Ate produto ?','ESTSE000000000000964')
self.oHelper.SetValue('Ate filial ?','D RJ 01')
self.oHelper.SetValue('Ate armazem ?','02')
self.oHelper.SetValue('Ate tipo ?','ZZ')
self.oHelper.SetValue('De grupo ?','TRF')
self.oHelper.SetValue('Ate grupo ?','TRF')
self.oHelper.SetValue('Filtra produtos por categ. ? ', 'Nao')
self.oHelper.SetValue('Quebra informacoes ?','Por armazem')
self.oHelper.SetValue('TES para notas de saida ?','549')
self.oHelper.SetValue('Gera documento de entrada ?','Classificado')
self.oHelper.SetValue('TES para notas de entrada ?','400')
self.oHelper.SetValue('Condicao de pagamento ?','101')
self.oHelper.SetValue('Considera como preco no PV ?','C Unitario')
self.oHelper.SetValue('Dados da origem ?','Todas filiais')
self.oHelper.SetValue('Utilizar Saldo de Terceiros ?','Nao')
self.oHelper.SetValue('Espécie documento de entrada ?','NF')
self.oHelper.SetValue('Descrição de produtos ?','Não')
self.oHelper.SetValue('Informa prod. manualmente ?','Não')
self.oHelper.SetValue('Abre tela da nota de entrada ?','Não')
self.oHelper.SetButton('OK')
self.oHelper.ClickTree('Filial D MG 01 Filial <NAME> > Armazem 01 > ESTSE000000000000964 - 10.000,00')
self.oHelper.ClickTree('Filial D RJ 01 Filial RIO DE J', position=2)
self.oHelper.ClickTree('Armazem 01 > ESTSE0000000000000000000000964 - 0,00', position=0)
self.oHelper.SetButton('Outras Ações', 'Relacao')
self.oHelper.SetValue('Quantidade', '100,00')
self.oHelper.SetButton('Confirmar')
self.oHelper.SetButton('Confirmar')
self.oHelper.SetButton('Ok')
self.oHelper.SetButton('OK')
time.sleep(50)
self.oHelper.Program('MATA310')
self.oHelper.AssertTrue()
self.oHelper.Finish()
def test_MATA310_005(self):
if self.oHelper.GetRelease() >= '12.1.030':
self.oHelper.AddParameter("MV_TRFVLDP", "","3","3","3")
self.oHelper.SetParameters()
self.oHelper.SetValue('De produto ? ', 'ESTSE0000000000000000000000962')
self.oHelper.SetValue('Ate produto ?','ESTSE0000000000000000000000963')
self.oHelper.SetValue('Ate filial ?','D RJ 01')
self.oHelper.SetValue('Ate armazem ?','02')
self.oHelper.SetValue('Ate tipo ?','ZZ')
self.oHelper.SetValue('De grupo ?','TRF5')
self.oHelper.SetValue('Ate grupo ?','TRF5')
self.oHelper.SetValue('Filtra produtos por categ. ? ', 'Nao')
self.oHelper.SetValue('Quebra informacoes ?','Por armazem')
self.oHelper.SetValue('TES para notas de saida ?','549')
self.oHelper.SetValue('Gera documento de entrada ?','Classificado')
self.oHelper.SetValue('TES para notas de entrada ?','400')
self.oHelper.SetValue('Condicao de pagamento ?','101')
self.oHelper.SetValue('Considera como preco no PV ?','C Unitario')
self.oHelper.SetValue('Dados da origem ?','Todas filiais')
self.oHelper.SetValue('Utilizar Saldo de Terceiros ?','Nao')
self.oHelper.SetValue('Espécie documento de entrada ?','NF')
self.oHelper.SetValue('Descrição de produtos ?','Não')
self.oHelper.SetValue('Informa prod. manualmente ?','Não')
self.oHelper.SetValue('Abre tela da nota de entrada ?','Não')
self.oHelper.SetButton('OK')
self.oHelper.ClickTree('Filial D MG 01 Filial BELO HOR > Armazem 01 > ESTSE0000000000000000000000962 - 10.000,00')
self.oHelper.ClickTree('Filial D RJ 01 Filial RIO DE J', position=2)
self.oHelper.ClickTree('Armazem 01 > ESTSE0000000000000000000000963 - 0,00', position=0)
self.oHelper.SetButton('Outras Ações', 'Relacao')
self.oHelper.SetValue('Quantidade', '100,00')
self.oHelper.SetButton('Confirmar')
self.oHelper.SetButton('Confirmar')
self.oHelper.SetButton('Ok')
self.oHelper.SetButton('OK')
time.sleep(50)
self.oHelper.Program('MATA310')
self.oHelper.AssertTrue()
self.oHelper.Finish()
def test_MATA310_006(self):
self.oHelper.AddParameter("MV_M310TRV", "", ".T.", ".T.", ".T.")
self.oHelper.SetParameters()
self.oHelper.SetValue('De produto ? ','EST000000000000000000000000025')
self.oHelper.SetValue('Ate produto ?','EST000000000000000000000000025')
self.oHelper.SetValue('Ate filial ?','D RJ 01')
self.oHelper.SetValue('Ate armazem ?','98')
self.oHelper.SetValue('Ate tipo ?','ZZ')
self.oHelper.SetValue('Ate grupo ?','9999')
self.oHelper.SetValue('Filtra produtos por categ. ? ', 'Nao')
self.oHelper.SetValue('Quebra informacoes ?','Por armazem')
self.oHelper.SetValue('TES para notas de saida ?','672')
self.oHelper.SetValue('Gera documento de entrada ?','Classificado')
self.oHelper.SetValue('TES para notas de entrada ?','072')
self.oHelper.SetValue('Condicao de pagamento ?','001')
self.oHelper.SetValue('Considera como preco no PV ?','C Unitario')
self.oHelper.SetValue('Dados da origem ?','Todas filiais')
self.oHelper.SetValue('Utilizar Saldo de Terceiros ?','Nao')
self.oHelper.SetValue('Espécie documento de entrada ?','NF')
self.oHelper.SetValue('Descrição de produtos ?','Não')
self.oHelper.SetValue('Informa prod. manualmente ?','Não')
self.oHelper.SetValue('Abre tela da nota de entrada ?','Não')
self.oHelper.SetButton('OK')
self.oHelper.ClickTree('Filial D MG 01 <NAME> > Armazem 98 > EST000000000000000000000000025 - 100,00')
self.oHelper.ClickTree('Filial D MG 02 <NAME>', position=2)
self.oHelper.ClickTree('Armazem 98 > EST000000000000000000000000025 - 0,00', position=0)
self.oHelper.SetButton('Outras Ações', 'Relacao')
self.oHelper.SetButton('Outras Ações', 'Consulta Saldo CQ')
self.oHelper.SetButton('OK')
self.oHelper.SetValue('Quantidade','10,00')
self.oHelper.SetButton('Confirmar')
self.oHelper.SetButton('Confirmar')
self.oHelper.SetButton('Ok')
self.oHelper.SetButton('OK')
time.sleep(50)
self.oHelper.Program('MATA310')
self.oHelper.AssertTrue()
@classmethod
def tearDownClass(inst):
inst.oHelper.TearDown()
if __name__ == '__main__':
unittest.main() | Protheus_WebApp/Modules/SIGAEST/MATA310TESTCASE.py |
#@author hebert.santos
#@since 23/10/2019
#@version P12
#/*/
#//-------------------------------------------------------------------
from tir import Webapp
import unittest
import time
class MATA310(unittest.TestCase):
@classmethod
def setUpClass(inst):
inst.oHelper = Webapp()
inst.oHelper.Setup('SIGAEST','','T1','D MG 01','04')
inst.oHelper.Program('MATA310')
def test_MATA310_001(self):
self.oHelper.SetValue('De produto ? ','ESTSE0000000000000000000000354')
self.oHelper.SetValue('Ate produto ?','ESTSE0000000000000000000000354')
self.oHelper.SetValue('Ate filial ?','D RJ 01')
self.oHelper.SetValue('Ate armazem ?','02')
self.oHelper.SetValue('Ate tipo ?','ZZ')
self.oHelper.SetValue('Ate grupo ?','9999')
self.oHelper.SetValue('Filtra produtos por categ. ? ', 'Nao')
self.oHelper.SetValue('Quebra informacoes ?','Por armazem')
self.oHelper.SetValue('TES para notas de saida ?','549')
self.oHelper.SetValue('Gera documento de entrada ?','Classificado')
self.oHelper.SetValue('TES para notas de entrada ?','400')
self.oHelper.SetValue('Condicao de pagamento ?','101')
self.oHelper.SetValue('Considera como preco no PV ?','Tabela de Preco')
self.oHelper.SetValue('Dados da origem ?','Todas filiais')
self.oHelper.SetValue('Utilizar Saldo de Terceiros ?','Nao')
self.oHelper.SetValue('Espécie documento de entrada ?','NF')
self.oHelper.SetValue('Descrição de produtos ?','Não')
self.oHelper.SetValue('Informa prod. manualmente ?','Não')
self.oHelper.SetValue('Abre tela da nota de entrada ?','Não')
self.oHelper.SetButton('OK')
self.oHelper.ClickTree('Filial D MG 01 Filial BELO HOR > Armazem 01 > ESTSE0000000000000000000000354 - 100,00')
self.oHelper.ClickTree('Filial D RJ 01 Filial RIO DE J', position=2)
self.oHelper.ClickTree('Armazem 01 > ESTSE0000000000000000000000354 - 0,00', position=0)
self.oHelper.SetButton('Outras Ações', 'Relacao')
self.oHelper.SetValue('Lote','LOTE01')
self.oHelper.SetValue('Endereço','ENDSE01')
self.oHelper.SetValue('Quantidade','10,00')
self.oHelper.SetButton('Confirmar')
self.oHelper.SetButton('Confirmar')
self.oHelper.SetButton('Ok')
self.oHelper.SetButton('OK')
time.sleep(50)
self.oHelper.Program('MATA310')
self.oHelper.AssertTrue()
def test_MATA310_002(self):
self.oHelper.SetValue('De produto ? ','ESTSE0000000000000000000000363')
self.oHelper.SetValue('Ate produto ?','ESTSE0000000000000000000000363')
self.oHelper.SetValue('Ate filial ?','D RJ 01')
self.oHelper.SetValue('Ate armazem ?','02')
self.oHelper.SetValue('Ate tipo ?','ZZ')
self.oHelper.SetValue('Ate grupo ?','9999')
self.oHelper.SetValue('Filtra produtos por categ. ? ', 'Nao')
self.oHelper.SetValue('Quebra informacoes ?','Por armazem')
self.oHelper.SetValue('TES para notas de saida ?','549')
self.oHelper.SetValue('Gera documento de entrada ?','Classificado')
self.oHelper.SetValue('TES para notas de entrada ?','400')
self.oHelper.SetValue('Condicao de pagamento ?','101')
self.oHelper.SetValue('Considera como preco no PV ?','Tabela de Preco')
self.oHelper.SetValue('Dados da origem ?','Todas filiais')
self.oHelper.SetValue('Utilizar Saldo de Terceiros ?','Nao')
self.oHelper.SetValue('Espécie documento de entrada ?','NF')
self.oHelper.SetValue('Descrição de produtos ?','Não')
self.oHelper.SetValue('Informa prod. manualmente ?','Não')
self.oHelper.SetValue('Abre tela da nota de entrada ?','Não')
self.oHelper.SetButton('OK')
self.oHelper.ClickTree('Filial D MG 01 Filial BELO HOR > Armazem 01 > ESTSE0000000000000000000000363 - 100,00')
self.oHelper.ClickTree('Filial D RJ 01 Filial RIO DE J', position=2)
self.oHelper.ClickTree('Armazem 01 > ESTSE0000000000000000000000363 - 0,00', position=0)
self.oHelper.SetButton('Outras Ações', 'Relacao')
self.oHelper.SetValue('Lote', 'LOTE01')
self.oHelper.SetValue('Endereço', 'ENDSE01')
self.oHelper.SetValue('Quantidade', '10,00')
self.oHelper.SetButton('Confirmar')
time.sleep(10)
self.oHelper.SetButton('Outras Ações', 'Estorno')
self.oHelper.SetButton('Confirmar')
self.oHelper.SetButton('Sim')
self.oHelper.SetButton('Confirmar')
self.oHelper.SetButton('Ok')
self.oHelper.SetButton('Cancelar')
self.oHelper.Program('MATA310')
self.oHelper.AssertTrue()
def test_MATA310_003(self):
self.oHelper.SetValue('De produto ? ', 'ESTSE0000000000000000000000363')
self.oHelper.SetValue('Ate produto ?','ESTSE0000000000000000000000363')
self.oHelper.SetValue('Ate filial ?','D RJ 01')
self.oHelper.SetValue('Ate armazem ?','02')
self.oHelper.SetValue('Ate tipo ?','ZZ')
self.oHelper.SetValue('Ate grupo ?','9999')
self.oHelper.SetValue('Filtra produtos por categ. ? ', 'Nao')
self.oHelper.SetValue('Quebra informacoes ?','Por armazem')
self.oHelper.SetValue('TES para notas de saida ?','549')
self.oHelper.SetValue('Gera documento de entrada ?','Classificado')
self.oHelper.SetValue('TES para notas de entrada ?','400')
self.oHelper.SetValue('Condicao de pagamento ?','101')
self.oHelper.SetValue('Considera como preco no PV ?','Tabela de Preco')
self.oHelper.SetValue('Dados da origem ?','Todas filiais')
self.oHelper.SetValue('Utilizar Saldo de Terceiros ?','Nao')
self.oHelper.SetValue('Espécie documento de entrada ?','NF')
self.oHelper.SetValue('Descrição de produtos ?','Não')
self.oHelper.SetValue('Informa prod. manualmente ?','Não')
self.oHelper.SetValue('Abre tela da nota de entrada ?','Não')
self.oHelper.SetButton('OK')
self.oHelper.ClickTree('Filial D MG 01 Filial BELO HOR > Armazem 01 > ESTSE0000000000000000000000363 - 100,00')
self.oHelper.ClickTree('Filial D RJ 01 Filial RIO DE J', position=2)
self.oHelper.ClickTree('Armazem 01 > ESTSE0000000000000000000000363 - 0,00', position=0)
self.oHelper.SetButton('Outras Ações', 'Relacao')
self.oHelper.SetValue('Lote', 'LOTE01')
self.oHelper.SetValue('Endereço', 'ENDSE01')
self.oHelper.SetValue('Quantidade', '10,00')
self.oHelper.SetButton('Confirmar')
self.oHelper.SetButton('Outras Ações', 'Itens')
self.oHelper.SetButton('Ok')
self.oHelper.SetButton('Outras Ações', 'Legenda')
self.oHelper.SetButton('Ok')
self.oHelper.SetButton('Outras Ações', 'Pesquisar')
self.oHelper.SetButton('Cancelar')
self.oHelper.SetButton('Cancelar')
self.oHelper.AssertTrue()
self.oHelper.Finish()
def test_MATA310_004(self):
if self.oHelper.GetRelease() >= '12.1.030':
self.oHelper.AddParameter("MV_TRFVLDP", "","2","2","2")
self.oHelper.SetParameters()
self.oHelper.SetValue('De produto ? ', 'ESTSE0000000000000000000000962')
self.oHelper.SetValue('Ate produto ?','ESTSE000000000000964')
self.oHelper.SetValue('Ate filial ?','D RJ 01')
self.oHelper.SetValue('Ate armazem ?','02')
self.oHelper.SetValue('Ate tipo ?','ZZ')
self.oHelper.SetValue('De grupo ?','TRF')
self.oHelper.SetValue('Ate grupo ?','TRF')
self.oHelper.SetValue('Filtra produtos por categ. ? ', 'Nao')
self.oHelper.SetValue('Quebra informacoes ?','Por armazem')
self.oHelper.SetValue('TES para notas de saida ?','549')
self.oHelper.SetValue('Gera documento de entrada ?','Classificado')
self.oHelper.SetValue('TES para notas de entrada ?','400')
self.oHelper.SetValue('Condicao de pagamento ?','101')
self.oHelper.SetValue('Considera como preco no PV ?','C Unitario')
self.oHelper.SetValue('Dados da origem ?','Todas filiais')
self.oHelper.SetValue('Utilizar Saldo de Terceiros ?','Nao')
self.oHelper.SetValue('Espécie documento de entrada ?','NF')
self.oHelper.SetValue('Descrição de produtos ?','Não')
self.oHelper.SetValue('Informa prod. manualmente ?','Não')
self.oHelper.SetValue('Abre tela da nota de entrada ?','Não')
self.oHelper.SetButton('OK')
self.oHelper.ClickTree('Filial D MG 01 Filial <NAME> > Armazem 01 > ESTSE000000000000964 - 10.000,00')
self.oHelper.ClickTree('Filial D RJ 01 Filial RIO DE J', position=2)
self.oHelper.ClickTree('Armazem 01 > ESTSE0000000000000000000000964 - 0,00', position=0)
self.oHelper.SetButton('Outras Ações', 'Relacao')
self.oHelper.SetValue('Quantidade', '100,00')
self.oHelper.SetButton('Confirmar')
self.oHelper.SetButton('Confirmar')
self.oHelper.SetButton('Ok')
self.oHelper.SetButton('OK')
time.sleep(50)
self.oHelper.Program('MATA310')
self.oHelper.AssertTrue()
self.oHelper.Finish()
def test_MATA310_005(self):
if self.oHelper.GetRelease() >= '12.1.030':
self.oHelper.AddParameter("MV_TRFVLDP", "","3","3","3")
self.oHelper.SetParameters()
self.oHelper.SetValue('De produto ? ', 'ESTSE0000000000000000000000962')
self.oHelper.SetValue('Ate produto ?','ESTSE0000000000000000000000963')
self.oHelper.SetValue('Ate filial ?','D RJ 01')
self.oHelper.SetValue('Ate armazem ?','02')
self.oHelper.SetValue('Ate tipo ?','ZZ')
self.oHelper.SetValue('De grupo ?','TRF5')
self.oHelper.SetValue('Ate grupo ?','TRF5')
self.oHelper.SetValue('Filtra produtos por categ. ? ', 'Nao')
self.oHelper.SetValue('Quebra informacoes ?','Por armazem')
self.oHelper.SetValue('TES para notas de saida ?','549')
self.oHelper.SetValue('Gera documento de entrada ?','Classificado')
self.oHelper.SetValue('TES para notas de entrada ?','400')
self.oHelper.SetValue('Condicao de pagamento ?','101')
self.oHelper.SetValue('Considera como preco no PV ?','C Unitario')
self.oHelper.SetValue('Dados da origem ?','Todas filiais')
self.oHelper.SetValue('Utilizar Saldo de Terceiros ?','Nao')
self.oHelper.SetValue('Espécie documento de entrada ?','NF')
self.oHelper.SetValue('Descrição de produtos ?','Não')
self.oHelper.SetValue('Informa prod. manualmente ?','Não')
self.oHelper.SetValue('Abre tela da nota de entrada ?','Não')
self.oHelper.SetButton('OK')
self.oHelper.ClickTree('Filial D MG 01 Filial BELO HOR > Armazem 01 > ESTSE0000000000000000000000962 - 10.000,00')
self.oHelper.ClickTree('Filial D RJ 01 Filial RIO DE J', position=2)
self.oHelper.ClickTree('Armazem 01 > ESTSE0000000000000000000000963 - 0,00', position=0)
self.oHelper.SetButton('Outras Ações', 'Relacao')
self.oHelper.SetValue('Quantidade', '100,00')
self.oHelper.SetButton('Confirmar')
self.oHelper.SetButton('Confirmar')
self.oHelper.SetButton('Ok')
self.oHelper.SetButton('OK')
time.sleep(50)
self.oHelper.Program('MATA310')
self.oHelper.AssertTrue()
self.oHelper.Finish()
def test_MATA310_006(self):
self.oHelper.AddParameter("MV_M310TRV", "", ".T.", ".T.", ".T.")
self.oHelper.SetParameters()
self.oHelper.SetValue('De produto ? ','EST000000000000000000000000025')
self.oHelper.SetValue('Ate produto ?','EST000000000000000000000000025')
self.oHelper.SetValue('Ate filial ?','D RJ 01')
self.oHelper.SetValue('Ate armazem ?','98')
self.oHelper.SetValue('Ate tipo ?','ZZ')
self.oHelper.SetValue('Ate grupo ?','9999')
self.oHelper.SetValue('Filtra produtos por categ. ? ', 'Nao')
self.oHelper.SetValue('Quebra informacoes ?','Por armazem')
self.oHelper.SetValue('TES para notas de saida ?','672')
self.oHelper.SetValue('Gera documento de entrada ?','Classificado')
self.oHelper.SetValue('TES para notas de entrada ?','072')
self.oHelper.SetValue('Condicao de pagamento ?','001')
self.oHelper.SetValue('Considera como preco no PV ?','C Unitario')
self.oHelper.SetValue('Dados da origem ?','Todas filiais')
self.oHelper.SetValue('Utilizar Saldo de Terceiros ?','Nao')
self.oHelper.SetValue('Espécie documento de entrada ?','NF')
self.oHelper.SetValue('Descrição de produtos ?','Não')
self.oHelper.SetValue('Informa prod. manualmente ?','Não')
self.oHelper.SetValue('Abre tela da nota de entrada ?','Não')
self.oHelper.SetButton('OK')
self.oHelper.ClickTree('Filial D MG 01 <NAME> > Armazem 98 > EST000000000000000000000000025 - 100,00')
self.oHelper.ClickTree('Filial D MG 02 <NAME>', position=2)
self.oHelper.ClickTree('Armazem 98 > EST000000000000000000000000025 - 0,00', position=0)
self.oHelper.SetButton('Outras Ações', 'Relacao')
self.oHelper.SetButton('Outras Ações', 'Consulta Saldo CQ')
self.oHelper.SetButton('OK')
self.oHelper.SetValue('Quantidade','10,00')
self.oHelper.SetButton('Confirmar')
self.oHelper.SetButton('Confirmar')
self.oHelper.SetButton('Ok')
self.oHelper.SetButton('OK')
time.sleep(50)
self.oHelper.Program('MATA310')
self.oHelper.AssertTrue()
@classmethod
def tearDownClass(inst):
inst.oHelper.TearDown()
if __name__ == '__main__':
unittest.main() | 0.150653 | 0.10581 |
import os
from pathlib import Path
from pyfakefs.fake_filesystem_unittest import TestCase
from portals import yaml_db
class TestYamlDb(TestCase):
def setUp(self):
self.setUpPyfakefs()
def test_dump(self):
"""After writing a config a file should exist"""
path_to_config = Path("fred.yaml")
data = {"some": "stuff"}
yaml_db.dump("fred.py", data)
self.assertTrue(path_to_config.exists())
os.remove(path_to_config)
def test_dump_load(self):
"""After writing a config it should be readable"""
path_to_config = Path("fred.yaml")
expected = {
"test": [1, 2, 3],
"fred": [4, 5, [6, 7, 8]],
}
yaml_db.dump("fred.py", expected)
actual = yaml_db.load("fred.py")
self.assertEqual(actual, expected)
os.remove(path_to_config)
def test_indentation(self):
"""A written config should be indented
Data used in this test should have the lists indented by 2 spaces
and sub-list by 4 spaces
"""
path_to_config = Path("fred.yaml")
data = {
"test": [1, 2, 3],
"fred": [4, 5, [6, 7, 8]],
}
indented_lines = {
# key is number of indented spaces
# value is the line numbers that should have that
0: {0, 1, 7},
2: {2, 3, 4, 8, 9, 10},
4: {5, 6},
}
yaml_db.dump("fred.py", data)
with open(path_to_config) as stream:
lines = stream.read().splitlines()
for i, line in enumerate(lines):
spaces = len(line) - len(line.lstrip())
self.assertTrue(i in indented_lines[spaces])
os.remove(path_to_config)
def test_dump_to_good_path(self):
"""Writing to a existing path should return True"""
expected = True
actual = yaml_db.dump("./fred.txt", {"test": "data"})
self.assertEqual(actual, expected)
def test_dump_to_bad_path(self):
"""Writing to a missing directory should return False"""
expected = False
actual = yaml_db.dump("/path/to/nowhere/fred.py", {"test": "data"})
self.assertEqual(actual, expected) | portals/test/test_yaml_db.py | import os
from pathlib import Path
from pyfakefs.fake_filesystem_unittest import TestCase
from portals import yaml_db
class TestYamlDb(TestCase):
def setUp(self):
self.setUpPyfakefs()
def test_dump(self):
"""After writing a config a file should exist"""
path_to_config = Path("fred.yaml")
data = {"some": "stuff"}
yaml_db.dump("fred.py", data)
self.assertTrue(path_to_config.exists())
os.remove(path_to_config)
def test_dump_load(self):
"""After writing a config it should be readable"""
path_to_config = Path("fred.yaml")
expected = {
"test": [1, 2, 3],
"fred": [4, 5, [6, 7, 8]],
}
yaml_db.dump("fred.py", expected)
actual = yaml_db.load("fred.py")
self.assertEqual(actual, expected)
os.remove(path_to_config)
def test_indentation(self):
"""A written config should be indented
Data used in this test should have the lists indented by 2 spaces
and sub-list by 4 spaces
"""
path_to_config = Path("fred.yaml")
data = {
"test": [1, 2, 3],
"fred": [4, 5, [6, 7, 8]],
}
indented_lines = {
# key is number of indented spaces
# value is the line numbers that should have that
0: {0, 1, 7},
2: {2, 3, 4, 8, 9, 10},
4: {5, 6},
}
yaml_db.dump("fred.py", data)
with open(path_to_config) as stream:
lines = stream.read().splitlines()
for i, line in enumerate(lines):
spaces = len(line) - len(line.lstrip())
self.assertTrue(i in indented_lines[spaces])
os.remove(path_to_config)
def test_dump_to_good_path(self):
"""Writing to a existing path should return True"""
expected = True
actual = yaml_db.dump("./fred.txt", {"test": "data"})
self.assertEqual(actual, expected)
def test_dump_to_bad_path(self):
"""Writing to a missing directory should return False"""
expected = False
actual = yaml_db.dump("/path/to/nowhere/fred.py", {"test": "data"})
self.assertEqual(actual, expected) | 0.490968 | 0.382055 |
from django import template
from django.contrib.auth.models import User
register = template.Library()
from django.shortcuts import render, get_object_or_404
from ..models import Analysis, ProjectComment, Module, Project, File, ParamsComment, Param
from ..forms import ProjectEditCommForm, ParamForm2, ModuleParamForm, ParamTextForm, ModuleForm, TextForm, ParamCommForm, ParamForm, ProjectPlanForm
from django.db.models.aggregates import Max
from django.forms import modelformset_factory
from django.forms import ModelForm, Textarea, NumberInput,Select
#render upload div
@register.simple_tag
def upload_js():
return """
<!-- The template to display files available for upload -->
<script id="template-upload" type="text/x-tmpl">
{% for (var i=0, file; file=o.files[i]; i++) { %}
<tr class="template-upload fade">
<td>
<span class="preview"></span>
</td>
<td>
<p class="name">{%=file.name%}</p>
{% if (file.error) { %}
<div><span class="label label-important">{%=locale.fileupload.error%}</span> {%=file.error%}</div>
{% } %}
</td>
<td>
<p class="size">{%=o.formatFileSize(file.size)%}</p>
{% if (!o.files.error) { %}
<div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><div class="progress-bar progress-bar-success" style="width:0%;"></div></div>
{% } %}
</td>
<td>
{% if (!o.files.error && !i && !o.options.autoUpload) { %}
<button class="btn btn-primary start">
<i class="glyphicon glyphicon-upload"></i>
<span>{%=locale.fileupload.start%}</span>
</button>
{% } %}
{% if (!i) { %}
<button class="btn btn-warning cancel">
<i class="glyphicon glyphicon-ban-circle"></i>
<span>{%=locale.fileupload.cancel%}</span>
</button>
{% } %}
</td>
</tr>
{% } %}
</script>
<!-- The template to display files available for download -->
<script id="template-download" type="text/x-tmpl">
{% for (var i=0, file; file=o.files[i]; i++) { %}
<tr class="template-download fade">
<td>
<span class="preview">
{% if (file.thumbnailUrl) { %}
<a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" data-gallery><img src="{%=file.thumbnailUrl%}"></a>
{% } %}
</span>
</td>
<td>
<p class="name">
<a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" {%=file.thumbnailUrl?'data-gallery':''%}>{%=file.name%}</a>
</p>
{% if (file.error) { %}
<div><span class="label label-important">{%=locale.fileupload.error%}</span> {%=file.error%}</div>
{% } %}
</td>
<td>
<span class="size">{%=o.formatFileSize(file.size)%}</span>
</td>
<td>
<button class="btn btn-danger delete" data-type="{%=file.deleteType%}" data-url="{%=file.deleteUrl%}"{% if (file.deleteWithCredentials) { %} data-xhr-fields='{"withCredentials":true}'{% } %}>
<i class="glyphicon glyphicon-trash"></i>
<span>{%=locale.fileupload.destroy%}</span>
</button>
<input type="checkbox" name="delete" value="1" class="toggle">
</td>
</tr>
{% } %}
</script>
"""
#render plan div
@register.simple_tag
def get_plan_html(plans, ancestor=True):
html = ""
for plan in plans:
#first time only basic comments
if not (ancestor and plan.child):
plan_class = plan.get_p_class_display()
#plan_header = plan.header if plan.header else ""
if plan.p_class == "P":
plan_span = """
<span onclick="changeClassError({0})" class="{0}_plan1 glyphicon glyphicon-remove glyphicon-right glyphicon-red"></span>
<span onclick="changeClassOk({0})" class="{0}_plan1 glyphicon glyphicon-ok glyphicon-right glyphicon-green"></span>
<span style="display: none;" onclick="changeClassError({0})" class="{0}_plan2 glyphicon glyphicon-repeat glyphicon-right glyphicon-blue"></span>
""".format(plan.id)
else:
plan_span = """
<span style="display: none;" onclick="changeClassError({0})" class="{0}_plan1 glyphicon glyphicon-remove glyphicon-right glyphicon-red"></span>
<span style="display: none;" onclick="changeClassOk({0})" class="{0}_plan1 glyphicon glyphicon-ok glyphicon-right glyphicon-green"></span>
<span onclick="changeClassError({0})" class="{0}_plan2 glyphicon glyphicon-repeat glyphicon-right glyphicon-blue"></span>
""".format(plan.id)
html += """
<li id="plan_{0}" class="placeholder-children col-xs-12" data-id="{0}" data-name="{0}">
<div id="{0}" class="panel no_pad col-xs-12 {1}">
<div class="panel-heading col-xs-12 ">
<div class="panel_left col-xs-12 ">
<div class="col-xs-9 top_m"> {3} </div>
<div class="col-xs-3">
<span onclick="removePlan({0})" class="glyphicon glyphicon-right glyphicon-black glyphicon-trash"></span>
{2}
</div>
</div>
</div>
</div>
<div class="left_plan"></div>
<ol>
""".format(plan.id, plan_class, plan_span, plan.comment)
children = ProjectComment.objects.filter(child = plan)
print(plan.id, plan.child)
if children:
html += get_plan_html(children, False)
html += "</ol> </li> <ol></ol>"
return html
#get people who can see file
@register.simple_tag
def get_obj(file):
obj = User.objects.filter(file_user__file = file, file_user__role = 'X', file_user__is_active = True)
if not obj:
return None
else:
analysts = ""
for entry in obj:
analysts += " "
analysts += entry.username
return analysts
#get files belonging group
@register.simple_tag
def get_files(group):
obj = File.objects.filter(file_group__group = group, file_group__is_active = True)
if not obj:
return None
else:
files = ""
for entry in obj:
files += " "
files += entry.user_name + entry.ext
return files
#get creator of group
@register.simple_tag
def get_creator(group):
obj = get_object_or_404(User, group_user__group = group, group_user__role = 'C', group_user__is_active = True)
if not obj:
return None
else:
return obj.username
#get people who can see group
@register.simple_tag
def get_group_analysts(group):
obj = User.objects.filter(group_user__group = group, group_user__role = 'X', group_user__is_active = True)
if not obj:
return None
else:
analysts = ""
for entry in obj:
analysts += " "
analysts += entry.username
return analysts
#get comment form
@register.simple_tag
def get_comm_form(comm):
try:
old_comm = ParamsComment.objects.filter(params = comm).values('params').annotate(max_id=Max('id'))
comm_id = old_comm[0]['max_id']
param_comm = ParamsComment.objects.get(pk = comm_id)
param_comm_from = ParamCommForm(instance = param_comm)
except:
param_comm_from = ParamCommForm()
return param_comm_from
#get module comment form
@register.simple_tag
def get_module_form(mod):
try:
old_comm = ModuleComment.objects.filter(module = mod).values('module').annotate(max_id=Max('id'))
comm_id = old_comm[0]['max_id']
old_comm = ModuleComment.objects.get(pk = comm_id)
new_module_com = ModuleCommentForm(instance = old_comm)
except:
new_module_com = ModuleCommentForm()
return new_module_com
#get module form
@register.simple_tag
def get_init_module_form(service):
new_module = ModuleForm(service)
return new_module
#get project comment form
@register.simple_tag
def get_pro_comment(com):
edit_comm = ProjectEditCommForm(instance = com)
return edit_comm
#get module parameters form
@register.simple_tag
def get_param_module_form(service):
new_module = ModuleParamForm(service)
return new_module
#get parameter form
@register.simple_tag
def get_param_form(param):
if param.par_type == "N":
param_form = ParamForm(instance = param)
else:
param_form = ParamTextForm(instance = param)
return param_form
@register.simple_tag
def get_param_limit_form(param, project_name):
print(".")
#get parameters formset
@register.simple_tag
def get_param_limit_formset(param_group, project_id):
param_formset = modelformset_factory(Param, form=ParamForm2)
param_formset = param_formset(form_kwargs={'project_id': project_id}, queryset=Param.objects.filter(is_active=True, params__name = param_group.name), prefix='param_formset')
ile = param_formset.total_form_count()
return param_formset
#get init script form
@register.simple_tag
def get_init_form(init):
text = init.display_text_file()
form = TextForm(initial={'text': text})
return form
#get module analysis
@register.simple_tag
def get_service(module_id):
module = get_object_or_404(Module, pk = module_id)
analysis = Analysis.objects.filter(module = module)
return analysis
#get service modules
@register.simple_tag
def get_modules(service, project):
modules = Module.objects.filter(service = service, is_active = True, project_module__project = project)
return modules
#sort data
@register.filter
def sort_by(queryset, order):
return queryset.order_by(order)
#set global context
@register.simple_tag(takes_context=True)
def set_global_context(context, key, value):
"""
Sets a value to the global template context, so it can
be accessible across blocks.
Note that the block where the global context variable is set must appear
before the other blocks using the variable IN THE BASE TEMPLATE. The order
of the blocks in the extending template is not important.
Usage::
{% extends 'base.html' %}
{% block first %}
{% set_global_context 'foo' 'bar' %}
{% endblock %}
{% block second %}
{{ foo }}
{% endblock %}
"""
print("set ", key, " ", value)
print(context)
context.dicts[0][key] = value
return '' | app/templatetags/upload_tags.py | from django import template
from django.contrib.auth.models import User
register = template.Library()
from django.shortcuts import render, get_object_or_404
from ..models import Analysis, ProjectComment, Module, Project, File, ParamsComment, Param
from ..forms import ProjectEditCommForm, ParamForm2, ModuleParamForm, ParamTextForm, ModuleForm, TextForm, ParamCommForm, ParamForm, ProjectPlanForm
from django.db.models.aggregates import Max
from django.forms import modelformset_factory
from django.forms import ModelForm, Textarea, NumberInput,Select
#render upload div
@register.simple_tag
def upload_js():
return """
<!-- The template to display files available for upload -->
<script id="template-upload" type="text/x-tmpl">
{% for (var i=0, file; file=o.files[i]; i++) { %}
<tr class="template-upload fade">
<td>
<span class="preview"></span>
</td>
<td>
<p class="name">{%=file.name%}</p>
{% if (file.error) { %}
<div><span class="label label-important">{%=locale.fileupload.error%}</span> {%=file.error%}</div>
{% } %}
</td>
<td>
<p class="size">{%=o.formatFileSize(file.size)%}</p>
{% if (!o.files.error) { %}
<div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><div class="progress-bar progress-bar-success" style="width:0%;"></div></div>
{% } %}
</td>
<td>
{% if (!o.files.error && !i && !o.options.autoUpload) { %}
<button class="btn btn-primary start">
<i class="glyphicon glyphicon-upload"></i>
<span>{%=locale.fileupload.start%}</span>
</button>
{% } %}
{% if (!i) { %}
<button class="btn btn-warning cancel">
<i class="glyphicon glyphicon-ban-circle"></i>
<span>{%=locale.fileupload.cancel%}</span>
</button>
{% } %}
</td>
</tr>
{% } %}
</script>
<!-- The template to display files available for download -->
<script id="template-download" type="text/x-tmpl">
{% for (var i=0, file; file=o.files[i]; i++) { %}
<tr class="template-download fade">
<td>
<span class="preview">
{% if (file.thumbnailUrl) { %}
<a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" data-gallery><img src="{%=file.thumbnailUrl%}"></a>
{% } %}
</span>
</td>
<td>
<p class="name">
<a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" {%=file.thumbnailUrl?'data-gallery':''%}>{%=file.name%}</a>
</p>
{% if (file.error) { %}
<div><span class="label label-important">{%=locale.fileupload.error%}</span> {%=file.error%}</div>
{% } %}
</td>
<td>
<span class="size">{%=o.formatFileSize(file.size)%}</span>
</td>
<td>
<button class="btn btn-danger delete" data-type="{%=file.deleteType%}" data-url="{%=file.deleteUrl%}"{% if (file.deleteWithCredentials) { %} data-xhr-fields='{"withCredentials":true}'{% } %}>
<i class="glyphicon glyphicon-trash"></i>
<span>{%=locale.fileupload.destroy%}</span>
</button>
<input type="checkbox" name="delete" value="1" class="toggle">
</td>
</tr>
{% } %}
</script>
"""
#render plan div
@register.simple_tag
def get_plan_html(plans, ancestor=True):
html = ""
for plan in plans:
#first time only basic comments
if not (ancestor and plan.child):
plan_class = plan.get_p_class_display()
#plan_header = plan.header if plan.header else ""
if plan.p_class == "P":
plan_span = """
<span onclick="changeClassError({0})" class="{0}_plan1 glyphicon glyphicon-remove glyphicon-right glyphicon-red"></span>
<span onclick="changeClassOk({0})" class="{0}_plan1 glyphicon glyphicon-ok glyphicon-right glyphicon-green"></span>
<span style="display: none;" onclick="changeClassError({0})" class="{0}_plan2 glyphicon glyphicon-repeat glyphicon-right glyphicon-blue"></span>
""".format(plan.id)
else:
plan_span = """
<span style="display: none;" onclick="changeClassError({0})" class="{0}_plan1 glyphicon glyphicon-remove glyphicon-right glyphicon-red"></span>
<span style="display: none;" onclick="changeClassOk({0})" class="{0}_plan1 glyphicon glyphicon-ok glyphicon-right glyphicon-green"></span>
<span onclick="changeClassError({0})" class="{0}_plan2 glyphicon glyphicon-repeat glyphicon-right glyphicon-blue"></span>
""".format(plan.id)
html += """
<li id="plan_{0}" class="placeholder-children col-xs-12" data-id="{0}" data-name="{0}">
<div id="{0}" class="panel no_pad col-xs-12 {1}">
<div class="panel-heading col-xs-12 ">
<div class="panel_left col-xs-12 ">
<div class="col-xs-9 top_m"> {3} </div>
<div class="col-xs-3">
<span onclick="removePlan({0})" class="glyphicon glyphicon-right glyphicon-black glyphicon-trash"></span>
{2}
</div>
</div>
</div>
</div>
<div class="left_plan"></div>
<ol>
""".format(plan.id, plan_class, plan_span, plan.comment)
children = ProjectComment.objects.filter(child = plan)
print(plan.id, plan.child)
if children:
html += get_plan_html(children, False)
html += "</ol> </li> <ol></ol>"
return html
#get people who can see file
@register.simple_tag
def get_obj(file):
obj = User.objects.filter(file_user__file = file, file_user__role = 'X', file_user__is_active = True)
if not obj:
return None
else:
analysts = ""
for entry in obj:
analysts += " "
analysts += entry.username
return analysts
#get files belonging group
@register.simple_tag
def get_files(group):
obj = File.objects.filter(file_group__group = group, file_group__is_active = True)
if not obj:
return None
else:
files = ""
for entry in obj:
files += " "
files += entry.user_name + entry.ext
return files
#get creator of group
@register.simple_tag
def get_creator(group):
obj = get_object_or_404(User, group_user__group = group, group_user__role = 'C', group_user__is_active = True)
if not obj:
return None
else:
return obj.username
#get people who can see group
@register.simple_tag
def get_group_analysts(group):
obj = User.objects.filter(group_user__group = group, group_user__role = 'X', group_user__is_active = True)
if not obj:
return None
else:
analysts = ""
for entry in obj:
analysts += " "
analysts += entry.username
return analysts
#get comment form
@register.simple_tag
def get_comm_form(comm):
try:
old_comm = ParamsComment.objects.filter(params = comm).values('params').annotate(max_id=Max('id'))
comm_id = old_comm[0]['max_id']
param_comm = ParamsComment.objects.get(pk = comm_id)
param_comm_from = ParamCommForm(instance = param_comm)
except:
param_comm_from = ParamCommForm()
return param_comm_from
#get module comment form
@register.simple_tag
def get_module_form(mod):
try:
old_comm = ModuleComment.objects.filter(module = mod).values('module').annotate(max_id=Max('id'))
comm_id = old_comm[0]['max_id']
old_comm = ModuleComment.objects.get(pk = comm_id)
new_module_com = ModuleCommentForm(instance = old_comm)
except:
new_module_com = ModuleCommentForm()
return new_module_com
#get module form
@register.simple_tag
def get_init_module_form(service):
new_module = ModuleForm(service)
return new_module
#get project comment form
@register.simple_tag
def get_pro_comment(com):
edit_comm = ProjectEditCommForm(instance = com)
return edit_comm
#get module parameters form
@register.simple_tag
def get_param_module_form(service):
new_module = ModuleParamForm(service)
return new_module
#get parameter form
@register.simple_tag
def get_param_form(param):
if param.par_type == "N":
param_form = ParamForm(instance = param)
else:
param_form = ParamTextForm(instance = param)
return param_form
@register.simple_tag
def get_param_limit_form(param, project_name):
print(".")
#get parameters formset
@register.simple_tag
def get_param_limit_formset(param_group, project_id):
param_formset = modelformset_factory(Param, form=ParamForm2)
param_formset = param_formset(form_kwargs={'project_id': project_id}, queryset=Param.objects.filter(is_active=True, params__name = param_group.name), prefix='param_formset')
ile = param_formset.total_form_count()
return param_formset
#get init script form
@register.simple_tag
def get_init_form(init):
text = init.display_text_file()
form = TextForm(initial={'text': text})
return form
#get module analysis
@register.simple_tag
def get_service(module_id):
module = get_object_or_404(Module, pk = module_id)
analysis = Analysis.objects.filter(module = module)
return analysis
#get service modules
@register.simple_tag
def get_modules(service, project):
modules = Module.objects.filter(service = service, is_active = True, project_module__project = project)
return modules
#sort data
@register.filter
def sort_by(queryset, order):
return queryset.order_by(order)
#set global context
@register.simple_tag(takes_context=True)
def set_global_context(context, key, value):
"""
Sets a value to the global template context, so it can
be accessible across blocks.
Note that the block where the global context variable is set must appear
before the other blocks using the variable IN THE BASE TEMPLATE. The order
of the blocks in the extending template is not important.
Usage::
{% extends 'base.html' %}
{% block first %}
{% set_global_context 'foo' 'bar' %}
{% endblock %}
{% block second %}
{{ foo }}
{% endblock %}
"""
print("set ", key, " ", value)
print(context)
context.dicts[0][key] = value
return '' | 0.306838 | 0.073032 |
from enum import Enum, unique
import math
class Stats(object):
def __init__(self):
self.hits = 0
self.private_hits = 0
self.shared_hits = 0
self.misses = 0
self.invalidated = 0
self.lines_invalidated = 0
self.write_backs = 0
self.write_updates = 0
self.write_update_lines = 0
def hit_rate(self):
return float(self.hits) / float(self.hits + self.misses) * 100
def private_hit_rate(self):
return float(self.private_hits) / float(self.hits) * 100
def shared_hit_rate(self):
return float(self.shared_hits) / float(self.hits) * 100
def __repr__(self):
return str({
'hits': self.hits,
'private_hits': self.private_hits,
'shared_hits': self.shared_hits,
'misses': self.misses,
'invalidates': self.invalidated,
'lines_invalidated': self.lines_invalidated,
'write_backs': self.write_backs,
'write_updates': self.write_updates,
'write_update_lines': self.write_update_lines
})
class Instruction(object):
ACTIONS = ['R', 'W']
def __init__(self, input, address_length=32):
instruction, processor, action, address = self._parse(input)
self.instruction = instruction
self.processor = processor
self.processor_id = int(processor[1])
self.action = action
self.address = int(address)
self.address_length = address_length
def _parse(self, input):
instr, sep, comment = input.partition('#')
processor, action, address = instr.strip().split()
return (instr, processor, action, address)
def is_read(self):
return self.action == 'R'
def is_write(self):
return self.action == 'W'
def __str__(self):
return self.instruction
def __repr__(self):
return self.instruction
@staticmethod
def is_valid(input):
"""
It is an instruction if we can break it down to 3 pieces
"""
instr, sep, comment = input.partition('#')
return len(instr.split()) == 3
class Command(object):
VERBOSE = {
'v': 'Toggle full line by line explanation (verbose)',
'p': 'Print contents of the cache',
'h': 'Print the current hit-rate',
'i': 'Print the total number of invalidations'
}
def __init__(self, command):
self.command = command
self.verbose = self.VERBOSE[command]
def __str__(self):
return 'Instruction({}) - {}'.format(self.command, self.verbose)
def is_explanation(self):
return self.command== 'v'
def is_print(self):
return self.command == 'p'
def is_hit(self):
return self.command == 'h'
def is_invalidations(self):
return self.command == 'i'
@staticmethod
def is_valid(input):
"""
Check a plaintext input and decide if it is a valid command
"""
return len(input) == 1 and input in Command.VERBOSE.keys()
@unique
class State(Enum):
modified = 'M'
shared = 'S'
invalid = 'I'
exclusive = 'E'
def __repr__(self):
return self.name.capitalize()
@unique
class Action(Enum):
read_hit = 'RH'
read_miss = 'RM'
write_hit = 'WH'
write_miss = 'WM'
def __repr__(self):
return self.name.replace('_', ' ').capitalize()
@staticmethod
def translate(read, hit):
if not read and not hit:
return Action.write_miss
if not read and hit:
return Action.write_hit
if read and not hit:
return Action.read_miss
return Action.read_hit
class Bus(object):
def any_contains(self, instruction, caches):
for cache in caches:
try:
cache.get(instruction)
return True
except KeyError:
pass
return False
class UpdateBus(Bus):
def __init__(self, caches, protocol):
self.caches = caches
self.protocol = protocol
self.ids = range(len(caches))
def get_remotes(self, instruction):
cpu = instruction.processor_id
remote_ids = set(self.ids) - set([cpu])
return [self.caches[cid] for cid in remote_ids]
def is_shared(self, instruction):
remotes = self.get_remotes(instruction)
return self.any_contains(instruction, remotes)
def message(self, instruction, action, send_write_update):
remotes = self.get_remotes(instruction)
write_updates = 0
write_backs = 0
old_states = []
is_miss = action is Action.read_miss or action is Action.write_miss
for cache in remotes:
try:
_, state, _ = cache.get(instruction)
old_states.append((cache.cpu, state))
new_state = self.protocol.remote(state, action, send_write_update)
if state is not new_state:
write_updates += 1
cache.set(instruction, new_state)
if is_miss and state is State.modified:
write_backs += 1
except KeyError:
pass
return write_backs, write_updates, old_states
class InvalidateBus(Bus):
def __init__(self, caches, protocol):
self.caches = caches
self.protocol = protocol
self.ids = range(len(caches))
def get_remotes(self, instruction):
cpu = instruction.processor_id
remote_ids = set(self.ids) - set([cpu])
return [self.caches[cid] for cid in remote_ids]
def is_shared(self, instruction):
remotes = self.get_remotes(instruction)
return self.any_contains(instruction, remotes)
def invalidate(self, instruction):
remotes = self.get_remotes(instruction)
line_invalidates = 0
for cache in remotes:
try:
cache.get(instruction)
cache.set(instruction, State.invalid)
line_invalidates += 1
except KeyError:
pass
return line_invalidates
def message(self, instruction, action):
remotes = self.get_remotes(instruction)
old_states = []
invalidates = 0
write_backs = 0
for cache in remotes:
try:
entry, state, block = cache.get(instruction)
is_miss = action is Action.read_miss or action is Action.write_miss
if is_miss and state is State.modified:
write_backs += 1
new_state = self.protocol.remote(state, action)
old_states.append((cache.cpu, state))
cache.set(instruction, new_state)
if new_state is State.invalid:
invalidates += 1
except KeyError as e:
# Cache doesn't contain the key, nothing to do
pass
return old_states, invalidates, write_backs
class DirectMappedCache(object):
"""
Build a direct mapped cache, units are WORDS.
"""
WORD_SIZE = 4 # 4 bytes = 32 bits
CACHE_SIZE = 2048 # words
ADDRESS_LENGTH = WORD_SIZE * 8
def __init__(self, cpu, block_size=4):
assert block_size > 1
block_count = self.CACHE_SIZE / block_size
self.block_size = block_size
self.block_count = block_count
self.cpu = cpu
self.cache = {}
def __repr__(self):
return 'CPU {} Cache {}'.format(self.cpu, self.cache)
def __str__(self):
header = 'P{}'.format(self.cpu)
contents = [header]
for key, value in sorted(self.cache.items()):
tag, state = value
contents.append(' {}: {} ({})'.format(key, tag, repr(state)))
return '\n'.join(contents)
def get_block(self, instruction):
"""
Map an address to a block.
"""
mem_block = int(math.floor(instruction.address / self.block_size))
block = int(mem_block % self.block_count)
tag = int(math.floor(mem_block / self.block_count))
return (block, tag)
def get(self, instruction):
block, tag = self.get_block(instruction)
cached_tag, state = self.cache[block]
if tag != cached_tag or state is State.invalid:
raise KeyError('Miss on {}'.format(instruction))
return (tag, state, block)
def set(self, instruction, state):
block, tag = self.get_block(instruction)
self.cache[block] = (tag, state)
assert len(self.cache) <= self.block_count | PA/coursework_2/models.py | from enum import Enum, unique
import math
class Stats(object):
def __init__(self):
self.hits = 0
self.private_hits = 0
self.shared_hits = 0
self.misses = 0
self.invalidated = 0
self.lines_invalidated = 0
self.write_backs = 0
self.write_updates = 0
self.write_update_lines = 0
def hit_rate(self):
return float(self.hits) / float(self.hits + self.misses) * 100
def private_hit_rate(self):
return float(self.private_hits) / float(self.hits) * 100
def shared_hit_rate(self):
return float(self.shared_hits) / float(self.hits) * 100
def __repr__(self):
return str({
'hits': self.hits,
'private_hits': self.private_hits,
'shared_hits': self.shared_hits,
'misses': self.misses,
'invalidates': self.invalidated,
'lines_invalidated': self.lines_invalidated,
'write_backs': self.write_backs,
'write_updates': self.write_updates,
'write_update_lines': self.write_update_lines
})
class Instruction(object):
ACTIONS = ['R', 'W']
def __init__(self, input, address_length=32):
instruction, processor, action, address = self._parse(input)
self.instruction = instruction
self.processor = processor
self.processor_id = int(processor[1])
self.action = action
self.address = int(address)
self.address_length = address_length
def _parse(self, input):
instr, sep, comment = input.partition('#')
processor, action, address = instr.strip().split()
return (instr, processor, action, address)
def is_read(self):
return self.action == 'R'
def is_write(self):
return self.action == 'W'
def __str__(self):
return self.instruction
def __repr__(self):
return self.instruction
@staticmethod
def is_valid(input):
"""
It is an instruction if we can break it down to 3 pieces
"""
instr, sep, comment = input.partition('#')
return len(instr.split()) == 3
class Command(object):
VERBOSE = {
'v': 'Toggle full line by line explanation (verbose)',
'p': 'Print contents of the cache',
'h': 'Print the current hit-rate',
'i': 'Print the total number of invalidations'
}
def __init__(self, command):
self.command = command
self.verbose = self.VERBOSE[command]
def __str__(self):
return 'Instruction({}) - {}'.format(self.command, self.verbose)
def is_explanation(self):
return self.command== 'v'
def is_print(self):
return self.command == 'p'
def is_hit(self):
return self.command == 'h'
def is_invalidations(self):
return self.command == 'i'
@staticmethod
def is_valid(input):
"""
Check a plaintext input and decide if it is a valid command
"""
return len(input) == 1 and input in Command.VERBOSE.keys()
@unique
class State(Enum):
modified = 'M'
shared = 'S'
invalid = 'I'
exclusive = 'E'
def __repr__(self):
return self.name.capitalize()
@unique
class Action(Enum):
read_hit = 'RH'
read_miss = 'RM'
write_hit = 'WH'
write_miss = 'WM'
def __repr__(self):
return self.name.replace('_', ' ').capitalize()
@staticmethod
def translate(read, hit):
if not read and not hit:
return Action.write_miss
if not read and hit:
return Action.write_hit
if read and not hit:
return Action.read_miss
return Action.read_hit
class Bus(object):
def any_contains(self, instruction, caches):
for cache in caches:
try:
cache.get(instruction)
return True
except KeyError:
pass
return False
class UpdateBus(Bus):
def __init__(self, caches, protocol):
self.caches = caches
self.protocol = protocol
self.ids = range(len(caches))
def get_remotes(self, instruction):
cpu = instruction.processor_id
remote_ids = set(self.ids) - set([cpu])
return [self.caches[cid] for cid in remote_ids]
def is_shared(self, instruction):
remotes = self.get_remotes(instruction)
return self.any_contains(instruction, remotes)
def message(self, instruction, action, send_write_update):
remotes = self.get_remotes(instruction)
write_updates = 0
write_backs = 0
old_states = []
is_miss = action is Action.read_miss or action is Action.write_miss
for cache in remotes:
try:
_, state, _ = cache.get(instruction)
old_states.append((cache.cpu, state))
new_state = self.protocol.remote(state, action, send_write_update)
if state is not new_state:
write_updates += 1
cache.set(instruction, new_state)
if is_miss and state is State.modified:
write_backs += 1
except KeyError:
pass
return write_backs, write_updates, old_states
class InvalidateBus(Bus):
def __init__(self, caches, protocol):
self.caches = caches
self.protocol = protocol
self.ids = range(len(caches))
def get_remotes(self, instruction):
cpu = instruction.processor_id
remote_ids = set(self.ids) - set([cpu])
return [self.caches[cid] for cid in remote_ids]
def is_shared(self, instruction):
remotes = self.get_remotes(instruction)
return self.any_contains(instruction, remotes)
def invalidate(self, instruction):
remotes = self.get_remotes(instruction)
line_invalidates = 0
for cache in remotes:
try:
cache.get(instruction)
cache.set(instruction, State.invalid)
line_invalidates += 1
except KeyError:
pass
return line_invalidates
def message(self, instruction, action):
remotes = self.get_remotes(instruction)
old_states = []
invalidates = 0
write_backs = 0
for cache in remotes:
try:
entry, state, block = cache.get(instruction)
is_miss = action is Action.read_miss or action is Action.write_miss
if is_miss and state is State.modified:
write_backs += 1
new_state = self.protocol.remote(state, action)
old_states.append((cache.cpu, state))
cache.set(instruction, new_state)
if new_state is State.invalid:
invalidates += 1
except KeyError as e:
# Cache doesn't contain the key, nothing to do
pass
return old_states, invalidates, write_backs
class DirectMappedCache(object):
"""
Build a direct mapped cache, units are WORDS.
"""
WORD_SIZE = 4 # 4 bytes = 32 bits
CACHE_SIZE = 2048 # words
ADDRESS_LENGTH = WORD_SIZE * 8
def __init__(self, cpu, block_size=4):
assert block_size > 1
block_count = self.CACHE_SIZE / block_size
self.block_size = block_size
self.block_count = block_count
self.cpu = cpu
self.cache = {}
def __repr__(self):
return 'CPU {} Cache {}'.format(self.cpu, self.cache)
def __str__(self):
header = 'P{}'.format(self.cpu)
contents = [header]
for key, value in sorted(self.cache.items()):
tag, state = value
contents.append(' {}: {} ({})'.format(key, tag, repr(state)))
return '\n'.join(contents)
def get_block(self, instruction):
"""
Map an address to a block.
"""
mem_block = int(math.floor(instruction.address / self.block_size))
block = int(mem_block % self.block_count)
tag = int(math.floor(mem_block / self.block_count))
return (block, tag)
def get(self, instruction):
block, tag = self.get_block(instruction)
cached_tag, state = self.cache[block]
if tag != cached_tag or state is State.invalid:
raise KeyError('Miss on {}'.format(instruction))
return (tag, state, block)
def set(self, instruction, state):
block, tag = self.get_block(instruction)
self.cache[block] = (tag, state)
assert len(self.cache) <= self.block_count | 0.698844 | 0.219129 |
import numpy as np
from numba import jit, prange, boolean
from pecanpy.graph import SparseGraph, DenseGraph
class Base:
"""Improved version of original node2vec
Parallelized transition probabilities pre-computation and random walks
"""
def __init__(self, p, q, workers, verbose):
super(Base, self).__init__()
self.p = p
self.q = q
self.workers = workers
self.verbose = verbose
def simulate_walks(self, num_walks, walk_length):
"""Generate walks starting from each nodes `num_walks` time
Notes:
This is master worker
Args:
num_walks(int): number of walks starting from each node
walks_length(int): length of walk
"""
num_nodes = len(self.IDlst)
nodes = np.array(range(num_nodes), dtype=np.uint32)
start_node_idx_ary = np.concatenate([nodes]*num_walks)
np.random.shuffle(start_node_idx_ary)
p = self.p
q = self.q
move_forward = self.get_move_forward()
has_nbrs = self.get_has_nbrs()
@jit(parallel=True, nogil=True, nopython=True)
def node2vec_walks():
"""Simulate a random walk starting from start node."""
n = start_node_idx_ary.size
walk_idx_mat = np.zeros((n, walk_length + 1), dtype=np.uint32)
walk_idx_mat[:,0] = start_node_idx_ary
for i in prange(n):
start_node_idx = walk_idx_mat[i,0]
walk_idx_mat[i,1] = move_forward(start_node_idx)
#TODO: print status in regular interval
for j in range(2, walk_length + 1):
cur_idx = walk_idx_mat[i, j - 1]
if has_nbrs(cur_idx):
prev_idx = walk_idx_mat[i, j - 2]
walk_idx_mat[i,j] = move_forward(cur_idx, prev_idx)
else:
print("Dead end!")
break
return walk_idx_mat
walks = [[self.IDlst[idx] for idx in walk] for walk in node2vec_walks()]
return walks
def preprocess_transition_probs(self):
pass
class PreComp(Base, SparseGraph):
def __init__(self, p, q, workers, verbose):
Base.__init__(self, p, q, workers, verbose)
def get_move_forward(self):
"""Wrapper for `move_forward` that calculates transition probabilities
and draw next node from the distribution"""
data = self.data
indices = self.indices
indptr = self.indptr
p = self.p
q = self.q
get_normalized_probs = self.get_normalized_probs
alias_J = self.alias_J
alias_q = self.alias_q
alias_indptr = self.alias_indptr
alias_dim = self.alias_dim
@jit(nopython=True, nogil=True)
def move_forward(cur_idx, prev_idx=None):
if prev_idx is None:
normalized_probs = get_normalized_probs(data, indices, indptr,
p, q, cur_idx)
cdf = np.cumsum(normalized_probs)
choice = np.searchsorted(cdf, np.random.random())
else:
# find index of neighbor for reading alias
start = indptr[cur_idx]
end = indptr[cur_idx+1]
nbr_idx = np.searchsorted(indices[start:end], prev_idx)
if indices[start+nbr_idx] != prev_idx:
print("FATAL ERROR! Neighbor not found.")
dim = alias_dim[cur_idx]
start = alias_indptr[cur_idx] + dim * nbr_idx
end = start + dim
choice = alias_draw(alias_J[start:end], alias_q[start:end])
return indices[indptr[cur_idx] + choice]
return move_forward
def preprocess_transition_probs(self):
"""Precompute and store 2nd order transition probabilities as array of
dense matrices
"""
data = self.data
indices = self.indices
indptr = self.indptr
p = self.p
q = self.q
get_normalized_probs = self.get_normalized_probs
N = self.indptr.size - 1 # number of nodes
n = self.indptr[1:] - self.indptr[:-1] # number of nbrs per node
n2 = np.power(n, 2) # number of 2nd order trans probs per node
self.alias_dim = alias_dim = n
# use 64 bit unsigned int to prevent overfloating of alias_indptr
self.alias_indptr = alias_indptr = np.zeros(self.indptr.size, dtype=np.uint64)
alias_indptr[1:] = np.cumsum(n2)
n_probs = alias_indptr[-1] # total number of 2nd order transition probs
@jit(parallel=True, nopython=True, nogil=True)
def compute_all_transition_probs():
alias_J = np.zeros(n_probs, dtype=np.uint32)
alias_q = np.zeros(n_probs, dtype=np.float64)
for idx in range(N):
offset = alias_indptr[idx]
dim = alias_dim[idx]
nbrs = indices[indptr[idx]:indptr[idx+1]]
for nbr_idx in prange(n[idx]):
nbr = nbrs[nbr_idx]
probs = get_normalized_probs(data, indices, indptr, p, q, idx, nbr)
start = offset + dim * nbr_idx
J_tmp, q_tmp = alias_setup(probs)
for i in range(dim):
alias_J[start+i] = J_tmp[i]
alias_q[start+i] = q_tmp[i]
return alias_J, alias_q
self.alias_J, self.alias_q = compute_all_transition_probs()
class SparseOTF(Base, SparseGraph):
def __init__(self, p, q, workers, verbose):
Base.__init__(self, p, q, workers, verbose)
def get_move_forward(self):
"""Wrapper for `move_forward` that calculates transition probabilities
and draw next node from the distribution"""
data = self.data
indices = self.indices
indptr = self.indptr
p = self.p
q = self.q
get_normalized_probs = self.get_normalized_probs
@jit(nopython=True, nogil=True)
def move_forward(cur_idx, prev_idx=None):
normalized_probs = get_normalized_probs(data, indices, indptr,
p, q, cur_idx, prev_idx)
cdf = np.cumsum(normalized_probs)
choice = np.searchsorted(cdf, np.random.random())
return indices[indptr[cur_idx] + choice]
return move_forward
class DenseOTF(Base, DenseGraph):
def __init__(self, p, q, workers, verbose):
Base.__init__(self, p, q, workers, verbose)
def get_move_forward(self):
data = self.data
nonzero = self.nonzero
p = self.p
q = self.q
get_normalized_probs = self.get_normalized_probs
@jit(nopython=True, nogil=True)
def move_forward(cur_idx, prev_idx=None):
normalized_probs = get_normalized_probs(data, nonzero,
p, q, cur_idx, prev_idx)
cdf = np.cumsum(normalized_probs)
choice = np.searchsorted(cdf, np.random.random())
nbrs = np.where(nonzero[cur_idx])[0]
return nbrs[choice]
return move_forward
@jit(nopython=True, nogil=True)
def alias_setup(probs):
"""Setup lookup table for alias method
https://hips.seas.harvard.edu/blog/2013/03/03/the-alias-method-efficient-sampling-with-many-discrete-outcomes/
Args:
probs(*float64): normalized transition probabilities array
"""
K = probs.size
q = np.zeros(K, dtype=np.float64)
J = np.zeros(K, dtype=np.uint32)
smaller = np.zeros(K, dtype=np.uint32)
larger = np.zeros(K, dtype=np.uint32)
smaller_ptr = 0
larger_ptr = 0
for kk in range(K):
q[kk] = K * probs[kk]
if q[kk] < 1.0:
smaller[smaller_ptr] = kk
smaller_ptr += 1
else:
larger[larger_ptr] = kk
larger_ptr += 1
while (smaller_ptr > 0) & (larger_ptr > 0):
smaller_ptr -= 1
small = smaller[smaller_ptr]
larger_ptr -= 1
large = larger[larger_ptr]
J[small] = large
q[large] = q[large] + q[small] - 1.0
if q[large] < 1.0:
smaller[smaller_ptr] = large
smaller_ptr += 1
else:
larger[larger_ptr] = large
larger_ptr += 1
return J, q
@jit(nopython=True, nogil=True)
def alias_draw(J, q):
"""
Draw sample from a non-uniform discrete distribution using alias sampling.
"""
K = J.size
kk = np.random.randint(K)
if np.random.rand() < q[kk]:
return kk
else:
return J[kk] | src/pecanpy/node2vec.py | import numpy as np
from numba import jit, prange, boolean
from pecanpy.graph import SparseGraph, DenseGraph
class Base:
"""Improved version of original node2vec
Parallelized transition probabilities pre-computation and random walks
"""
def __init__(self, p, q, workers, verbose):
super(Base, self).__init__()
self.p = p
self.q = q
self.workers = workers
self.verbose = verbose
def simulate_walks(self, num_walks, walk_length):
"""Generate walks starting from each nodes `num_walks` time
Notes:
This is master worker
Args:
num_walks(int): number of walks starting from each node
walks_length(int): length of walk
"""
num_nodes = len(self.IDlst)
nodes = np.array(range(num_nodes), dtype=np.uint32)
start_node_idx_ary = np.concatenate([nodes]*num_walks)
np.random.shuffle(start_node_idx_ary)
p = self.p
q = self.q
move_forward = self.get_move_forward()
has_nbrs = self.get_has_nbrs()
@jit(parallel=True, nogil=True, nopython=True)
def node2vec_walks():
"""Simulate a random walk starting from start node."""
n = start_node_idx_ary.size
walk_idx_mat = np.zeros((n, walk_length + 1), dtype=np.uint32)
walk_idx_mat[:,0] = start_node_idx_ary
for i in prange(n):
start_node_idx = walk_idx_mat[i,0]
walk_idx_mat[i,1] = move_forward(start_node_idx)
#TODO: print status in regular interval
for j in range(2, walk_length + 1):
cur_idx = walk_idx_mat[i, j - 1]
if has_nbrs(cur_idx):
prev_idx = walk_idx_mat[i, j - 2]
walk_idx_mat[i,j] = move_forward(cur_idx, prev_idx)
else:
print("Dead end!")
break
return walk_idx_mat
walks = [[self.IDlst[idx] for idx in walk] for walk in node2vec_walks()]
return walks
def preprocess_transition_probs(self):
pass
class PreComp(Base, SparseGraph):
def __init__(self, p, q, workers, verbose):
Base.__init__(self, p, q, workers, verbose)
def get_move_forward(self):
"""Wrapper for `move_forward` that calculates transition probabilities
and draw next node from the distribution"""
data = self.data
indices = self.indices
indptr = self.indptr
p = self.p
q = self.q
get_normalized_probs = self.get_normalized_probs
alias_J = self.alias_J
alias_q = self.alias_q
alias_indptr = self.alias_indptr
alias_dim = self.alias_dim
@jit(nopython=True, nogil=True)
def move_forward(cur_idx, prev_idx=None):
if prev_idx is None:
normalized_probs = get_normalized_probs(data, indices, indptr,
p, q, cur_idx)
cdf = np.cumsum(normalized_probs)
choice = np.searchsorted(cdf, np.random.random())
else:
# find index of neighbor for reading alias
start = indptr[cur_idx]
end = indptr[cur_idx+1]
nbr_idx = np.searchsorted(indices[start:end], prev_idx)
if indices[start+nbr_idx] != prev_idx:
print("FATAL ERROR! Neighbor not found.")
dim = alias_dim[cur_idx]
start = alias_indptr[cur_idx] + dim * nbr_idx
end = start + dim
choice = alias_draw(alias_J[start:end], alias_q[start:end])
return indices[indptr[cur_idx] + choice]
return move_forward
def preprocess_transition_probs(self):
"""Precompute and store 2nd order transition probabilities as array of
dense matrices
"""
data = self.data
indices = self.indices
indptr = self.indptr
p = self.p
q = self.q
get_normalized_probs = self.get_normalized_probs
N = self.indptr.size - 1 # number of nodes
n = self.indptr[1:] - self.indptr[:-1] # number of nbrs per node
n2 = np.power(n, 2) # number of 2nd order trans probs per node
self.alias_dim = alias_dim = n
# use 64 bit unsigned int to prevent overfloating of alias_indptr
self.alias_indptr = alias_indptr = np.zeros(self.indptr.size, dtype=np.uint64)
alias_indptr[1:] = np.cumsum(n2)
n_probs = alias_indptr[-1] # total number of 2nd order transition probs
@jit(parallel=True, nopython=True, nogil=True)
def compute_all_transition_probs():
alias_J = np.zeros(n_probs, dtype=np.uint32)
alias_q = np.zeros(n_probs, dtype=np.float64)
for idx in range(N):
offset = alias_indptr[idx]
dim = alias_dim[idx]
nbrs = indices[indptr[idx]:indptr[idx+1]]
for nbr_idx in prange(n[idx]):
nbr = nbrs[nbr_idx]
probs = get_normalized_probs(data, indices, indptr, p, q, idx, nbr)
start = offset + dim * nbr_idx
J_tmp, q_tmp = alias_setup(probs)
for i in range(dim):
alias_J[start+i] = J_tmp[i]
alias_q[start+i] = q_tmp[i]
return alias_J, alias_q
self.alias_J, self.alias_q = compute_all_transition_probs()
class SparseOTF(Base, SparseGraph):
def __init__(self, p, q, workers, verbose):
Base.__init__(self, p, q, workers, verbose)
def get_move_forward(self):
"""Wrapper for `move_forward` that calculates transition probabilities
and draw next node from the distribution"""
data = self.data
indices = self.indices
indptr = self.indptr
p = self.p
q = self.q
get_normalized_probs = self.get_normalized_probs
@jit(nopython=True, nogil=True)
def move_forward(cur_idx, prev_idx=None):
normalized_probs = get_normalized_probs(data, indices, indptr,
p, q, cur_idx, prev_idx)
cdf = np.cumsum(normalized_probs)
choice = np.searchsorted(cdf, np.random.random())
return indices[indptr[cur_idx] + choice]
return move_forward
class DenseOTF(Base, DenseGraph):
def __init__(self, p, q, workers, verbose):
Base.__init__(self, p, q, workers, verbose)
def get_move_forward(self):
data = self.data
nonzero = self.nonzero
p = self.p
q = self.q
get_normalized_probs = self.get_normalized_probs
@jit(nopython=True, nogil=True)
def move_forward(cur_idx, prev_idx=None):
normalized_probs = get_normalized_probs(data, nonzero,
p, q, cur_idx, prev_idx)
cdf = np.cumsum(normalized_probs)
choice = np.searchsorted(cdf, np.random.random())
nbrs = np.where(nonzero[cur_idx])[0]
return nbrs[choice]
return move_forward
@jit(nopython=True, nogil=True)
def alias_setup(probs):
"""Setup lookup table for alias method
https://hips.seas.harvard.edu/blog/2013/03/03/the-alias-method-efficient-sampling-with-many-discrete-outcomes/
Args:
probs(*float64): normalized transition probabilities array
"""
K = probs.size
q = np.zeros(K, dtype=np.float64)
J = np.zeros(K, dtype=np.uint32)
smaller = np.zeros(K, dtype=np.uint32)
larger = np.zeros(K, dtype=np.uint32)
smaller_ptr = 0
larger_ptr = 0
for kk in range(K):
q[kk] = K * probs[kk]
if q[kk] < 1.0:
smaller[smaller_ptr] = kk
smaller_ptr += 1
else:
larger[larger_ptr] = kk
larger_ptr += 1
while (smaller_ptr > 0) & (larger_ptr > 0):
smaller_ptr -= 1
small = smaller[smaller_ptr]
larger_ptr -= 1
large = larger[larger_ptr]
J[small] = large
q[large] = q[large] + q[small] - 1.0
if q[large] < 1.0:
smaller[smaller_ptr] = large
smaller_ptr += 1
else:
larger[larger_ptr] = large
larger_ptr += 1
return J, q
@jit(nopython=True, nogil=True)
def alias_draw(J, q):
"""
Draw sample from a non-uniform discrete distribution using alias sampling.
"""
K = J.size
kk = np.random.randint(K)
if np.random.rand() < q[kk]:
return kk
else:
return J[kk] | 0.633864 | 0.369287 |
import logging
import time
from telemetry.results import page_test_results
class GTestTestResults(page_test_results.PageTestResults):
def __init__(self, output_stream):
super(GTestTestResults, self).__init__(output_stream)
self._timestamp = None
def _GetMs(self):
return (time.time() - self._timestamp) * 1000
def _emitFailure(self, page, err):
print >> self._output_stream, self._GetStringFromExcInfo(err)
print >> self._output_stream, '[ FAILED ]', page.display_name, (
'(%0.f ms)' % self._GetMs())
self._output_stream.flush()
def AddValue(self, value):
# TODO(chrishenry): When FailureValue is added, this should instead
# validate that isinstance(value, FailureValue) is true.
raise Exception('GTestTestResults does not support AddValue().')
def AddFailure(self, page, err):
super(GTestTestResults, self).AddFailure(page, err)
self._emitFailure(page, err)
def StartTest(self, page):
super(GTestTestResults, self).StartTest(page)
print >> self._output_stream, '[ RUN ]', page.display_name
self._output_stream.flush()
self._timestamp = time.time()
def AddSuccess(self, page):
super(GTestTestResults, self).AddSuccess(page)
print >> self._output_stream, '[ OK ]', page.display_name, (
'(%0.f ms)' % self._GetMs())
self._output_stream.flush()
def AddSkip(self, page, reason):
super(GTestTestResults, self).AddSkip(page, reason)
logging.warning('===== SKIPPING TEST %s: %s =====',
page.display_name, reason)
if self._timestamp == None:
self._timestamp = time.time()
print >> self._output_stream, '[ OK ]', page.display_name, (
'(%0.f ms)' % self._GetMs())
self._output_stream.flush()
def PrintSummary(self):
unit = 'test' if len(self.successes) == 1 else 'tests'
print >> self._output_stream, '[ PASSED ]', (
'%d %s.' % (len(self.successes), unit))
if self.failures:
unit = 'test' if len(self.failures) == 1 else 'tests'
print >> self._output_stream, '[ FAILED ]', (
'%d %s, listed below:' % (len(self.failures), unit))
for page, _ in self.failures:
print >> self._output_stream, '[ FAILED ] ', (
page.display_name)
print >> self._output_stream
count = len(self.failures)
unit = 'TEST' if count == 1 else 'TESTS'
print >> self._output_stream, '%d FAILED %s' % (count, unit)
print >> self._output_stream
self._output_stream.flush() | tools/telemetry/telemetry/results/gtest_test_results.py |
import logging
import time
from telemetry.results import page_test_results
class GTestTestResults(page_test_results.PageTestResults):
def __init__(self, output_stream):
super(GTestTestResults, self).__init__(output_stream)
self._timestamp = None
def _GetMs(self):
return (time.time() - self._timestamp) * 1000
def _emitFailure(self, page, err):
print >> self._output_stream, self._GetStringFromExcInfo(err)
print >> self._output_stream, '[ FAILED ]', page.display_name, (
'(%0.f ms)' % self._GetMs())
self._output_stream.flush()
def AddValue(self, value):
# TODO(chrishenry): When FailureValue is added, this should instead
# validate that isinstance(value, FailureValue) is true.
raise Exception('GTestTestResults does not support AddValue().')
def AddFailure(self, page, err):
super(GTestTestResults, self).AddFailure(page, err)
self._emitFailure(page, err)
def StartTest(self, page):
super(GTestTestResults, self).StartTest(page)
print >> self._output_stream, '[ RUN ]', page.display_name
self._output_stream.flush()
self._timestamp = time.time()
def AddSuccess(self, page):
super(GTestTestResults, self).AddSuccess(page)
print >> self._output_stream, '[ OK ]', page.display_name, (
'(%0.f ms)' % self._GetMs())
self._output_stream.flush()
def AddSkip(self, page, reason):
super(GTestTestResults, self).AddSkip(page, reason)
logging.warning('===== SKIPPING TEST %s: %s =====',
page.display_name, reason)
if self._timestamp == None:
self._timestamp = time.time()
print >> self._output_stream, '[ OK ]', page.display_name, (
'(%0.f ms)' % self._GetMs())
self._output_stream.flush()
def PrintSummary(self):
unit = 'test' if len(self.successes) == 1 else 'tests'
print >> self._output_stream, '[ PASSED ]', (
'%d %s.' % (len(self.successes), unit))
if self.failures:
unit = 'test' if len(self.failures) == 1 else 'tests'
print >> self._output_stream, '[ FAILED ]', (
'%d %s, listed below:' % (len(self.failures), unit))
for page, _ in self.failures:
print >> self._output_stream, '[ FAILED ] ', (
page.display_name)
print >> self._output_stream
count = len(self.failures)
unit = 'TEST' if count == 1 else 'TESTS'
print >> self._output_stream, '%d FAILED %s' % (count, unit)
print >> self._output_stream
self._output_stream.flush() | 0.203312 | 0.23895 |
from tests.utils import assert_bindings
def test_list_id_pattern_1_nistxml_sv_iv_list_id_pattern_2_1(mode, save_output, output_format):
r"""
Type list/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{5} [\i-[:]][\c-[:]]{36} [\i-[:]][\c-[:]]{42}
[\i-[:]][\c-[:]]{37} [\i-[:]][\c-[:]]{23} [\i-[:]][\c-[:]]{20}
[\i-[:]][\c-[:]]{4} [\i-[:]][\c-[:]]{36}.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-pattern-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-pattern-2-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_pattern_1_nistxml_sv_iv_list_id_pattern_2_2(mode, save_output, output_format):
r"""
Type list/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{5} [\i-[:]][\c-[:]]{36} [\i-[:]][\c-[:]]{42}
[\i-[:]][\c-[:]]{37} [\i-[:]][\c-[:]]{23} [\i-[:]][\c-[:]]{20}
[\i-[:]][\c-[:]]{4} [\i-[:]][\c-[:]]{36}.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-pattern-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-pattern-2-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_pattern_1_nistxml_sv_iv_list_id_pattern_2_3(mode, save_output, output_format):
r"""
Type list/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{5} [\i-[:]][\c-[:]]{36} [\i-[:]][\c-[:]]{42}
[\i-[:]][\c-[:]]{37} [\i-[:]][\c-[:]]{23} [\i-[:]][\c-[:]]{20}
[\i-[:]][\c-[:]]{4} [\i-[:]][\c-[:]]{36}.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-pattern-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-pattern-2-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_pattern_1_nistxml_sv_iv_list_id_pattern_2_4(mode, save_output, output_format):
r"""
Type list/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{5} [\i-[:]][\c-[:]]{36} [\i-[:]][\c-[:]]{42}
[\i-[:]][\c-[:]]{37} [\i-[:]][\c-[:]]{23} [\i-[:]][\c-[:]]{20}
[\i-[:]][\c-[:]]{4} [\i-[:]][\c-[:]]{36}.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-pattern-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-pattern-2-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_pattern_1_nistxml_sv_iv_list_id_pattern_2_5(mode, save_output, output_format):
r"""
Type list/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{5} [\i-[:]][\c-[:]]{36} [\i-[:]][\c-[:]]{42}
[\i-[:]][\c-[:]]{37} [\i-[:]][\c-[:]]{23} [\i-[:]][\c-[:]]{20}
[\i-[:]][\c-[:]]{4} [\i-[:]][\c-[:]]{36}.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-pattern-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-pattern-2-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_pattern_nistxml_sv_iv_list_id_pattern_1_1(mode, save_output, output_format):
r"""
Type list/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{2} [\i-[:]][\c-[:]]{57} [\i-[:]][\c-[:]]{31}
[\i-[:]][\c-[:]]{5} [\i-[:]][\c-[:]]{10} [\i-[:]][\c-[:]]{47}
[\i-[:]][\c-[:]]{21}.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-pattern-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-pattern-1-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_pattern_nistxml_sv_iv_list_id_pattern_1_2(mode, save_output, output_format):
r"""
Type list/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{2} [\i-[:]][\c-[:]]{57} [\i-[:]][\c-[:]]{31}
[\i-[:]][\c-[:]]{5} [\i-[:]][\c-[:]]{10} [\i-[:]][\c-[:]]{47}
[\i-[:]][\c-[:]]{21}.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-pattern-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-pattern-1-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_pattern_nistxml_sv_iv_list_id_pattern_1_3(mode, save_output, output_format):
r"""
Type list/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{2} [\i-[:]][\c-[:]]{57} [\i-[:]][\c-[:]]{31}
[\i-[:]][\c-[:]]{5} [\i-[:]][\c-[:]]{10} [\i-[:]][\c-[:]]{47}
[\i-[:]][\c-[:]]{21}.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-pattern-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-pattern-1-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_pattern_nistxml_sv_iv_list_id_pattern_1_4(mode, save_output, output_format):
r"""
Type list/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{2} [\i-[:]][\c-[:]]{57} [\i-[:]][\c-[:]]{31}
[\i-[:]][\c-[:]]{5} [\i-[:]][\c-[:]]{10} [\i-[:]][\c-[:]]{47}
[\i-[:]][\c-[:]]{21}.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-pattern-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-pattern-1-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_pattern_nistxml_sv_iv_list_id_pattern_1_5(mode, save_output, output_format):
r"""
Type list/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{2} [\i-[:]][\c-[:]]{57} [\i-[:]][\c-[:]]{31}
[\i-[:]][\c-[:]]{5} [\i-[:]][\c-[:]]{10} [\i-[:]][\c-[:]]{47}
[\i-[:]][\c-[:]]{21}.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-pattern-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-pattern-1-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_4_nistxml_sv_iv_list_id_length_5_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-5-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_4_nistxml_sv_iv_list_id_length_5_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-5-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_4_nistxml_sv_iv_list_id_length_5_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-5-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_4_nistxml_sv_iv_list_id_length_5_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-5-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_4_nistxml_sv_iv_list_id_length_5_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-5-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_3_nistxml_sv_iv_list_id_length_4_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-4-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_3_nistxml_sv_iv_list_id_length_4_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-4-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_3_nistxml_sv_iv_list_id_length_4_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-4-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_3_nistxml_sv_iv_list_id_length_4_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-4-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_3_nistxml_sv_iv_list_id_length_4_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-4-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_2_nistxml_sv_iv_list_id_length_3_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-3-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_2_nistxml_sv_iv_list_id_length_3_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-3-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_2_nistxml_sv_iv_list_id_length_3_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-3-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_2_nistxml_sv_iv_list_id_length_3_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-3-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_2_nistxml_sv_iv_list_id_length_3_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-3-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_1_nistxml_sv_iv_list_id_length_2_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-2-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_1_nistxml_sv_iv_list_id_length_2_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-2-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_1_nistxml_sv_iv_list_id_length_2_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-2-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_1_nistxml_sv_iv_list_id_length_2_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-2-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_1_nistxml_sv_iv_list_id_length_2_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-2-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_nistxml_sv_iv_list_id_length_1_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-1-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_nistxml_sv_iv_list_id_length_1_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-1-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_nistxml_sv_iv_list_id_length_1_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-1-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_nistxml_sv_iv_list_id_length_1_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-1-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_nistxml_sv_iv_list_id_length_1_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-1-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_4_nistxml_sv_iv_list_id_min_length_5_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-5-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_4_nistxml_sv_iv_list_id_min_length_5_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-5-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_4_nistxml_sv_iv_list_id_min_length_5_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-5-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_4_nistxml_sv_iv_list_id_min_length_5_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-5-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_4_nistxml_sv_iv_list_id_min_length_5_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-5-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_3_nistxml_sv_iv_list_id_min_length_4_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-4-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_3_nistxml_sv_iv_list_id_min_length_4_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-4-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_3_nistxml_sv_iv_list_id_min_length_4_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-4-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_3_nistxml_sv_iv_list_id_min_length_4_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-4-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_3_nistxml_sv_iv_list_id_min_length_4_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-4-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_2_nistxml_sv_iv_list_id_min_length_3_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-3-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_2_nistxml_sv_iv_list_id_min_length_3_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-3-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_2_nistxml_sv_iv_list_id_min_length_3_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-3-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_2_nistxml_sv_iv_list_id_min_length_3_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-3-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_2_nistxml_sv_iv_list_id_min_length_3_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-3-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_1_nistxml_sv_iv_list_id_min_length_2_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-2-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_1_nistxml_sv_iv_list_id_min_length_2_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-2-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_1_nistxml_sv_iv_list_id_min_length_2_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-2-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_1_nistxml_sv_iv_list_id_min_length_2_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-2-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_1_nistxml_sv_iv_list_id_min_length_2_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-2-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_nistxml_sv_iv_list_id_min_length_1_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-1-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_nistxml_sv_iv_list_id_min_length_1_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-1-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_nistxml_sv_iv_list_id_min_length_1_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-1-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_nistxml_sv_iv_list_id_min_length_1_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-1-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_nistxml_sv_iv_list_id_min_length_1_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-1-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_4_nistxml_sv_iv_list_id_max_length_5_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-5-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_4_nistxml_sv_iv_list_id_max_length_5_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-5-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_4_nistxml_sv_iv_list_id_max_length_5_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-5-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_4_nistxml_sv_iv_list_id_max_length_5_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-5-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_4_nistxml_sv_iv_list_id_max_length_5_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-5-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_3_nistxml_sv_iv_list_id_max_length_4_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-4-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_3_nistxml_sv_iv_list_id_max_length_4_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-4-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_3_nistxml_sv_iv_list_id_max_length_4_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-4-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_3_nistxml_sv_iv_list_id_max_length_4_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-4-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_3_nistxml_sv_iv_list_id_max_length_4_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-4-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_2_nistxml_sv_iv_list_id_max_length_3_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-3-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_2_nistxml_sv_iv_list_id_max_length_3_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-3-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_2_nistxml_sv_iv_list_id_max_length_3_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-3-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_2_nistxml_sv_iv_list_id_max_length_3_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-3-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_2_nistxml_sv_iv_list_id_max_length_3_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-3-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_1_nistxml_sv_iv_list_id_max_length_2_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-2-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_1_nistxml_sv_iv_list_id_max_length_2_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-2-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_1_nistxml_sv_iv_list_id_max_length_2_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-2-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_1_nistxml_sv_iv_list_id_max_length_2_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-2-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_1_nistxml_sv_iv_list_id_max_length_2_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-2-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_nistxml_sv_iv_list_id_max_length_1_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-1-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_nistxml_sv_iv_list_id_max_length_1_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-1-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_nistxml_sv_iv_list_id_max_length_1_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-1-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_nistxml_sv_iv_list_id_max_length_1_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-1-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_nistxml_sv_iv_list_id_max_length_1_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-1-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_white_space_nistxml_sv_iv_list_ncname_white_space_1_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-whiteSpace-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-whiteSpace-1-1.xml",
class_name="NistschemaSvIvListNcnameWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_white_space_nistxml_sv_iv_list_ncname_white_space_1_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-whiteSpace-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-whiteSpace-1-2.xml",
class_name="NistschemaSvIvListNcnameWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_white_space_nistxml_sv_iv_list_ncname_white_space_1_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-whiteSpace-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-whiteSpace-1-3.xml",
class_name="NistschemaSvIvListNcnameWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_white_space_nistxml_sv_iv_list_ncname_white_space_1_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-whiteSpace-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-whiteSpace-1-4.xml",
class_name="NistschemaSvIvListNcnameWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_white_space_nistxml_sv_iv_list_ncname_white_space_1_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-whiteSpace-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-whiteSpace-1-5.xml",
class_name="NistschemaSvIvListNcnameWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_4_nistxml_sv_iv_list_ncname_enumeration_5_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-5-1.xml",
class_name="NistschemaSvIvListNcnameEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_4_nistxml_sv_iv_list_ncname_enumeration_5_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-5-2.xml",
class_name="NistschemaSvIvListNcnameEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_4_nistxml_sv_iv_list_ncname_enumeration_5_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-5-3.xml",
class_name="NistschemaSvIvListNcnameEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_4_nistxml_sv_iv_list_ncname_enumeration_5_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-5-4.xml",
class_name="NistschemaSvIvListNcnameEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_4_nistxml_sv_iv_list_ncname_enumeration_5_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-5-5.xml",
class_name="NistschemaSvIvListNcnameEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_3_nistxml_sv_iv_list_ncname_enumeration_4_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-4-1.xml",
class_name="NistschemaSvIvListNcnameEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_3_nistxml_sv_iv_list_ncname_enumeration_4_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-4-2.xml",
class_name="NistschemaSvIvListNcnameEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_3_nistxml_sv_iv_list_ncname_enumeration_4_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-4-3.xml",
class_name="NistschemaSvIvListNcnameEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_3_nistxml_sv_iv_list_ncname_enumeration_4_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-4-4.xml",
class_name="NistschemaSvIvListNcnameEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_3_nistxml_sv_iv_list_ncname_enumeration_4_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-4-5.xml",
class_name="NistschemaSvIvListNcnameEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_2_nistxml_sv_iv_list_ncname_enumeration_3_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-3-1.xml",
class_name="NistschemaSvIvListNcnameEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_2_nistxml_sv_iv_list_ncname_enumeration_3_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-3-2.xml",
class_name="NistschemaSvIvListNcnameEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_2_nistxml_sv_iv_list_ncname_enumeration_3_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-3-3.xml",
class_name="NistschemaSvIvListNcnameEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_2_nistxml_sv_iv_list_ncname_enumeration_3_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-3-4.xml",
class_name="NistschemaSvIvListNcnameEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_2_nistxml_sv_iv_list_ncname_enumeration_3_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-3-5.xml",
class_name="NistschemaSvIvListNcnameEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_1_nistxml_sv_iv_list_ncname_enumeration_2_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-2-1.xml",
class_name="NistschemaSvIvListNcnameEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_1_nistxml_sv_iv_list_ncname_enumeration_2_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-2-2.xml",
class_name="NistschemaSvIvListNcnameEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_1_nistxml_sv_iv_list_ncname_enumeration_2_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-2-3.xml",
class_name="NistschemaSvIvListNcnameEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_1_nistxml_sv_iv_list_ncname_enumeration_2_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-2-4.xml",
class_name="NistschemaSvIvListNcnameEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_1_nistxml_sv_iv_list_ncname_enumeration_2_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-2-5.xml",
class_name="NistschemaSvIvListNcnameEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_nistxml_sv_iv_list_ncname_enumeration_1_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-1-1.xml",
class_name="NistschemaSvIvListNcnameEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_nistxml_sv_iv_list_ncname_enumeration_1_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-1-2.xml",
class_name="NistschemaSvIvListNcnameEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_nistxml_sv_iv_list_ncname_enumeration_1_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-1-3.xml",
class_name="NistschemaSvIvListNcnameEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_nistxml_sv_iv_list_ncname_enumeration_1_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-1-4.xml",
class_name="NistschemaSvIvListNcnameEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_nistxml_sv_iv_list_ncname_enumeration_1_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-1-5.xml",
class_name="NistschemaSvIvListNcnameEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_4_nistxml_sv_iv_list_ncname_pattern_5_1(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{40} [\i-[:]][\c-[:]]{59} [\i-[:]][\c-[:]]{55}
[\i-[:]][\c-[:]]{41} [\i-[:]][\c-[:]]{12} [\i-[:]][\c-[:]]{25}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-5-1.xml",
class_name="NistschemaSvIvListNcnamePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_4_nistxml_sv_iv_list_ncname_pattern_5_2(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{40} [\i-[:]][\c-[:]]{59} [\i-[:]][\c-[:]]{55}
[\i-[:]][\c-[:]]{41} [\i-[:]][\c-[:]]{12} [\i-[:]][\c-[:]]{25}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-5-2.xml",
class_name="NistschemaSvIvListNcnamePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_4_nistxml_sv_iv_list_ncname_pattern_5_3(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{40} [\i-[:]][\c-[:]]{59} [\i-[:]][\c-[:]]{55}
[\i-[:]][\c-[:]]{41} [\i-[:]][\c-[:]]{12} [\i-[:]][\c-[:]]{25}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-5-3.xml",
class_name="NistschemaSvIvListNcnamePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_4_nistxml_sv_iv_list_ncname_pattern_5_4(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{40} [\i-[:]][\c-[:]]{59} [\i-[:]][\c-[:]]{55}
[\i-[:]][\c-[:]]{41} [\i-[:]][\c-[:]]{12} [\i-[:]][\c-[:]]{25}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-5-4.xml",
class_name="NistschemaSvIvListNcnamePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_4_nistxml_sv_iv_list_ncname_pattern_5_5(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{40} [\i-[:]][\c-[:]]{59} [\i-[:]][\c-[:]]{55}
[\i-[:]][\c-[:]]{41} [\i-[:]][\c-[:]]{12} [\i-[:]][\c-[:]]{25}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-5-5.xml",
class_name="NistschemaSvIvListNcnamePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_3_nistxml_sv_iv_list_ncname_pattern_4_1(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{50} [\i-[:]][\c-[:]]{47}
[\i-[:]][\c-[:]]{60} [\i-[:]][\c-[:]]{10} [\i-[:]][\c-[:]]{0}
[\i-[:]][\c-[:]]{17} [\i-[:]][\c-[:]]{45} [\i-[:]][\c-[:]]{50}
[\i-[:]][\c-[:]]{36}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-4-1.xml",
class_name="NistschemaSvIvListNcnamePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_3_nistxml_sv_iv_list_ncname_pattern_4_2(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{50} [\i-[:]][\c-[:]]{47}
[\i-[:]][\c-[:]]{60} [\i-[:]][\c-[:]]{10} [\i-[:]][\c-[:]]{0}
[\i-[:]][\c-[:]]{17} [\i-[:]][\c-[:]]{45} [\i-[:]][\c-[:]]{50}
[\i-[:]][\c-[:]]{36}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-4-2.xml",
class_name="NistschemaSvIvListNcnamePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_3_nistxml_sv_iv_list_ncname_pattern_4_3(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{50} [\i-[:]][\c-[:]]{47}
[\i-[:]][\c-[:]]{60} [\i-[:]][\c-[:]]{10} [\i-[:]][\c-[:]]{0}
[\i-[:]][\c-[:]]{17} [\i-[:]][\c-[:]]{45} [\i-[:]][\c-[:]]{50}
[\i-[:]][\c-[:]]{36}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-4-3.xml",
class_name="NistschemaSvIvListNcnamePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_3_nistxml_sv_iv_list_ncname_pattern_4_4(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{50} [\i-[:]][\c-[:]]{47}
[\i-[:]][\c-[:]]{60} [\i-[:]][\c-[:]]{10} [\i-[:]][\c-[:]]{0}
[\i-[:]][\c-[:]]{17} [\i-[:]][\c-[:]]{45} [\i-[:]][\c-[:]]{50}
[\i-[:]][\c-[:]]{36}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-4-4.xml",
class_name="NistschemaSvIvListNcnamePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_3_nistxml_sv_iv_list_ncname_pattern_4_5(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{50} [\i-[:]][\c-[:]]{47}
[\i-[:]][\c-[:]]{60} [\i-[:]][\c-[:]]{10} [\i-[:]][\c-[:]]{0}
[\i-[:]][\c-[:]]{17} [\i-[:]][\c-[:]]{45} [\i-[:]][\c-[:]]{50}
[\i-[:]][\c-[:]]{36}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-4-5.xml",
class_name="NistschemaSvIvListNcnamePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_2_nistxml_sv_iv_list_ncname_pattern_3_1(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{33} [\i-[:]][\c-[:]]{63} [\i-[:]][\c-[:]]{13}
[\i-[:]][\c-[:]]{35} [\i-[:]][\c-[:]]{29}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-3-1.xml",
class_name="NistschemaSvIvListNcnamePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_2_nistxml_sv_iv_list_ncname_pattern_3_2(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{33} [\i-[:]][\c-[:]]{63} [\i-[:]][\c-[:]]{13}
[\i-[:]][\c-[:]]{35} [\i-[:]][\c-[:]]{29}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-3-2.xml",
class_name="NistschemaSvIvListNcnamePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_2_nistxml_sv_iv_list_ncname_pattern_3_3(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{33} [\i-[:]][\c-[:]]{63} [\i-[:]][\c-[:]]{13}
[\i-[:]][\c-[:]]{35} [\i-[:]][\c-[:]]{29}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-3-3.xml",
class_name="NistschemaSvIvListNcnamePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_2_nistxml_sv_iv_list_ncname_pattern_3_4(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{33} [\i-[:]][\c-[:]]{63} [\i-[:]][\c-[:]]{13}
[\i-[:]][\c-[:]]{35} [\i-[:]][\c-[:]]{29}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-3-4.xml",
class_name="NistschemaSvIvListNcnamePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_2_nistxml_sv_iv_list_ncname_pattern_3_5(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{33} [\i-[:]][\c-[:]]{63} [\i-[:]][\c-[:]]{13}
[\i-[:]][\c-[:]]{35} [\i-[:]][\c-[:]]{29}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-3-5.xml",
class_name="NistschemaSvIvListNcnamePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_1_nistxml_sv_iv_list_ncname_pattern_2_1(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{7} [\i-[:]][\c-[:]]{35} [\i-[:]][\c-[:]]{46}
[\i-[:]][\c-[:]]{25} [\i-[:]][\c-[:]]{53} [\i-[:]][\c-[:]]{58}
[\i-[:]][\c-[:]]{11}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-2-1.xml",
class_name="NistschemaSvIvListNcnamePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_1_nistxml_sv_iv_list_ncname_pattern_2_2(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{7} [\i-[:]][\c-[:]]{35} [\i-[:]][\c-[:]]{46}
[\i-[:]][\c-[:]]{25} [\i-[:]][\c-[:]]{53} [\i-[:]][\c-[:]]{58}
[\i-[:]][\c-[:]]{11}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-2-2.xml",
class_name="NistschemaSvIvListNcnamePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_1_nistxml_sv_iv_list_ncname_pattern_2_3(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{7} [\i-[:]][\c-[:]]{35} [\i-[:]][\c-[:]]{46}
[\i-[:]][\c-[:]]{25} [\i-[:]][\c-[:]]{53} [\i-[:]][\c-[:]]{58}
[\i-[:]][\c-[:]]{11}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-2-3.xml",
class_name="NistschemaSvIvListNcnamePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_1_nistxml_sv_iv_list_ncname_pattern_2_4(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{7} [\i-[:]][\c-[:]]{35} [\i-[:]][\c-[:]]{46}
[\i-[:]][\c-[:]]{25} [\i-[:]][\c-[:]]{53} [\i-[:]][\c-[:]]{58}
[\i-[:]][\c-[:]]{11}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-2-4.xml",
class_name="NistschemaSvIvListNcnamePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_1_nistxml_sv_iv_list_ncname_pattern_2_5(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{7} [\i-[:]][\c-[:]]{35} [\i-[:]][\c-[:]]{46}
[\i-[:]][\c-[:]]{25} [\i-[:]][\c-[:]]{53} [\i-[:]][\c-[:]]{58}
[\i-[:]][\c-[:]]{11}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-2-5.xml",
class_name="NistschemaSvIvListNcnamePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_nistxml_sv_iv_list_ncname_pattern_1_1(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{39} [\i-[:]][\c-[:]]{15} [\i-[:]][\c-[:]]{23}
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{55} [\i-[:]][\c-[:]]{18}
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{1}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-1-1.xml",
class_name="NistschemaSvIvListNcnamePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_nistxml_sv_iv_list_ncname_pattern_1_2(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{39} [\i-[:]][\c-[:]]{15} [\i-[:]][\c-[:]]{23}
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{55} [\i-[:]][\c-[:]]{18}
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{1}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-1-2.xml",
class_name="NistschemaSvIvListNcnamePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_nistxml_sv_iv_list_ncname_pattern_1_3(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{39} [\i-[:]][\c-[:]]{15} [\i-[:]][\c-[:]]{23}
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{55} [\i-[:]][\c-[:]]{18}
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{1}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-1-3.xml",
class_name="NistschemaSvIvListNcnamePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_nistxml_sv_iv_list_ncname_pattern_1_4(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{39} [\i-[:]][\c-[:]]{15} [\i-[:]][\c-[:]]{23}
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{55} [\i-[:]][\c-[:]]{18}
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{1}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-1-4.xml",
class_name="NistschemaSvIvListNcnamePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_nistxml_sv_iv_list_ncname_pattern_1_5(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{39} [\i-[:]][\c-[:]]{15} [\i-[:]][\c-[:]]{23}
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{55} [\i-[:]][\c-[:]]{18}
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{1}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-1-5.xml",
class_name="NistschemaSvIvListNcnamePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_4_nistxml_sv_iv_list_ncname_length_5_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-5-1.xml",
class_name="NistschemaSvIvListNcnameLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_4_nistxml_sv_iv_list_ncname_length_5_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-5-2.xml",
class_name="NistschemaSvIvListNcnameLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_4_nistxml_sv_iv_list_ncname_length_5_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-5-3.xml",
class_name="NistschemaSvIvListNcnameLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_4_nistxml_sv_iv_list_ncname_length_5_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-5-4.xml",
class_name="NistschemaSvIvListNcnameLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_4_nistxml_sv_iv_list_ncname_length_5_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-5-5.xml",
class_name="NistschemaSvIvListNcnameLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_3_nistxml_sv_iv_list_ncname_length_4_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-4-1.xml",
class_name="NistschemaSvIvListNcnameLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_3_nistxml_sv_iv_list_ncname_length_4_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-4-2.xml",
class_name="NistschemaSvIvListNcnameLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_3_nistxml_sv_iv_list_ncname_length_4_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-4-3.xml",
class_name="NistschemaSvIvListNcnameLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_3_nistxml_sv_iv_list_ncname_length_4_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-4-4.xml",
class_name="NistschemaSvIvListNcnameLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_3_nistxml_sv_iv_list_ncname_length_4_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-4-5.xml",
class_name="NistschemaSvIvListNcnameLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_2_nistxml_sv_iv_list_ncname_length_3_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-3-1.xml",
class_name="NistschemaSvIvListNcnameLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_2_nistxml_sv_iv_list_ncname_length_3_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-3-2.xml",
class_name="NistschemaSvIvListNcnameLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_2_nistxml_sv_iv_list_ncname_length_3_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-3-3.xml",
class_name="NistschemaSvIvListNcnameLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_2_nistxml_sv_iv_list_ncname_length_3_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-3-4.xml",
class_name="NistschemaSvIvListNcnameLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_2_nistxml_sv_iv_list_ncname_length_3_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-3-5.xml",
class_name="NistschemaSvIvListNcnameLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_1_nistxml_sv_iv_list_ncname_length_2_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-2-1.xml",
class_name="NistschemaSvIvListNcnameLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_1_nistxml_sv_iv_list_ncname_length_2_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-2-2.xml",
class_name="NistschemaSvIvListNcnameLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_1_nistxml_sv_iv_list_ncname_length_2_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-2-3.xml",
class_name="NistschemaSvIvListNcnameLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_1_nistxml_sv_iv_list_ncname_length_2_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-2-4.xml",
class_name="NistschemaSvIvListNcnameLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_1_nistxml_sv_iv_list_ncname_length_2_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-2-5.xml",
class_name="NistschemaSvIvListNcnameLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_nistxml_sv_iv_list_ncname_length_1_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-1-1.xml",
class_name="NistschemaSvIvListNcnameLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_nistxml_sv_iv_list_ncname_length_1_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-1-2.xml",
class_name="NistschemaSvIvListNcnameLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_nistxml_sv_iv_list_ncname_length_1_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-1-3.xml",
class_name="NistschemaSvIvListNcnameLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_nistxml_sv_iv_list_ncname_length_1_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-1-4.xml",
class_name="NistschemaSvIvListNcnameLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_nistxml_sv_iv_list_ncname_length_1_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-1-5.xml",
class_name="NistschemaSvIvListNcnameLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_4_nistxml_sv_iv_list_ncname_min_length_5_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-5-1.xml",
class_name="NistschemaSvIvListNcnameMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_4_nistxml_sv_iv_list_ncname_min_length_5_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-5-2.xml",
class_name="NistschemaSvIvListNcnameMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_4_nistxml_sv_iv_list_ncname_min_length_5_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-5-3.xml",
class_name="NistschemaSvIvListNcnameMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_4_nistxml_sv_iv_list_ncname_min_length_5_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-5-4.xml",
class_name="NistschemaSvIvListNcnameMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_4_nistxml_sv_iv_list_ncname_min_length_5_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-5-5.xml",
class_name="NistschemaSvIvListNcnameMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_3_nistxml_sv_iv_list_ncname_min_length_4_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-4-1.xml",
class_name="NistschemaSvIvListNcnameMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_3_nistxml_sv_iv_list_ncname_min_length_4_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-4-2.xml",
class_name="NistschemaSvIvListNcnameMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_3_nistxml_sv_iv_list_ncname_min_length_4_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-4-3.xml",
class_name="NistschemaSvIvListNcnameMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_3_nistxml_sv_iv_list_ncname_min_length_4_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-4-4.xml",
class_name="NistschemaSvIvListNcnameMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_3_nistxml_sv_iv_list_ncname_min_length_4_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-4-5.xml",
class_name="NistschemaSvIvListNcnameMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_2_nistxml_sv_iv_list_ncname_min_length_3_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-3-1.xml",
class_name="NistschemaSvIvListNcnameMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_2_nistxml_sv_iv_list_ncname_min_length_3_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-3-2.xml",
class_name="NistschemaSvIvListNcnameMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_2_nistxml_sv_iv_list_ncname_min_length_3_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-3-3.xml",
class_name="NistschemaSvIvListNcnameMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_2_nistxml_sv_iv_list_ncname_min_length_3_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-3-4.xml",
class_name="NistschemaSvIvListNcnameMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_2_nistxml_sv_iv_list_ncname_min_length_3_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-3-5.xml",
class_name="NistschemaSvIvListNcnameMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_1_nistxml_sv_iv_list_ncname_min_length_2_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-2-1.xml",
class_name="NistschemaSvIvListNcnameMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_1_nistxml_sv_iv_list_ncname_min_length_2_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-2-2.xml",
class_name="NistschemaSvIvListNcnameMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_1_nistxml_sv_iv_list_ncname_min_length_2_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-2-3.xml",
class_name="NistschemaSvIvListNcnameMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_1_nistxml_sv_iv_list_ncname_min_length_2_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-2-4.xml",
class_name="NistschemaSvIvListNcnameMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_1_nistxml_sv_iv_list_ncname_min_length_2_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-2-5.xml",
class_name="NistschemaSvIvListNcnameMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_nistxml_sv_iv_list_ncname_min_length_1_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-1-1.xml",
class_name="NistschemaSvIvListNcnameMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_nistxml_sv_iv_list_ncname_min_length_1_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-1-2.xml",
class_name="NistschemaSvIvListNcnameMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_nistxml_sv_iv_list_ncname_min_length_1_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-1-3.xml",
class_name="NistschemaSvIvListNcnameMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_nistxml_sv_iv_list_ncname_min_length_1_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-1-4.xml",
class_name="NistschemaSvIvListNcnameMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_nistxml_sv_iv_list_ncname_min_length_1_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-1-5.xml",
class_name="NistschemaSvIvListNcnameMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_4_nistxml_sv_iv_list_ncname_max_length_5_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-5-1.xml",
class_name="NistschemaSvIvListNcnameMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_4_nistxml_sv_iv_list_ncname_max_length_5_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-5-2.xml",
class_name="NistschemaSvIvListNcnameMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_4_nistxml_sv_iv_list_ncname_max_length_5_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-5-3.xml",
class_name="NistschemaSvIvListNcnameMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_4_nistxml_sv_iv_list_ncname_max_length_5_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-5-4.xml",
class_name="NistschemaSvIvListNcnameMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_4_nistxml_sv_iv_list_ncname_max_length_5_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-5-5.xml",
class_name="NistschemaSvIvListNcnameMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_3_nistxml_sv_iv_list_ncname_max_length_4_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-4-1.xml",
class_name="NistschemaSvIvListNcnameMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_3_nistxml_sv_iv_list_ncname_max_length_4_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-4-2.xml",
class_name="NistschemaSvIvListNcnameMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_3_nistxml_sv_iv_list_ncname_max_length_4_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-4-3.xml",
class_name="NistschemaSvIvListNcnameMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_3_nistxml_sv_iv_list_ncname_max_length_4_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-4-4.xml",
class_name="NistschemaSvIvListNcnameMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_3_nistxml_sv_iv_list_ncname_max_length_4_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-4-5.xml",
class_name="NistschemaSvIvListNcnameMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_2_nistxml_sv_iv_list_ncname_max_length_3_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-3-1.xml",
class_name="NistschemaSvIvListNcnameMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_2_nistxml_sv_iv_list_ncname_max_length_3_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-3-2.xml",
class_name="NistschemaSvIvListNcnameMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_2_nistxml_sv_iv_list_ncname_max_length_3_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-3-3.xml",
class_name="NistschemaSvIvListNcnameMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_2_nistxml_sv_iv_list_ncname_max_length_3_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-3-4.xml",
class_name="NistschemaSvIvListNcnameMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_2_nistxml_sv_iv_list_ncname_max_length_3_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-3-5.xml",
class_name="NistschemaSvIvListNcnameMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_1_nistxml_sv_iv_list_ncname_max_length_2_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-2-1.xml",
class_name="NistschemaSvIvListNcnameMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_1_nistxml_sv_iv_list_ncname_max_length_2_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-2-2.xml",
class_name="NistschemaSvIvListNcnameMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_1_nistxml_sv_iv_list_ncname_max_length_2_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-2-3.xml",
class_name="NistschemaSvIvListNcnameMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_1_nistxml_sv_iv_list_ncname_max_length_2_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-2-4.xml",
class_name="NistschemaSvIvListNcnameMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_1_nistxml_sv_iv_list_ncname_max_length_2_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-2-5.xml",
class_name="NistschemaSvIvListNcnameMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_nistxml_sv_iv_list_ncname_max_length_1_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-1-1.xml",
class_name="NistschemaSvIvListNcnameMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_nistxml_sv_iv_list_ncname_max_length_1_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-1-2.xml",
class_name="NistschemaSvIvListNcnameMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_nistxml_sv_iv_list_ncname_max_length_1_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-1-3.xml",
class_name="NistschemaSvIvListNcnameMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_nistxml_sv_iv_list_ncname_max_length_1_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-1-4.xml",
class_name="NistschemaSvIvListNcnameMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_nistxml_sv_iv_list_ncname_max_length_1_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-1-5.xml",
class_name="NistschemaSvIvListNcnameMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_white_space_nistxml_sv_iv_list_nmtokens_white_space_1_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-whiteSpace-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-whiteSpace-1-1.xml",
class_name="NistschemaSvIvListNmtokensWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_white_space_nistxml_sv_iv_list_nmtokens_white_space_1_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-whiteSpace-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-whiteSpace-1-2.xml",
class_name="NistschemaSvIvListNmtokensWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_white_space_nistxml_sv_iv_list_nmtokens_white_space_1_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-whiteSpace-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-whiteSpace-1-3.xml",
class_name="NistschemaSvIvListNmtokensWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_white_space_nistxml_sv_iv_list_nmtokens_white_space_1_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-whiteSpace-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-whiteSpace-1-4.xml",
class_name="NistschemaSvIvListNmtokensWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_white_space_nistxml_sv_iv_list_nmtokens_white_space_1_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-whiteSpace-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-whiteSpace-1-5.xml",
class_name="NistschemaSvIvListNmtokensWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_4_nistxml_sv_iv_list_nmtokens_enumeration_5_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-5-1.xml",
class_name="NistschemaSvIvListNmtokensEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_4_nistxml_sv_iv_list_nmtokens_enumeration_5_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-5-2.xml",
class_name="NistschemaSvIvListNmtokensEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_4_nistxml_sv_iv_list_nmtokens_enumeration_5_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-5-3.xml",
class_name="NistschemaSvIvListNmtokensEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_4_nistxml_sv_iv_list_nmtokens_enumeration_5_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-5-4.xml",
class_name="NistschemaSvIvListNmtokensEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_4_nistxml_sv_iv_list_nmtokens_enumeration_5_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-5-5.xml",
class_name="NistschemaSvIvListNmtokensEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_3_nistxml_sv_iv_list_nmtokens_enumeration_4_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-4-1.xml",
class_name="NistschemaSvIvListNmtokensEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_3_nistxml_sv_iv_list_nmtokens_enumeration_4_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-4-2.xml",
class_name="NistschemaSvIvListNmtokensEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_3_nistxml_sv_iv_list_nmtokens_enumeration_4_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-4-3.xml",
class_name="NistschemaSvIvListNmtokensEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_3_nistxml_sv_iv_list_nmtokens_enumeration_4_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-4-4.xml",
class_name="NistschemaSvIvListNmtokensEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_3_nistxml_sv_iv_list_nmtokens_enumeration_4_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-4-5.xml",
class_name="NistschemaSvIvListNmtokensEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_2_nistxml_sv_iv_list_nmtokens_enumeration_3_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-3-1.xml",
class_name="NistschemaSvIvListNmtokensEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_2_nistxml_sv_iv_list_nmtokens_enumeration_3_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-3-2.xml",
class_name="NistschemaSvIvListNmtokensEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_2_nistxml_sv_iv_list_nmtokens_enumeration_3_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-3-3.xml",
class_name="NistschemaSvIvListNmtokensEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_2_nistxml_sv_iv_list_nmtokens_enumeration_3_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-3-4.xml",
class_name="NistschemaSvIvListNmtokensEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_2_nistxml_sv_iv_list_nmtokens_enumeration_3_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-3-5.xml",
class_name="NistschemaSvIvListNmtokensEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_1_nistxml_sv_iv_list_nmtokens_enumeration_2_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-2-1.xml",
class_name="NistschemaSvIvListNmtokensEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_1_nistxml_sv_iv_list_nmtokens_enumeration_2_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-2-2.xml",
class_name="NistschemaSvIvListNmtokensEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_1_nistxml_sv_iv_list_nmtokens_enumeration_2_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-2-3.xml",
class_name="NistschemaSvIvListNmtokensEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_1_nistxml_sv_iv_list_nmtokens_enumeration_2_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-2-4.xml",
class_name="NistschemaSvIvListNmtokensEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_1_nistxml_sv_iv_list_nmtokens_enumeration_2_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-2-5.xml",
class_name="NistschemaSvIvListNmtokensEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_nistxml_sv_iv_list_nmtokens_enumeration_1_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-1-1.xml",
class_name="NistschemaSvIvListNmtokensEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_nistxml_sv_iv_list_nmtokens_enumeration_1_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-1-2.xml",
class_name="NistschemaSvIvListNmtokensEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_nistxml_sv_iv_list_nmtokens_enumeration_1_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-1-3.xml",
class_name="NistschemaSvIvListNmtokensEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_nistxml_sv_iv_list_nmtokens_enumeration_1_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-1-4.xml",
class_name="NistschemaSvIvListNmtokensEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_nistxml_sv_iv_list_nmtokens_enumeration_1_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-1-5.xml",
class_name="NistschemaSvIvListNmtokensEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_4_nistxml_sv_iv_list_nmtokens_pattern_5_1(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{44}
\c{22} \c{22} \c{56} \c{18} \c{15} \c{5} \c{38}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-5-1.xml",
class_name="NistschemaSvIvListNmtokensPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_4_nistxml_sv_iv_list_nmtokens_pattern_5_2(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{44}
\c{22} \c{22} \c{56} \c{18} \c{15} \c{5} \c{38}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-5-2.xml",
class_name="NistschemaSvIvListNmtokensPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_4_nistxml_sv_iv_list_nmtokens_pattern_5_3(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{44}
\c{22} \c{22} \c{56} \c{18} \c{15} \c{5} \c{38}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-5-3.xml",
class_name="NistschemaSvIvListNmtokensPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_4_nistxml_sv_iv_list_nmtokens_pattern_5_4(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{44}
\c{22} \c{22} \c{56} \c{18} \c{15} \c{5} \c{38}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-5-4.xml",
class_name="NistschemaSvIvListNmtokensPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_4_nistxml_sv_iv_list_nmtokens_pattern_5_5(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{44}
\c{22} \c{22} \c{56} \c{18} \c{15} \c{5} \c{38}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-5-5.xml",
class_name="NistschemaSvIvListNmtokensPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_3_nistxml_sv_iv_list_nmtokens_pattern_4_1(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{29}
\c{7} \c{23} \c{2} \c{63} \c{24} \c{34} \c{59}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-4-1.xml",
class_name="NistschemaSvIvListNmtokensPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_3_nistxml_sv_iv_list_nmtokens_pattern_4_2(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{29}
\c{7} \c{23} \c{2} \c{63} \c{24} \c{34} \c{59}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-4-2.xml",
class_name="NistschemaSvIvListNmtokensPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_3_nistxml_sv_iv_list_nmtokens_pattern_4_3(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{29}
\c{7} \c{23} \c{2} \c{63} \c{24} \c{34} \c{59}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-4-3.xml",
class_name="NistschemaSvIvListNmtokensPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_3_nistxml_sv_iv_list_nmtokens_pattern_4_4(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{29}
\c{7} \c{23} \c{2} \c{63} \c{24} \c{34} \c{59}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-4-4.xml",
class_name="NistschemaSvIvListNmtokensPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_3_nistxml_sv_iv_list_nmtokens_pattern_4_5(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{29}
\c{7} \c{23} \c{2} \c{63} \c{24} \c{34} \c{59}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-4-5.xml",
class_name="NistschemaSvIvListNmtokensPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_2_nistxml_sv_iv_list_nmtokens_pattern_3_1(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{20}
\c{48} \c{3} \c{54} \c{13} \c{29} \c{5}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-3-1.xml",
class_name="NistschemaSvIvListNmtokensPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_2_nistxml_sv_iv_list_nmtokens_pattern_3_2(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{20}
\c{48} \c{3} \c{54} \c{13} \c{29} \c{5}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-3-2.xml",
class_name="NistschemaSvIvListNmtokensPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_2_nistxml_sv_iv_list_nmtokens_pattern_3_3(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{20}
\c{48} \c{3} \c{54} \c{13} \c{29} \c{5}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-3-3.xml",
class_name="NistschemaSvIvListNmtokensPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_2_nistxml_sv_iv_list_nmtokens_pattern_3_4(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{20}
\c{48} \c{3} \c{54} \c{13} \c{29} \c{5}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-3-4.xml",
class_name="NistschemaSvIvListNmtokensPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_2_nistxml_sv_iv_list_nmtokens_pattern_3_5(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{20}
\c{48} \c{3} \c{54} \c{13} \c{29} \c{5}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-3-5.xml",
class_name="NistschemaSvIvListNmtokensPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_1_nistxml_sv_iv_list_nmtokens_pattern_2_1(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{64}
\c{61} \c{8} \c{25} \c{14} \c{53} \c{12} \c{20}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-2-1.xml",
class_name="NistschemaSvIvListNmtokensPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_1_nistxml_sv_iv_list_nmtokens_pattern_2_2(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{64}
\c{61} \c{8} \c{25} \c{14} \c{53} \c{12} \c{20}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-2-2.xml",
class_name="NistschemaSvIvListNmtokensPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_1_nistxml_sv_iv_list_nmtokens_pattern_2_3(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{64}
\c{61} \c{8} \c{25} \c{14} \c{53} \c{12} \c{20}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-2-3.xml",
class_name="NistschemaSvIvListNmtokensPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_1_nistxml_sv_iv_list_nmtokens_pattern_2_4(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{64}
\c{61} \c{8} \c{25} \c{14} \c{53} \c{12} \c{20}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-2-4.xml",
class_name="NistschemaSvIvListNmtokensPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_1_nistxml_sv_iv_list_nmtokens_pattern_2_5(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{64}
\c{61} \c{8} \c{25} \c{14} \c{53} \c{12} \c{20}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-2-5.xml",
class_name="NistschemaSvIvListNmtokensPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_nistxml_sv_iv_list_nmtokens_pattern_1_1(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{16}
\c{9} \c{44} \c{34} \c{46} \c{6}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-1-1.xml",
class_name="NistschemaSvIvListNmtokensPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_nistxml_sv_iv_list_nmtokens_pattern_1_2(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{16}
\c{9} \c{44} \c{34} \c{46} \c{6}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-1-2.xml",
class_name="NistschemaSvIvListNmtokensPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_nistxml_sv_iv_list_nmtokens_pattern_1_3(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{16}
\c{9} \c{44} \c{34} \c{46} \c{6}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-1-3.xml",
class_name="NistschemaSvIvListNmtokensPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_nistxml_sv_iv_list_nmtokens_pattern_1_4(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{16}
\c{9} \c{44} \c{34} \c{46} \c{6}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-1-4.xml",
class_name="NistschemaSvIvListNmtokensPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_nistxml_sv_iv_list_nmtokens_pattern_1_5(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{16}
\c{9} \c{44} \c{34} \c{46} \c{6}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-1-5.xml",
class_name="NistschemaSvIvListNmtokensPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_4_nistxml_sv_iv_list_nmtokens_length_5_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-5-1.xml",
class_name="NistschemaSvIvListNmtokensLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_4_nistxml_sv_iv_list_nmtokens_length_5_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-5-2.xml",
class_name="NistschemaSvIvListNmtokensLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_4_nistxml_sv_iv_list_nmtokens_length_5_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-5-3.xml",
class_name="NistschemaSvIvListNmtokensLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_4_nistxml_sv_iv_list_nmtokens_length_5_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-5-4.xml",
class_name="NistschemaSvIvListNmtokensLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_4_nistxml_sv_iv_list_nmtokens_length_5_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-5-5.xml",
class_name="NistschemaSvIvListNmtokensLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_3_nistxml_sv_iv_list_nmtokens_length_4_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-4-1.xml",
class_name="NistschemaSvIvListNmtokensLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_3_nistxml_sv_iv_list_nmtokens_length_4_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-4-2.xml",
class_name="NistschemaSvIvListNmtokensLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_3_nistxml_sv_iv_list_nmtokens_length_4_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-4-3.xml",
class_name="NistschemaSvIvListNmtokensLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_3_nistxml_sv_iv_list_nmtokens_length_4_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-4-4.xml",
class_name="NistschemaSvIvListNmtokensLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_3_nistxml_sv_iv_list_nmtokens_length_4_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-4-5.xml",
class_name="NistschemaSvIvListNmtokensLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_2_nistxml_sv_iv_list_nmtokens_length_3_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-3-1.xml",
class_name="NistschemaSvIvListNmtokensLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_2_nistxml_sv_iv_list_nmtokens_length_3_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-3-2.xml",
class_name="NistschemaSvIvListNmtokensLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_2_nistxml_sv_iv_list_nmtokens_length_3_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-3-3.xml",
class_name="NistschemaSvIvListNmtokensLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_2_nistxml_sv_iv_list_nmtokens_length_3_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-3-4.xml",
class_name="NistschemaSvIvListNmtokensLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_2_nistxml_sv_iv_list_nmtokens_length_3_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-3-5.xml",
class_name="NistschemaSvIvListNmtokensLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_1_nistxml_sv_iv_list_nmtokens_length_2_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-2-1.xml",
class_name="NistschemaSvIvListNmtokensLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_1_nistxml_sv_iv_list_nmtokens_length_2_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-2-2.xml",
class_name="NistschemaSvIvListNmtokensLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_1_nistxml_sv_iv_list_nmtokens_length_2_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-2-3.xml",
class_name="NistschemaSvIvListNmtokensLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_1_nistxml_sv_iv_list_nmtokens_length_2_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-2-4.xml",
class_name="NistschemaSvIvListNmtokensLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_1_nistxml_sv_iv_list_nmtokens_length_2_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-2-5.xml",
class_name="NistschemaSvIvListNmtokensLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_nistxml_sv_iv_list_nmtokens_length_1_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-1-1.xml",
class_name="NistschemaSvIvListNmtokensLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_nistxml_sv_iv_list_nmtokens_length_1_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-1-2.xml",
class_name="NistschemaSvIvListNmtokensLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_nistxml_sv_iv_list_nmtokens_length_1_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-1-3.xml",
class_name="NistschemaSvIvListNmtokensLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_nistxml_sv_iv_list_nmtokens_length_1_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-1-4.xml",
class_name="NistschemaSvIvListNmtokensLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_nistxml_sv_iv_list_nmtokens_length_1_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-1-5.xml",
class_name="NistschemaSvIvListNmtokensLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_4_nistxml_sv_iv_list_nmtokens_min_length_5_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-5-1.xml",
class_name="NistschemaSvIvListNmtokensMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_4_nistxml_sv_iv_list_nmtokens_min_length_5_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-5-2.xml",
class_name="NistschemaSvIvListNmtokensMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_4_nistxml_sv_iv_list_nmtokens_min_length_5_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-5-3.xml",
class_name="NistschemaSvIvListNmtokensMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_4_nistxml_sv_iv_list_nmtokens_min_length_5_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-5-4.xml",
class_name="NistschemaSvIvListNmtokensMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_4_nistxml_sv_iv_list_nmtokens_min_length_5_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-5-5.xml",
class_name="NistschemaSvIvListNmtokensMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_3_nistxml_sv_iv_list_nmtokens_min_length_4_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-4-1.xml",
class_name="NistschemaSvIvListNmtokensMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_3_nistxml_sv_iv_list_nmtokens_min_length_4_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-4-2.xml",
class_name="NistschemaSvIvListNmtokensMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_3_nistxml_sv_iv_list_nmtokens_min_length_4_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-4-3.xml",
class_name="NistschemaSvIvListNmtokensMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_3_nistxml_sv_iv_list_nmtokens_min_length_4_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-4-4.xml",
class_name="NistschemaSvIvListNmtokensMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_3_nistxml_sv_iv_list_nmtokens_min_length_4_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-4-5.xml",
class_name="NistschemaSvIvListNmtokensMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_2_nistxml_sv_iv_list_nmtokens_min_length_3_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-3-1.xml",
class_name="NistschemaSvIvListNmtokensMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_2_nistxml_sv_iv_list_nmtokens_min_length_3_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-3-2.xml",
class_name="NistschemaSvIvListNmtokensMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_2_nistxml_sv_iv_list_nmtokens_min_length_3_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-3-3.xml",
class_name="NistschemaSvIvListNmtokensMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_2_nistxml_sv_iv_list_nmtokens_min_length_3_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-3-4.xml",
class_name="NistschemaSvIvListNmtokensMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_2_nistxml_sv_iv_list_nmtokens_min_length_3_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-3-5.xml",
class_name="NistschemaSvIvListNmtokensMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_1_nistxml_sv_iv_list_nmtokens_min_length_2_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-2-1.xml",
class_name="NistschemaSvIvListNmtokensMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_1_nistxml_sv_iv_list_nmtokens_min_length_2_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-2-2.xml",
class_name="NistschemaSvIvListNmtokensMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_1_nistxml_sv_iv_list_nmtokens_min_length_2_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-2-3.xml",
class_name="NistschemaSvIvListNmtokensMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_1_nistxml_sv_iv_list_nmtokens_min_length_2_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-2-4.xml",
class_name="NistschemaSvIvListNmtokensMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_1_nistxml_sv_iv_list_nmtokens_min_length_2_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-2-5.xml",
class_name="NistschemaSvIvListNmtokensMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_nistxml_sv_iv_list_nmtokens_min_length_1_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-1-1.xml",
class_name="NistschemaSvIvListNmtokensMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_nistxml_sv_iv_list_nmtokens_min_length_1_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-1-2.xml",
class_name="NistschemaSvIvListNmtokensMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_nistxml_sv_iv_list_nmtokens_min_length_1_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-1-3.xml",
class_name="NistschemaSvIvListNmtokensMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_nistxml_sv_iv_list_nmtokens_min_length_1_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-1-4.xml",
class_name="NistschemaSvIvListNmtokensMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_nistxml_sv_iv_list_nmtokens_min_length_1_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-1-5.xml",
class_name="NistschemaSvIvListNmtokensMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_4_nistxml_sv_iv_list_nmtokens_max_length_5_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-5-1.xml",
class_name="NistschemaSvIvListNmtokensMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_4_nistxml_sv_iv_list_nmtokens_max_length_5_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-5-2.xml",
class_name="NistschemaSvIvListNmtokensMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_4_nistxml_sv_iv_list_nmtokens_max_length_5_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-5-3.xml",
class_name="NistschemaSvIvListNmtokensMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_4_nistxml_sv_iv_list_nmtokens_max_length_5_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-5-4.xml",
class_name="NistschemaSvIvListNmtokensMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_4_nistxml_sv_iv_list_nmtokens_max_length_5_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-5-5.xml",
class_name="NistschemaSvIvListNmtokensMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_3_nistxml_sv_iv_list_nmtokens_max_length_4_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-4-1.xml",
class_name="NistschemaSvIvListNmtokensMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_3_nistxml_sv_iv_list_nmtokens_max_length_4_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-4-2.xml",
class_name="NistschemaSvIvListNmtokensMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_3_nistxml_sv_iv_list_nmtokens_max_length_4_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-4-3.xml",
class_name="NistschemaSvIvListNmtokensMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_3_nistxml_sv_iv_list_nmtokens_max_length_4_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-4-4.xml",
class_name="NistschemaSvIvListNmtokensMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_3_nistxml_sv_iv_list_nmtokens_max_length_4_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-4-5.xml",
class_name="NistschemaSvIvListNmtokensMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_2_nistxml_sv_iv_list_nmtokens_max_length_3_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-3-1.xml",
class_name="NistschemaSvIvListNmtokensMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_2_nistxml_sv_iv_list_nmtokens_max_length_3_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-3-2.xml",
class_name="NistschemaSvIvListNmtokensMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_2_nistxml_sv_iv_list_nmtokens_max_length_3_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-3-3.xml",
class_name="NistschemaSvIvListNmtokensMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_2_nistxml_sv_iv_list_nmtokens_max_length_3_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-3-4.xml",
class_name="NistschemaSvIvListNmtokensMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_2_nistxml_sv_iv_list_nmtokens_max_length_3_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-3-5.xml",
class_name="NistschemaSvIvListNmtokensMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_1_nistxml_sv_iv_list_nmtokens_max_length_2_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-2-1.xml",
class_name="NistschemaSvIvListNmtokensMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_1_nistxml_sv_iv_list_nmtokens_max_length_2_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-2-2.xml",
class_name="NistschemaSvIvListNmtokensMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_1_nistxml_sv_iv_list_nmtokens_max_length_2_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-2-3.xml",
class_name="NistschemaSvIvListNmtokensMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_1_nistxml_sv_iv_list_nmtokens_max_length_2_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-2-4.xml",
class_name="NistschemaSvIvListNmtokensMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_1_nistxml_sv_iv_list_nmtokens_max_length_2_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-2-5.xml",
class_name="NistschemaSvIvListNmtokensMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_nistxml_sv_iv_list_nmtokens_max_length_1_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-1-1.xml",
class_name="NistschemaSvIvListNmtokensMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_nistxml_sv_iv_list_nmtokens_max_length_1_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-1-2.xml",
class_name="NistschemaSvIvListNmtokensMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_nistxml_sv_iv_list_nmtokens_max_length_1_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-1-3.xml",
class_name="NistschemaSvIvListNmtokensMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_nistxml_sv_iv_list_nmtokens_max_length_1_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-1-4.xml",
class_name="NistschemaSvIvListNmtokensMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_nistxml_sv_iv_list_nmtokens_max_length_1_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-1-5.xml",
class_name="NistschemaSvIvListNmtokensMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_white_space_nistxml_sv_iv_list_nmtoken_white_space_1_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-whiteSpace-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-whiteSpace-1-1.xml",
class_name="NistschemaSvIvListNmtokenWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_white_space_nistxml_sv_iv_list_nmtoken_white_space_1_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-whiteSpace-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-whiteSpace-1-2.xml",
class_name="NistschemaSvIvListNmtokenWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_white_space_nistxml_sv_iv_list_nmtoken_white_space_1_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-whiteSpace-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-whiteSpace-1-3.xml",
class_name="NistschemaSvIvListNmtokenWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_white_space_nistxml_sv_iv_list_nmtoken_white_space_1_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-whiteSpace-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-whiteSpace-1-4.xml",
class_name="NistschemaSvIvListNmtokenWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_white_space_nistxml_sv_iv_list_nmtoken_white_space_1_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-whiteSpace-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-whiteSpace-1-5.xml",
class_name="NistschemaSvIvListNmtokenWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_4_nistxml_sv_iv_list_nmtoken_enumeration_5_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-5-1.xml",
class_name="NistschemaSvIvListNmtokenEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_4_nistxml_sv_iv_list_nmtoken_enumeration_5_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-5-2.xml",
class_name="NistschemaSvIvListNmtokenEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_4_nistxml_sv_iv_list_nmtoken_enumeration_5_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-5-3.xml",
class_name="NistschemaSvIvListNmtokenEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_4_nistxml_sv_iv_list_nmtoken_enumeration_5_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-5-4.xml",
class_name="NistschemaSvIvListNmtokenEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_4_nistxml_sv_iv_list_nmtoken_enumeration_5_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-5-5.xml",
class_name="NistschemaSvIvListNmtokenEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_3_nistxml_sv_iv_list_nmtoken_enumeration_4_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-4-1.xml",
class_name="NistschemaSvIvListNmtokenEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_3_nistxml_sv_iv_list_nmtoken_enumeration_4_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-4-2.xml",
class_name="NistschemaSvIvListNmtokenEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_3_nistxml_sv_iv_list_nmtoken_enumeration_4_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-4-3.xml",
class_name="NistschemaSvIvListNmtokenEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_3_nistxml_sv_iv_list_nmtoken_enumeration_4_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-4-4.xml",
class_name="NistschemaSvIvListNmtokenEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_3_nistxml_sv_iv_list_nmtoken_enumeration_4_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-4-5.xml",
class_name="NistschemaSvIvListNmtokenEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_2_nistxml_sv_iv_list_nmtoken_enumeration_3_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-3-1.xml",
class_name="NistschemaSvIvListNmtokenEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_2_nistxml_sv_iv_list_nmtoken_enumeration_3_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-3-2.xml",
class_name="NistschemaSvIvListNmtokenEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_2_nistxml_sv_iv_list_nmtoken_enumeration_3_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-3-3.xml",
class_name="NistschemaSvIvListNmtokenEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_2_nistxml_sv_iv_list_nmtoken_enumeration_3_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-3-4.xml",
class_name="NistschemaSvIvListNmtokenEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_2_nistxml_sv_iv_list_nmtoken_enumeration_3_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-3-5.xml",
class_name="NistschemaSvIvListNmtokenEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_1_nistxml_sv_iv_list_nmtoken_enumeration_2_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-2-1.xml",
class_name="NistschemaSvIvListNmtokenEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_1_nistxml_sv_iv_list_nmtoken_enumeration_2_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-2-2.xml",
class_name="NistschemaSvIvListNmtokenEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_1_nistxml_sv_iv_list_nmtoken_enumeration_2_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-2-3.xml",
class_name="NistschemaSvIvListNmtokenEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_1_nistxml_sv_iv_list_nmtoken_enumeration_2_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-2-4.xml",
class_name="NistschemaSvIvListNmtokenEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_1_nistxml_sv_iv_list_nmtoken_enumeration_2_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-2-5.xml",
class_name="NistschemaSvIvListNmtokenEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_nistxml_sv_iv_list_nmtoken_enumeration_1_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-1-1.xml",
class_name="NistschemaSvIvListNmtokenEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_nistxml_sv_iv_list_nmtoken_enumeration_1_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-1-2.xml",
class_name="NistschemaSvIvListNmtokenEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_nistxml_sv_iv_list_nmtoken_enumeration_1_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-1-3.xml",
class_name="NistschemaSvIvListNmtokenEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_nistxml_sv_iv_list_nmtoken_enumeration_1_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-1-4.xml",
class_name="NistschemaSvIvListNmtokenEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_nistxml_sv_iv_list_nmtoken_enumeration_1_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-1-5.xml",
class_name="NistschemaSvIvListNmtokenEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_4_nistxml_sv_iv_list_nmtoken_pattern_5_1(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{45}
\c{5} \c{56} \c{45} \c{33} \c{37} \c{45} \c{40}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-5-1.xml",
class_name="NistschemaSvIvListNmtokenPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_4_nistxml_sv_iv_list_nmtoken_pattern_5_2(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{45}
\c{5} \c{56} \c{45} \c{33} \c{37} \c{45} \c{40}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-5-2.xml",
class_name="NistschemaSvIvListNmtokenPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_4_nistxml_sv_iv_list_nmtoken_pattern_5_3(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{45}
\c{5} \c{56} \c{45} \c{33} \c{37} \c{45} \c{40}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-5-3.xml",
class_name="NistschemaSvIvListNmtokenPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_4_nistxml_sv_iv_list_nmtoken_pattern_5_4(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{45}
\c{5} \c{56} \c{45} \c{33} \c{37} \c{45} \c{40}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-5-4.xml",
class_name="NistschemaSvIvListNmtokenPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_4_nistxml_sv_iv_list_nmtoken_pattern_5_5(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{45}
\c{5} \c{56} \c{45} \c{33} \c{37} \c{45} \c{40}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-5-5.xml",
class_name="NistschemaSvIvListNmtokenPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_3_nistxml_sv_iv_list_nmtoken_pattern_4_1(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{35}
\c{8} \c{43} \c{19} \c{53} \c{18} \c{33} \c{59} \c{10} \c{41}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-4-1.xml",
class_name="NistschemaSvIvListNmtokenPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_3_nistxml_sv_iv_list_nmtoken_pattern_4_2(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{35}
\c{8} \c{43} \c{19} \c{53} \c{18} \c{33} \c{59} \c{10} \c{41}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-4-2.xml",
class_name="NistschemaSvIvListNmtokenPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_3_nistxml_sv_iv_list_nmtoken_pattern_4_3(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{35}
\c{8} \c{43} \c{19} \c{53} \c{18} \c{33} \c{59} \c{10} \c{41}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-4-3.xml",
class_name="NistschemaSvIvListNmtokenPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_3_nistxml_sv_iv_list_nmtoken_pattern_4_4(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{35}
\c{8} \c{43} \c{19} \c{53} \c{18} \c{33} \c{59} \c{10} \c{41}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-4-4.xml",
class_name="NistschemaSvIvListNmtokenPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_3_nistxml_sv_iv_list_nmtoken_pattern_4_5(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{35}
\c{8} \c{43} \c{19} \c{53} \c{18} \c{33} \c{59} \c{10} \c{41}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-4-5.xml",
class_name="NistschemaSvIvListNmtokenPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_2_nistxml_sv_iv_list_nmtoken_pattern_3_1(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{1}
\c{36} \c{63} \c{7} \c{26} \c{11} \c{55} \c{29}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-3-1.xml",
class_name="NistschemaSvIvListNmtokenPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_2_nistxml_sv_iv_list_nmtoken_pattern_3_2(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{1}
\c{36} \c{63} \c{7} \c{26} \c{11} \c{55} \c{29}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-3-2.xml",
class_name="NistschemaSvIvListNmtokenPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_2_nistxml_sv_iv_list_nmtoken_pattern_3_3(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{1}
\c{36} \c{63} \c{7} \c{26} \c{11} \c{55} \c{29}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-3-3.xml",
class_name="NistschemaSvIvListNmtokenPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_2_nistxml_sv_iv_list_nmtoken_pattern_3_4(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{1}
\c{36} \c{63} \c{7} \c{26} \c{11} \c{55} \c{29}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-3-4.xml",
class_name="NistschemaSvIvListNmtokenPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_2_nistxml_sv_iv_list_nmtoken_pattern_3_5(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{1}
\c{36} \c{63} \c{7} \c{26} \c{11} \c{55} \c{29}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-3-5.xml",
class_name="NistschemaSvIvListNmtokenPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_1_nistxml_sv_iv_list_nmtoken_pattern_2_1(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{20}
\c{60} \c{47} \c{22} \c{42} \c{14}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-2-1.xml",
class_name="NistschemaSvIvListNmtokenPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_1_nistxml_sv_iv_list_nmtoken_pattern_2_2(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{20}
\c{60} \c{47} \c{22} \c{42} \c{14}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-2-2.xml",
class_name="NistschemaSvIvListNmtokenPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_1_nistxml_sv_iv_list_nmtoken_pattern_2_3(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{20}
\c{60} \c{47} \c{22} \c{42} \c{14}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-2-3.xml",
class_name="NistschemaSvIvListNmtokenPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_1_nistxml_sv_iv_list_nmtoken_pattern_2_4(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{20}
\c{60} \c{47} \c{22} \c{42} \c{14}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-2-4.xml",
class_name="NistschemaSvIvListNmtokenPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_1_nistxml_sv_iv_list_nmtoken_pattern_2_5(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{20}
\c{60} \c{47} \c{22} \c{42} \c{14}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-2-5.xml",
class_name="NistschemaSvIvListNmtokenPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_nistxml_sv_iv_list_nmtoken_pattern_1_1(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{40}
\c{21} \c{50} \c{36} \c{35} \c{42} \c{54} \c{48}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-1-1.xml",
class_name="NistschemaSvIvListNmtokenPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_nistxml_sv_iv_list_nmtoken_pattern_1_2(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{40}
\c{21} \c{50} \c{36} \c{35} \c{42} \c{54} \c{48}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-1-2.xml",
class_name="NistschemaSvIvListNmtokenPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_nistxml_sv_iv_list_nmtoken_pattern_1_3(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{40}
\c{21} \c{50} \c{36} \c{35} \c{42} \c{54} \c{48}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-1-3.xml",
class_name="NistschemaSvIvListNmtokenPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_nistxml_sv_iv_list_nmtoken_pattern_1_4(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{40}
\c{21} \c{50} \c{36} \c{35} \c{42} \c{54} \c{48}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-1-4.xml",
class_name="NistschemaSvIvListNmtokenPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_nistxml_sv_iv_list_nmtoken_pattern_1_5(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{40}
\c{21} \c{50} \c{36} \c{35} \c{42} \c{54} \c{48}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-1-5.xml",
class_name="NistschemaSvIvListNmtokenPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_4_nistxml_sv_iv_list_nmtoken_length_5_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-5-1.xml",
class_name="NistschemaSvIvListNmtokenLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_4_nistxml_sv_iv_list_nmtoken_length_5_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-5-2.xml",
class_name="NistschemaSvIvListNmtokenLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_4_nistxml_sv_iv_list_nmtoken_length_5_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-5-3.xml",
class_name="NistschemaSvIvListNmtokenLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_4_nistxml_sv_iv_list_nmtoken_length_5_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-5-4.xml",
class_name="NistschemaSvIvListNmtokenLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_4_nistxml_sv_iv_list_nmtoken_length_5_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-5-5.xml",
class_name="NistschemaSvIvListNmtokenLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_3_nistxml_sv_iv_list_nmtoken_length_4_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-4-1.xml",
class_name="NistschemaSvIvListNmtokenLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_3_nistxml_sv_iv_list_nmtoken_length_4_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-4-2.xml",
class_name="NistschemaSvIvListNmtokenLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_3_nistxml_sv_iv_list_nmtoken_length_4_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-4-3.xml",
class_name="NistschemaSvIvListNmtokenLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_3_nistxml_sv_iv_list_nmtoken_length_4_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-4-4.xml",
class_name="NistschemaSvIvListNmtokenLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_3_nistxml_sv_iv_list_nmtoken_length_4_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-4-5.xml",
class_name="NistschemaSvIvListNmtokenLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_2_nistxml_sv_iv_list_nmtoken_length_3_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-3-1.xml",
class_name="NistschemaSvIvListNmtokenLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_2_nistxml_sv_iv_list_nmtoken_length_3_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-3-2.xml",
class_name="NistschemaSvIvListNmtokenLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_2_nistxml_sv_iv_list_nmtoken_length_3_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-3-3.xml",
class_name="NistschemaSvIvListNmtokenLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_2_nistxml_sv_iv_list_nmtoken_length_3_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-3-4.xml",
class_name="NistschemaSvIvListNmtokenLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_2_nistxml_sv_iv_list_nmtoken_length_3_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-3-5.xml",
class_name="NistschemaSvIvListNmtokenLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_1_nistxml_sv_iv_list_nmtoken_length_2_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-2-1.xml",
class_name="NistschemaSvIvListNmtokenLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_1_nistxml_sv_iv_list_nmtoken_length_2_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-2-2.xml",
class_name="NistschemaSvIvListNmtokenLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_1_nistxml_sv_iv_list_nmtoken_length_2_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-2-3.xml",
class_name="NistschemaSvIvListNmtokenLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_1_nistxml_sv_iv_list_nmtoken_length_2_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-2-4.xml",
class_name="NistschemaSvIvListNmtokenLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_1_nistxml_sv_iv_list_nmtoken_length_2_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-2-5.xml",
class_name="NistschemaSvIvListNmtokenLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_nistxml_sv_iv_list_nmtoken_length_1_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-1-1.xml",
class_name="NistschemaSvIvListNmtokenLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_nistxml_sv_iv_list_nmtoken_length_1_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-1-2.xml",
class_name="NistschemaSvIvListNmtokenLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_nistxml_sv_iv_list_nmtoken_length_1_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-1-3.xml",
class_name="NistschemaSvIvListNmtokenLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_nistxml_sv_iv_list_nmtoken_length_1_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-1-4.xml",
class_name="NistschemaSvIvListNmtokenLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_nistxml_sv_iv_list_nmtoken_length_1_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-1-5.xml",
class_name="NistschemaSvIvListNmtokenLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_4_nistxml_sv_iv_list_nmtoken_min_length_5_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-5-1.xml",
class_name="NistschemaSvIvListNmtokenMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_4_nistxml_sv_iv_list_nmtoken_min_length_5_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-5-2.xml",
class_name="NistschemaSvIvListNmtokenMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_4_nistxml_sv_iv_list_nmtoken_min_length_5_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-5-3.xml",
class_name="NistschemaSvIvListNmtokenMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_4_nistxml_sv_iv_list_nmtoken_min_length_5_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-5-4.xml",
class_name="NistschemaSvIvListNmtokenMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_4_nistxml_sv_iv_list_nmtoken_min_length_5_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-5-5.xml",
class_name="NistschemaSvIvListNmtokenMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_3_nistxml_sv_iv_list_nmtoken_min_length_4_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-4-1.xml",
class_name="NistschemaSvIvListNmtokenMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_3_nistxml_sv_iv_list_nmtoken_min_length_4_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-4-2.xml",
class_name="NistschemaSvIvListNmtokenMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_3_nistxml_sv_iv_list_nmtoken_min_length_4_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-4-3.xml",
class_name="NistschemaSvIvListNmtokenMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_3_nistxml_sv_iv_list_nmtoken_min_length_4_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-4-4.xml",
class_name="NistschemaSvIvListNmtokenMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_3_nistxml_sv_iv_list_nmtoken_min_length_4_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-4-5.xml",
class_name="NistschemaSvIvListNmtokenMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_2_nistxml_sv_iv_list_nmtoken_min_length_3_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-3-1.xml",
class_name="NistschemaSvIvListNmtokenMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_2_nistxml_sv_iv_list_nmtoken_min_length_3_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-3-2.xml",
class_name="NistschemaSvIvListNmtokenMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_2_nistxml_sv_iv_list_nmtoken_min_length_3_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-3-3.xml",
class_name="NistschemaSvIvListNmtokenMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_2_nistxml_sv_iv_list_nmtoken_min_length_3_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-3-4.xml",
class_name="NistschemaSvIvListNmtokenMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_2_nistxml_sv_iv_list_nmtoken_min_length_3_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-3-5.xml",
class_name="NistschemaSvIvListNmtokenMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_1_nistxml_sv_iv_list_nmtoken_min_length_2_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-2-1.xml",
class_name="NistschemaSvIvListNmtokenMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_1_nistxml_sv_iv_list_nmtoken_min_length_2_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-2-2.xml",
class_name="NistschemaSvIvListNmtokenMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_1_nistxml_sv_iv_list_nmtoken_min_length_2_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-2-3.xml",
class_name="NistschemaSvIvListNmtokenMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_1_nistxml_sv_iv_list_nmtoken_min_length_2_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-2-4.xml",
class_name="NistschemaSvIvListNmtokenMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_1_nistxml_sv_iv_list_nmtoken_min_length_2_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-2-5.xml",
class_name="NistschemaSvIvListNmtokenMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_nistxml_sv_iv_list_nmtoken_min_length_1_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-1-1.xml",
class_name="NistschemaSvIvListNmtokenMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_nistxml_sv_iv_list_nmtoken_min_length_1_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-1-2.xml",
class_name="NistschemaSvIvListNmtokenMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_nistxml_sv_iv_list_nmtoken_min_length_1_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-1-3.xml",
class_name="NistschemaSvIvListNmtokenMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_nistxml_sv_iv_list_nmtoken_min_length_1_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-1-4.xml",
class_name="NistschemaSvIvListNmtokenMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_nistxml_sv_iv_list_nmtoken_min_length_1_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-1-5.xml",
class_name="NistschemaSvIvListNmtokenMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_4_nistxml_sv_iv_list_nmtoken_max_length_5_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-5-1.xml",
class_name="NistschemaSvIvListNmtokenMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_4_nistxml_sv_iv_list_nmtoken_max_length_5_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-5-2.xml",
class_name="NistschemaSvIvListNmtokenMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_4_nistxml_sv_iv_list_nmtoken_max_length_5_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-5-3.xml",
class_name="NistschemaSvIvListNmtokenMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_4_nistxml_sv_iv_list_nmtoken_max_length_5_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-5-4.xml",
class_name="NistschemaSvIvListNmtokenMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_4_nistxml_sv_iv_list_nmtoken_max_length_5_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-5-5.xml",
class_name="NistschemaSvIvListNmtokenMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_3_nistxml_sv_iv_list_nmtoken_max_length_4_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-4-1.xml",
class_name="NistschemaSvIvListNmtokenMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_3_nistxml_sv_iv_list_nmtoken_max_length_4_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-4-2.xml",
class_name="NistschemaSvIvListNmtokenMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_3_nistxml_sv_iv_list_nmtoken_max_length_4_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-4-3.xml",
class_name="NistschemaSvIvListNmtokenMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_3_nistxml_sv_iv_list_nmtoken_max_length_4_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-4-4.xml",
class_name="NistschemaSvIvListNmtokenMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_3_nistxml_sv_iv_list_nmtoken_max_length_4_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-4-5.xml",
class_name="NistschemaSvIvListNmtokenMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_2_nistxml_sv_iv_list_nmtoken_max_length_3_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-3-1.xml",
class_name="NistschemaSvIvListNmtokenMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_2_nistxml_sv_iv_list_nmtoken_max_length_3_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-3-2.xml",
class_name="NistschemaSvIvListNmtokenMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_2_nistxml_sv_iv_list_nmtoken_max_length_3_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-3-3.xml",
class_name="NistschemaSvIvListNmtokenMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_2_nistxml_sv_iv_list_nmtoken_max_length_3_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-3-4.xml",
class_name="NistschemaSvIvListNmtokenMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_2_nistxml_sv_iv_list_nmtoken_max_length_3_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-3-5.xml",
class_name="NistschemaSvIvListNmtokenMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_1_nistxml_sv_iv_list_nmtoken_max_length_2_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-2-1.xml",
class_name="NistschemaSvIvListNmtokenMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_1_nistxml_sv_iv_list_nmtoken_max_length_2_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-2-2.xml",
class_name="NistschemaSvIvListNmtokenMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_1_nistxml_sv_iv_list_nmtoken_max_length_2_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-2-3.xml",
class_name="NistschemaSvIvListNmtokenMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_1_nistxml_sv_iv_list_nmtoken_max_length_2_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-2-4.xml",
class_name="NistschemaSvIvListNmtokenMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_1_nistxml_sv_iv_list_nmtoken_max_length_2_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-2-5.xml",
class_name="NistschemaSvIvListNmtokenMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_nistxml_sv_iv_list_nmtoken_max_length_1_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-1-1.xml",
class_name="NistschemaSvIvListNmtokenMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_nistxml_sv_iv_list_nmtoken_max_length_1_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-1-2.xml",
class_name="NistschemaSvIvListNmtokenMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_nistxml_sv_iv_list_nmtoken_max_length_1_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-1-3.xml",
class_name="NistschemaSvIvListNmtokenMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_nistxml_sv_iv_list_nmtoken_max_length_1_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-1-4.xml",
class_name="NistschemaSvIvListNmtokenMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_nistxml_sv_iv_list_nmtoken_max_length_1_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-1-5.xml",
class_name="NistschemaSvIvListNmtokenMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_white_space_nistxml_sv_iv_list_name_white_space_1_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-whiteSpace-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-whiteSpace-1-1.xml",
class_name="NistschemaSvIvListNameWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_white_space_nistxml_sv_iv_list_name_white_space_1_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-whiteSpace-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-whiteSpace-1-2.xml",
class_name="NistschemaSvIvListNameWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_white_space_nistxml_sv_iv_list_name_white_space_1_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-whiteSpace-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-whiteSpace-1-3.xml",
class_name="NistschemaSvIvListNameWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_white_space_nistxml_sv_iv_list_name_white_space_1_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-whiteSpace-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-whiteSpace-1-4.xml",
class_name="NistschemaSvIvListNameWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_white_space_nistxml_sv_iv_list_name_white_space_1_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-whiteSpace-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-whiteSpace-1-5.xml",
class_name="NistschemaSvIvListNameWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_4_nistxml_sv_iv_list_name_enumeration_5_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-5-1.xml",
class_name="NistschemaSvIvListNameEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_4_nistxml_sv_iv_list_name_enumeration_5_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-5-2.xml",
class_name="NistschemaSvIvListNameEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_4_nistxml_sv_iv_list_name_enumeration_5_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-5-3.xml",
class_name="NistschemaSvIvListNameEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_4_nistxml_sv_iv_list_name_enumeration_5_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-5-4.xml",
class_name="NistschemaSvIvListNameEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_4_nistxml_sv_iv_list_name_enumeration_5_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-5-5.xml",
class_name="NistschemaSvIvListNameEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_3_nistxml_sv_iv_list_name_enumeration_4_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-4-1.xml",
class_name="NistschemaSvIvListNameEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_3_nistxml_sv_iv_list_name_enumeration_4_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-4-2.xml",
class_name="NistschemaSvIvListNameEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_3_nistxml_sv_iv_list_name_enumeration_4_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-4-3.xml",
class_name="NistschemaSvIvListNameEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_3_nistxml_sv_iv_list_name_enumeration_4_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-4-4.xml",
class_name="NistschemaSvIvListNameEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_3_nistxml_sv_iv_list_name_enumeration_4_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-4-5.xml",
class_name="NistschemaSvIvListNameEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_2_nistxml_sv_iv_list_name_enumeration_3_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-3-1.xml",
class_name="NistschemaSvIvListNameEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_2_nistxml_sv_iv_list_name_enumeration_3_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-3-2.xml",
class_name="NistschemaSvIvListNameEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_2_nistxml_sv_iv_list_name_enumeration_3_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-3-3.xml",
class_name="NistschemaSvIvListNameEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_2_nistxml_sv_iv_list_name_enumeration_3_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-3-4.xml",
class_name="NistschemaSvIvListNameEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_2_nistxml_sv_iv_list_name_enumeration_3_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-3-5.xml",
class_name="NistschemaSvIvListNameEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_1_nistxml_sv_iv_list_name_enumeration_2_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-2-1.xml",
class_name="NistschemaSvIvListNameEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_1_nistxml_sv_iv_list_name_enumeration_2_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-2-2.xml",
class_name="NistschemaSvIvListNameEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_1_nistxml_sv_iv_list_name_enumeration_2_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-2-3.xml",
class_name="NistschemaSvIvListNameEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_1_nistxml_sv_iv_list_name_enumeration_2_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-2-4.xml",
class_name="NistschemaSvIvListNameEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_1_nistxml_sv_iv_list_name_enumeration_2_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-2-5.xml",
class_name="NistschemaSvIvListNameEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_nistxml_sv_iv_list_name_enumeration_1_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-1-1.xml",
class_name="NistschemaSvIvListNameEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_nistxml_sv_iv_list_name_enumeration_1_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-1-2.xml",
class_name="NistschemaSvIvListNameEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_nistxml_sv_iv_list_name_enumeration_1_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-1-3.xml",
class_name="NistschemaSvIvListNameEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_nistxml_sv_iv_list_name_enumeration_1_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-1-4.xml",
class_name="NistschemaSvIvListNameEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_nistxml_sv_iv_list_name_enumeration_1_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-1-5.xml",
class_name="NistschemaSvIvListNameEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_4_nistxml_sv_iv_list_name_pattern_5_1(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{21}
\i\c{22} \i\c{35} \i\c{25} \i\c{26} \i\c{12} \i\c{48} \i\c{33}
\i\c{44} \i\c{57}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-5-1.xml",
class_name="NistschemaSvIvListNamePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_4_nistxml_sv_iv_list_name_pattern_5_2(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{21}
\i\c{22} \i\c{35} \i\c{25} \i\c{26} \i\c{12} \i\c{48} \i\c{33}
\i\c{44} \i\c{57}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-5-2.xml",
class_name="NistschemaSvIvListNamePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_4_nistxml_sv_iv_list_name_pattern_5_3(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{21}
\i\c{22} \i\c{35} \i\c{25} \i\c{26} \i\c{12} \i\c{48} \i\c{33}
\i\c{44} \i\c{57}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-5-3.xml",
class_name="NistschemaSvIvListNamePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_4_nistxml_sv_iv_list_name_pattern_5_4(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{21}
\i\c{22} \i\c{35} \i\c{25} \i\c{26} \i\c{12} \i\c{48} \i\c{33}
\i\c{44} \i\c{57}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-5-4.xml",
class_name="NistschemaSvIvListNamePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_4_nistxml_sv_iv_list_name_pattern_5_5(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{21}
\i\c{22} \i\c{35} \i\c{25} \i\c{26} \i\c{12} \i\c{48} \i\c{33}
\i\c{44} \i\c{57}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-5-5.xml",
class_name="NistschemaSvIvListNamePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_3_nistxml_sv_iv_list_name_pattern_4_1(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{19}
\i\c{63} \i\c{18} \i\c{40} \i\c{12} \i\c{58} \i\c{47} \i\c{54}
\i\c{15}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-4-1.xml",
class_name="NistschemaSvIvListNamePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_3_nistxml_sv_iv_list_name_pattern_4_2(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{19}
\i\c{63} \i\c{18} \i\c{40} \i\c{12} \i\c{58} \i\c{47} \i\c{54}
\i\c{15}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-4-2.xml",
class_name="NistschemaSvIvListNamePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_3_nistxml_sv_iv_list_name_pattern_4_3(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{19}
\i\c{63} \i\c{18} \i\c{40} \i\c{12} \i\c{58} \i\c{47} \i\c{54}
\i\c{15}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-4-3.xml",
class_name="NistschemaSvIvListNamePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_3_nistxml_sv_iv_list_name_pattern_4_4(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{19}
\i\c{63} \i\c{18} \i\c{40} \i\c{12} \i\c{58} \i\c{47} \i\c{54}
\i\c{15}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-4-4.xml",
class_name="NistschemaSvIvListNamePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_3_nistxml_sv_iv_list_name_pattern_4_5(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{19}
\i\c{63} \i\c{18} \i\c{40} \i\c{12} \i\c{58} \i\c{47} \i\c{54}
\i\c{15}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-4-5.xml",
class_name="NistschemaSvIvListNamePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_2_nistxml_sv_iv_list_name_pattern_3_1(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{24}
\i\c{23} \i\c{57} \i\c{50} \i\c{52} \i\c{35} \i\c{28}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-3-1.xml",
class_name="NistschemaSvIvListNamePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_2_nistxml_sv_iv_list_name_pattern_3_2(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{24}
\i\c{23} \i\c{57} \i\c{50} \i\c{52} \i\c{35} \i\c{28}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-3-2.xml",
class_name="NistschemaSvIvListNamePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_2_nistxml_sv_iv_list_name_pattern_3_3(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{24}
\i\c{23} \i\c{57} \i\c{50} \i\c{52} \i\c{35} \i\c{28}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-3-3.xml",
class_name="NistschemaSvIvListNamePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_2_nistxml_sv_iv_list_name_pattern_3_4(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{24}
\i\c{23} \i\c{57} \i\c{50} \i\c{52} \i\c{35} \i\c{28}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-3-4.xml",
class_name="NistschemaSvIvListNamePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_2_nistxml_sv_iv_list_name_pattern_3_5(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{24}
\i\c{23} \i\c{57} \i\c{50} \i\c{52} \i\c{35} \i\c{28}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-3-5.xml",
class_name="NistschemaSvIvListNamePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_1_nistxml_sv_iv_list_name_pattern_2_1(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{33}
\i\c{52} \i\c{56} \i\c{6} \i\c{22}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-2-1.xml",
class_name="NistschemaSvIvListNamePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_1_nistxml_sv_iv_list_name_pattern_2_2(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{33}
\i\c{52} \i\c{56} \i\c{6} \i\c{22}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-2-2.xml",
class_name="NistschemaSvIvListNamePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_1_nistxml_sv_iv_list_name_pattern_2_3(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{33}
\i\c{52} \i\c{56} \i\c{6} \i\c{22}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-2-3.xml",
class_name="NistschemaSvIvListNamePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_1_nistxml_sv_iv_list_name_pattern_2_4(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{33}
\i\c{52} \i\c{56} \i\c{6} \i\c{22}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-2-4.xml",
class_name="NistschemaSvIvListNamePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_1_nistxml_sv_iv_list_name_pattern_2_5(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{33}
\i\c{52} \i\c{56} \i\c{6} \i\c{22}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-2-5.xml",
class_name="NistschemaSvIvListNamePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_nistxml_sv_iv_list_name_pattern_1_1(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{48}
\i\c{47} \i\c{13} \i\c{4} \i\c{46} \i\c{37}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-1-1.xml",
class_name="NistschemaSvIvListNamePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_nistxml_sv_iv_list_name_pattern_1_2(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{48}
\i\c{47} \i\c{13} \i\c{4} \i\c{46} \i\c{37}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-1-2.xml",
class_name="NistschemaSvIvListNamePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_nistxml_sv_iv_list_name_pattern_1_3(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{48}
\i\c{47} \i\c{13} \i\c{4} \i\c{46} \i\c{37}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-1-3.xml",
class_name="NistschemaSvIvListNamePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_nistxml_sv_iv_list_name_pattern_1_4(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{48}
\i\c{47} \i\c{13} \i\c{4} \i\c{46} \i\c{37}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-1-4.xml",
class_name="NistschemaSvIvListNamePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_nistxml_sv_iv_list_name_pattern_1_5(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{48}
\i\c{47} \i\c{13} \i\c{4} \i\c{46} \i\c{37}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-1-5.xml",
class_name="NistschemaSvIvListNamePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_4_nistxml_sv_iv_list_name_length_5_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-5-1.xml",
class_name="NistschemaSvIvListNameLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_4_nistxml_sv_iv_list_name_length_5_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-5-2.xml",
class_name="NistschemaSvIvListNameLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_4_nistxml_sv_iv_list_name_length_5_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-5-3.xml",
class_name="NistschemaSvIvListNameLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_4_nistxml_sv_iv_list_name_length_5_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-5-4.xml",
class_name="NistschemaSvIvListNameLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_4_nistxml_sv_iv_list_name_length_5_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-5-5.xml",
class_name="NistschemaSvIvListNameLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_3_nistxml_sv_iv_list_name_length_4_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-4-1.xml",
class_name="NistschemaSvIvListNameLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_3_nistxml_sv_iv_list_name_length_4_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-4-2.xml",
class_name="NistschemaSvIvListNameLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_3_nistxml_sv_iv_list_name_length_4_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-4-3.xml",
class_name="NistschemaSvIvListNameLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_3_nistxml_sv_iv_list_name_length_4_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-4-4.xml",
class_name="NistschemaSvIvListNameLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_3_nistxml_sv_iv_list_name_length_4_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-4-5.xml",
class_name="NistschemaSvIvListNameLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_2_nistxml_sv_iv_list_name_length_3_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-3-1.xml",
class_name="NistschemaSvIvListNameLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_2_nistxml_sv_iv_list_name_length_3_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-3-2.xml",
class_name="NistschemaSvIvListNameLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_2_nistxml_sv_iv_list_name_length_3_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-3-3.xml",
class_name="NistschemaSvIvListNameLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_2_nistxml_sv_iv_list_name_length_3_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-3-4.xml",
class_name="NistschemaSvIvListNameLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_2_nistxml_sv_iv_list_name_length_3_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-3-5.xml",
class_name="NistschemaSvIvListNameLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_1_nistxml_sv_iv_list_name_length_2_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-2-1.xml",
class_name="NistschemaSvIvListNameLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_1_nistxml_sv_iv_list_name_length_2_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-2-2.xml",
class_name="NistschemaSvIvListNameLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_1_nistxml_sv_iv_list_name_length_2_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-2-3.xml",
class_name="NistschemaSvIvListNameLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_1_nistxml_sv_iv_list_name_length_2_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-2-4.xml",
class_name="NistschemaSvIvListNameLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_1_nistxml_sv_iv_list_name_length_2_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-2-5.xml",
class_name="NistschemaSvIvListNameLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_nistxml_sv_iv_list_name_length_1_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-1-1.xml",
class_name="NistschemaSvIvListNameLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_nistxml_sv_iv_list_name_length_1_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-1-2.xml",
class_name="NistschemaSvIvListNameLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_nistxml_sv_iv_list_name_length_1_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-1-3.xml",
class_name="NistschemaSvIvListNameLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_nistxml_sv_iv_list_name_length_1_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-1-4.xml",
class_name="NistschemaSvIvListNameLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_nistxml_sv_iv_list_name_length_1_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-1-5.xml",
class_name="NistschemaSvIvListNameLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_4_nistxml_sv_iv_list_name_min_length_5_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-5-1.xml",
class_name="NistschemaSvIvListNameMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_4_nistxml_sv_iv_list_name_min_length_5_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-5-2.xml",
class_name="NistschemaSvIvListNameMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_4_nistxml_sv_iv_list_name_min_length_5_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-5-3.xml",
class_name="NistschemaSvIvListNameMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_4_nistxml_sv_iv_list_name_min_length_5_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-5-4.xml",
class_name="NistschemaSvIvListNameMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_4_nistxml_sv_iv_list_name_min_length_5_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-5-5.xml",
class_name="NistschemaSvIvListNameMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_3_nistxml_sv_iv_list_name_min_length_4_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-4-1.xml",
class_name="NistschemaSvIvListNameMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_3_nistxml_sv_iv_list_name_min_length_4_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-4-2.xml",
class_name="NistschemaSvIvListNameMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_3_nistxml_sv_iv_list_name_min_length_4_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-4-3.xml",
class_name="NistschemaSvIvListNameMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_3_nistxml_sv_iv_list_name_min_length_4_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-4-4.xml",
class_name="NistschemaSvIvListNameMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_3_nistxml_sv_iv_list_name_min_length_4_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-4-5.xml",
class_name="NistschemaSvIvListNameMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_2_nistxml_sv_iv_list_name_min_length_3_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-3-1.xml",
class_name="NistschemaSvIvListNameMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_2_nistxml_sv_iv_list_name_min_length_3_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-3-2.xml",
class_name="NistschemaSvIvListNameMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_2_nistxml_sv_iv_list_name_min_length_3_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-3-3.xml",
class_name="NistschemaSvIvListNameMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_2_nistxml_sv_iv_list_name_min_length_3_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-3-4.xml",
class_name="NistschemaSvIvListNameMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_2_nistxml_sv_iv_list_name_min_length_3_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-3-5.xml",
class_name="NistschemaSvIvListNameMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_1_nistxml_sv_iv_list_name_min_length_2_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-2-1.xml",
class_name="NistschemaSvIvListNameMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_1_nistxml_sv_iv_list_name_min_length_2_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-2-2.xml",
class_name="NistschemaSvIvListNameMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_1_nistxml_sv_iv_list_name_min_length_2_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-2-3.xml",
class_name="NistschemaSvIvListNameMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_1_nistxml_sv_iv_list_name_min_length_2_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-2-4.xml",
class_name="NistschemaSvIvListNameMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_1_nistxml_sv_iv_list_name_min_length_2_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-2-5.xml",
class_name="NistschemaSvIvListNameMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_nistxml_sv_iv_list_name_min_length_1_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-1-1.xml",
class_name="NistschemaSvIvListNameMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_nistxml_sv_iv_list_name_min_length_1_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-1-2.xml",
class_name="NistschemaSvIvListNameMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_nistxml_sv_iv_list_name_min_length_1_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-1-3.xml",
class_name="NistschemaSvIvListNameMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_nistxml_sv_iv_list_name_min_length_1_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-1-4.xml",
class_name="NistschemaSvIvListNameMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_nistxml_sv_iv_list_name_min_length_1_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-1-5.xml",
class_name="NistschemaSvIvListNameMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_4_nistxml_sv_iv_list_name_max_length_5_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-5-1.xml",
class_name="NistschemaSvIvListNameMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_4_nistxml_sv_iv_list_name_max_length_5_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-5-2.xml",
class_name="NistschemaSvIvListNameMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_4_nistxml_sv_iv_list_name_max_length_5_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-5-3.xml",
class_name="NistschemaSvIvListNameMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_4_nistxml_sv_iv_list_name_max_length_5_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-5-4.xml",
class_name="NistschemaSvIvListNameMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_4_nistxml_sv_iv_list_name_max_length_5_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-5-5.xml",
class_name="NistschemaSvIvListNameMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_3_nistxml_sv_iv_list_name_max_length_4_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-4-1.xml",
class_name="NistschemaSvIvListNameMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_3_nistxml_sv_iv_list_name_max_length_4_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-4-2.xml",
class_name="NistschemaSvIvListNameMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_3_nistxml_sv_iv_list_name_max_length_4_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-4-3.xml",
class_name="NistschemaSvIvListNameMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_3_nistxml_sv_iv_list_name_max_length_4_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-4-4.xml",
class_name="NistschemaSvIvListNameMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_3_nistxml_sv_iv_list_name_max_length_4_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-4-5.xml",
class_name="NistschemaSvIvListNameMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_2_nistxml_sv_iv_list_name_max_length_3_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-3-1.xml",
class_name="NistschemaSvIvListNameMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_2_nistxml_sv_iv_list_name_max_length_3_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-3-2.xml",
class_name="NistschemaSvIvListNameMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_2_nistxml_sv_iv_list_name_max_length_3_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-3-3.xml",
class_name="NistschemaSvIvListNameMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_2_nistxml_sv_iv_list_name_max_length_3_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-3-4.xml",
class_name="NistschemaSvIvListNameMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_2_nistxml_sv_iv_list_name_max_length_3_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-3-5.xml",
class_name="NistschemaSvIvListNameMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_1_nistxml_sv_iv_list_name_max_length_2_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-2-1.xml",
class_name="NistschemaSvIvListNameMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_1_nistxml_sv_iv_list_name_max_length_2_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-2-2.xml",
class_name="NistschemaSvIvListNameMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_1_nistxml_sv_iv_list_name_max_length_2_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-2-3.xml",
class_name="NistschemaSvIvListNameMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_1_nistxml_sv_iv_list_name_max_length_2_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-2-4.xml",
class_name="NistschemaSvIvListNameMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_1_nistxml_sv_iv_list_name_max_length_2_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-2-5.xml",
class_name="NistschemaSvIvListNameMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_nistxml_sv_iv_list_name_max_length_1_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-1-1.xml",
class_name="NistschemaSvIvListNameMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_nistxml_sv_iv_list_name_max_length_1_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-1-2.xml",
class_name="NistschemaSvIvListNameMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_nistxml_sv_iv_list_name_max_length_1_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-1-3.xml",
class_name="NistschemaSvIvListNameMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_nistxml_sv_iv_list_name_max_length_1_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-1-4.xml",
class_name="NistschemaSvIvListNameMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_nistxml_sv_iv_list_name_max_length_1_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-1-5.xml",
class_name="NistschemaSvIvListNameMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_white_space_nistxml_sv_iv_list_token_white_space_1_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-whiteSpace-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-whiteSpace-1-1.xml",
class_name="NistschemaSvIvListTokenWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_white_space_nistxml_sv_iv_list_token_white_space_1_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-whiteSpace-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-whiteSpace-1-2.xml",
class_name="NistschemaSvIvListTokenWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_white_space_nistxml_sv_iv_list_token_white_space_1_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-whiteSpace-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-whiteSpace-1-3.xml",
class_name="NistschemaSvIvListTokenWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_white_space_nistxml_sv_iv_list_token_white_space_1_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-whiteSpace-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-whiteSpace-1-4.xml",
class_name="NistschemaSvIvListTokenWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_white_space_nistxml_sv_iv_list_token_white_space_1_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-whiteSpace-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-whiteSpace-1-5.xml",
class_name="NistschemaSvIvListTokenWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_4_nistxml_sv_iv_list_token_enumeration_5_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-5-1.xml",
class_name="NistschemaSvIvListTokenEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_4_nistxml_sv_iv_list_token_enumeration_5_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-5-2.xml",
class_name="NistschemaSvIvListTokenEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_4_nistxml_sv_iv_list_token_enumeration_5_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-5-3.xml",
class_name="NistschemaSvIvListTokenEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_4_nistxml_sv_iv_list_token_enumeration_5_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-5-4.xml",
class_name="NistschemaSvIvListTokenEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_4_nistxml_sv_iv_list_token_enumeration_5_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-5-5.xml",
class_name="NistschemaSvIvListTokenEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_3_nistxml_sv_iv_list_token_enumeration_4_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-4-1.xml",
class_name="NistschemaSvIvListTokenEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_3_nistxml_sv_iv_list_token_enumeration_4_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-4-2.xml",
class_name="NistschemaSvIvListTokenEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_3_nistxml_sv_iv_list_token_enumeration_4_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-4-3.xml",
class_name="NistschemaSvIvListTokenEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_3_nistxml_sv_iv_list_token_enumeration_4_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-4-4.xml",
class_name="NistschemaSvIvListTokenEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_3_nistxml_sv_iv_list_token_enumeration_4_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-4-5.xml",
class_name="NistschemaSvIvListTokenEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_2_nistxml_sv_iv_list_token_enumeration_3_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-3-1.xml",
class_name="NistschemaSvIvListTokenEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_2_nistxml_sv_iv_list_token_enumeration_3_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-3-2.xml",
class_name="NistschemaSvIvListTokenEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_2_nistxml_sv_iv_list_token_enumeration_3_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-3-3.xml",
class_name="NistschemaSvIvListTokenEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_2_nistxml_sv_iv_list_token_enumeration_3_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-3-4.xml",
class_name="NistschemaSvIvListTokenEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_2_nistxml_sv_iv_list_token_enumeration_3_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-3-5.xml",
class_name="NistschemaSvIvListTokenEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_1_nistxml_sv_iv_list_token_enumeration_2_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-2-1.xml",
class_name="NistschemaSvIvListTokenEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_1_nistxml_sv_iv_list_token_enumeration_2_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-2-2.xml",
class_name="NistschemaSvIvListTokenEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_1_nistxml_sv_iv_list_token_enumeration_2_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-2-3.xml",
class_name="NistschemaSvIvListTokenEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_1_nistxml_sv_iv_list_token_enumeration_2_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-2-4.xml",
class_name="NistschemaSvIvListTokenEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_1_nistxml_sv_iv_list_token_enumeration_2_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-2-5.xml",
class_name="NistschemaSvIvListTokenEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_nistxml_sv_iv_list_token_enumeration_1_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-1-1.xml",
class_name="NistschemaSvIvListTokenEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_nistxml_sv_iv_list_token_enumeration_1_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-1-2.xml",
class_name="NistschemaSvIvListTokenEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_nistxml_sv_iv_list_token_enumeration_1_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-1-3.xml",
class_name="NistschemaSvIvListTokenEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_nistxml_sv_iv_list_token_enumeration_1_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-1-4.xml",
class_name="NistschemaSvIvListTokenEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_nistxml_sv_iv_list_token_enumeration_1_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-1-5.xml",
class_name="NistschemaSvIvListTokenEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_4_nistxml_sv_iv_list_token_pattern_5_1(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_17988 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14056-
1024 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_10607 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_17619-1280 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13978 \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18746 \d{1,
5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_17171-1364 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_16881.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-5-1.xml",
class_name="NistschemaSvIvListTokenPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_4_nistxml_sv_iv_list_token_pattern_5_2(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_17988 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14056-
1024 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_10607 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_17619-1280 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13978 \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18746 \d{1,
5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_17171-1364 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_16881.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-5-2.xml",
class_name="NistschemaSvIvListTokenPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_4_nistxml_sv_iv_list_token_pattern_5_3(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_17988 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14056-
1024 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_10607 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_17619-1280 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13978 \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18746 \d{1,
5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_17171-1364 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_16881.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-5-3.xml",
class_name="NistschemaSvIvListTokenPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_4_nistxml_sv_iv_list_token_pattern_5_4(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_17988 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14056-
1024 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_10607 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_17619-1280 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13978 \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18746 \d{1,
5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_17171-1364 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_16881.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-5-4.xml",
class_name="NistschemaSvIvListTokenPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_4_nistxml_sv_iv_list_token_pattern_5_5(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_17988 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14056-
1024 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_10607 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_17619-1280 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13978 \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18746 \d{1,
5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_17171-1364 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_16881.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-5-5.xml",
class_name="NistschemaSvIvListTokenPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_3_nistxml_sv_iv_list_token_pattern_4_1(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_17930-1652 \
d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_19453 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_18434-1961 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14405 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_15365 \d{1,
5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_16114
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_14742 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_12190-1064 \d{1,5}_([A-Z][a-
z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13082-1344.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-4-1.xml",
class_name="NistschemaSvIvListTokenPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_3_nistxml_sv_iv_list_token_pattern_4_2(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_17930-1652 \
d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_19453 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_18434-1961 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14405 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_15365 \d{1,
5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_16114
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_14742 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_12190-1064 \d{1,5}_([A-Z][a-
z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13082-1344.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-4-2.xml",
class_name="NistschemaSvIvListTokenPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_3_nistxml_sv_iv_list_token_pattern_4_3(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_17930-1652 \
d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_19453 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_18434-1961 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14405 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_15365 \d{1,
5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_16114
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_14742 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_12190-1064 \d{1,5}_([A-Z][a-
z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13082-1344.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-4-3.xml",
class_name="NistschemaSvIvListTokenPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_3_nistxml_sv_iv_list_token_pattern_4_4(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_17930-1652 \
d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_19453 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_18434-1961 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14405 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_15365 \d{1,
5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_16114
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_14742 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_12190-1064 \d{1,5}_([A-Z][a-
z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13082-1344.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-4-4.xml",
class_name="NistschemaSvIvListTokenPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_3_nistxml_sv_iv_list_token_pattern_4_5(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_17930-1652 \
d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_19453 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_18434-1961 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14405 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_15365 \d{1,
5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_16114
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_14742 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_12190-1064 \d{1,5}_([A-Z][a-
z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13082-1344.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-4-5.xml",
class_name="NistschemaSvIvListTokenPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_2_nistxml_sv_iv_list_token_pattern_3_1(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_11426-1564 \
d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_12210 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_10273 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_15228-1341 \d{1,5
}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_19382
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_15012-1071 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16723.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-3-1.xml",
class_name="NistschemaSvIvListTokenPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_2_nistxml_sv_iv_list_token_pattern_3_2(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_11426-1564 \
d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_12210 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_10273 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_15228-1341 \d{1,5
}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_19382
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_15012-1071 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16723.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-3-2.xml",
class_name="NistschemaSvIvListTokenPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_2_nistxml_sv_iv_list_token_pattern_3_3(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_11426-1564 \
d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_12210 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_10273 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_15228-1341 \d{1,5
}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_19382
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_15012-1071 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16723.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-3-3.xml",
class_name="NistschemaSvIvListTokenPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_2_nistxml_sv_iv_list_token_pattern_3_4(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_11426-1564 \
d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_12210 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_10273 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_15228-1341 \d{1,5
}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_19382
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_15012-1071 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16723.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-3-4.xml",
class_name="NistschemaSvIvListTokenPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_2_nistxml_sv_iv_list_token_pattern_3_5(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_11426-1564 \
d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_12210 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_10273 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_15228-1341 \d{1,5
}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_19382
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_15012-1071 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16723.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-3-5.xml",
class_name="NistschemaSvIvListTokenPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_1_nistxml_sv_iv_list_token_pattern_2_1(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13797-1926 \
d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_13549-1185 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_11867 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13558-1548 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_10722-
1701 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_14892 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15901-1354 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_12361 \d{1,5}_([A
-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13151-1383.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-2-1.xml",
class_name="NistschemaSvIvListTokenPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_1_nistxml_sv_iv_list_token_pattern_2_2(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13797-1926 \
d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_13549-1185 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_11867 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13558-1548 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_10722-
1701 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_14892 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15901-1354 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_12361 \d{1,5}_([A
-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13151-1383.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-2-2.xml",
class_name="NistschemaSvIvListTokenPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_1_nistxml_sv_iv_list_token_pattern_2_3(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13797-1926 \
d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_13549-1185 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_11867 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13558-1548 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_10722-
1701 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_14892 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15901-1354 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_12361 \d{1,5}_([A
-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13151-1383.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-2-3.xml",
class_name="NistschemaSvIvListTokenPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_1_nistxml_sv_iv_list_token_pattern_2_4(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13797-1926 \
d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_13549-1185 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_11867 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13558-1548 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_10722-
1701 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_14892 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15901-1354 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_12361 \d{1,5}_([A
-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13151-1383.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-2-4.xml",
class_name="NistschemaSvIvListTokenPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_1_nistxml_sv_iv_list_token_pattern_2_5(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13797-1926 \
d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_13549-1185 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_11867 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13558-1548 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_10722-
1701 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_14892 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15901-1354 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_12361 \d{1,5}_([A
-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13151-1383.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-2-5.xml",
class_name="NistschemaSvIvListTokenPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_nistxml_sv_iv_list_token_pattern_1_1(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15685 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13673
\d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10126 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_12533 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13175.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-1-1.xml",
class_name="NistschemaSvIvListTokenPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_nistxml_sv_iv_list_token_pattern_1_2(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15685 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13673
\d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10126 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_12533 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13175.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-1-2.xml",
class_name="NistschemaSvIvListTokenPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_nistxml_sv_iv_list_token_pattern_1_3(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15685 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13673
\d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10126 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_12533 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13175.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-1-3.xml",
class_name="NistschemaSvIvListTokenPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_nistxml_sv_iv_list_token_pattern_1_4(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15685 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13673
\d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10126 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_12533 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13175.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-1-4.xml",
class_name="NistschemaSvIvListTokenPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_nistxml_sv_iv_list_token_pattern_1_5(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15685 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13673
\d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10126 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_12533 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13175.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-1-5.xml",
class_name="NistschemaSvIvListTokenPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_4_nistxml_sv_iv_list_token_length_5_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-5-1.xml",
class_name="NistschemaSvIvListTokenLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_4_nistxml_sv_iv_list_token_length_5_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-5-2.xml",
class_name="NistschemaSvIvListTokenLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_4_nistxml_sv_iv_list_token_length_5_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-5-3.xml",
class_name="NistschemaSvIvListTokenLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_4_nistxml_sv_iv_list_token_length_5_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-5-4.xml",
class_name="NistschemaSvIvListTokenLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_4_nistxml_sv_iv_list_token_length_5_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-5-5.xml",
class_name="NistschemaSvIvListTokenLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_3_nistxml_sv_iv_list_token_length_4_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-4-1.xml",
class_name="NistschemaSvIvListTokenLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_3_nistxml_sv_iv_list_token_length_4_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-4-2.xml",
class_name="NistschemaSvIvListTokenLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_3_nistxml_sv_iv_list_token_length_4_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-4-3.xml",
class_name="NistschemaSvIvListTokenLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_3_nistxml_sv_iv_list_token_length_4_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-4-4.xml",
class_name="NistschemaSvIvListTokenLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_3_nistxml_sv_iv_list_token_length_4_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-4-5.xml",
class_name="NistschemaSvIvListTokenLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_2_nistxml_sv_iv_list_token_length_3_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-3-1.xml",
class_name="NistschemaSvIvListTokenLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_2_nistxml_sv_iv_list_token_length_3_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-3-2.xml",
class_name="NistschemaSvIvListTokenLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_2_nistxml_sv_iv_list_token_length_3_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-3-3.xml",
class_name="NistschemaSvIvListTokenLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_2_nistxml_sv_iv_list_token_length_3_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-3-4.xml",
class_name="NistschemaSvIvListTokenLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_2_nistxml_sv_iv_list_token_length_3_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-3-5.xml",
class_name="NistschemaSvIvListTokenLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_1_nistxml_sv_iv_list_token_length_2_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-2-1.xml",
class_name="NistschemaSvIvListTokenLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_1_nistxml_sv_iv_list_token_length_2_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-2-2.xml",
class_name="NistschemaSvIvListTokenLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_1_nistxml_sv_iv_list_token_length_2_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-2-3.xml",
class_name="NistschemaSvIvListTokenLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_1_nistxml_sv_iv_list_token_length_2_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-2-4.xml",
class_name="NistschemaSvIvListTokenLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_1_nistxml_sv_iv_list_token_length_2_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-2-5.xml",
class_name="NistschemaSvIvListTokenLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_nistxml_sv_iv_list_token_length_1_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-1-1.xml",
class_name="NistschemaSvIvListTokenLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_nistxml_sv_iv_list_token_length_1_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-1-2.xml",
class_name="NistschemaSvIvListTokenLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_nistxml_sv_iv_list_token_length_1_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-1-3.xml",
class_name="NistschemaSvIvListTokenLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_nistxml_sv_iv_list_token_length_1_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-1-4.xml",
class_name="NistschemaSvIvListTokenLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_nistxml_sv_iv_list_token_length_1_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-1-5.xml",
class_name="NistschemaSvIvListTokenLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_4_nistxml_sv_iv_list_token_min_length_5_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-5-1.xml",
class_name="NistschemaSvIvListTokenMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_4_nistxml_sv_iv_list_token_min_length_5_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-5-2.xml",
class_name="NistschemaSvIvListTokenMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_4_nistxml_sv_iv_list_token_min_length_5_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-5-3.xml",
class_name="NistschemaSvIvListTokenMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_4_nistxml_sv_iv_list_token_min_length_5_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-5-4.xml",
class_name="NistschemaSvIvListTokenMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_4_nistxml_sv_iv_list_token_min_length_5_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-5-5.xml",
class_name="NistschemaSvIvListTokenMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_3_nistxml_sv_iv_list_token_min_length_4_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-4-1.xml",
class_name="NistschemaSvIvListTokenMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_3_nistxml_sv_iv_list_token_min_length_4_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-4-2.xml",
class_name="NistschemaSvIvListTokenMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_3_nistxml_sv_iv_list_token_min_length_4_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-4-3.xml",
class_name="NistschemaSvIvListTokenMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_3_nistxml_sv_iv_list_token_min_length_4_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-4-4.xml",
class_name="NistschemaSvIvListTokenMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_3_nistxml_sv_iv_list_token_min_length_4_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-4-5.xml",
class_name="NistschemaSvIvListTokenMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_2_nistxml_sv_iv_list_token_min_length_3_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-3-1.xml",
class_name="NistschemaSvIvListTokenMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_2_nistxml_sv_iv_list_token_min_length_3_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-3-2.xml",
class_name="NistschemaSvIvListTokenMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_2_nistxml_sv_iv_list_token_min_length_3_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-3-3.xml",
class_name="NistschemaSvIvListTokenMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_2_nistxml_sv_iv_list_token_min_length_3_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-3-4.xml",
class_name="NistschemaSvIvListTokenMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_2_nistxml_sv_iv_list_token_min_length_3_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-3-5.xml",
class_name="NistschemaSvIvListTokenMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_1_nistxml_sv_iv_list_token_min_length_2_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-2-1.xml",
class_name="NistschemaSvIvListTokenMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_1_nistxml_sv_iv_list_token_min_length_2_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-2-2.xml",
class_name="NistschemaSvIvListTokenMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_1_nistxml_sv_iv_list_token_min_length_2_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-2-3.xml",
class_name="NistschemaSvIvListTokenMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_1_nistxml_sv_iv_list_token_min_length_2_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-2-4.xml",
class_name="NistschemaSvIvListTokenMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_1_nistxml_sv_iv_list_token_min_length_2_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-2-5.xml",
class_name="NistschemaSvIvListTokenMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_nistxml_sv_iv_list_token_min_length_1_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-1-1.xml",
class_name="NistschemaSvIvListTokenMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_nistxml_sv_iv_list_token_min_length_1_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-1-2.xml",
class_name="NistschemaSvIvListTokenMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_nistxml_sv_iv_list_token_min_length_1_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-1-3.xml",
class_name="NistschemaSvIvListTokenMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_nistxml_sv_iv_list_token_min_length_1_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-1-4.xml",
class_name="NistschemaSvIvListTokenMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_nistxml_sv_iv_list_token_min_length_1_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-1-5.xml",
class_name="NistschemaSvIvListTokenMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_4_nistxml_sv_iv_list_token_max_length_5_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-5-1.xml",
class_name="NistschemaSvIvListTokenMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_4_nistxml_sv_iv_list_token_max_length_5_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-5-2.xml",
class_name="NistschemaSvIvListTokenMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_4_nistxml_sv_iv_list_token_max_length_5_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-5-3.xml",
class_name="NistschemaSvIvListTokenMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_4_nistxml_sv_iv_list_token_max_length_5_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-5-4.xml",
class_name="NistschemaSvIvListTokenMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_4_nistxml_sv_iv_list_token_max_length_5_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-5-5.xml",
class_name="NistschemaSvIvListTokenMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_3_nistxml_sv_iv_list_token_max_length_4_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-4-1.xml",
class_name="NistschemaSvIvListTokenMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_3_nistxml_sv_iv_list_token_max_length_4_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-4-2.xml",
class_name="NistschemaSvIvListTokenMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_3_nistxml_sv_iv_list_token_max_length_4_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-4-3.xml",
class_name="NistschemaSvIvListTokenMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_3_nistxml_sv_iv_list_token_max_length_4_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-4-4.xml",
class_name="NistschemaSvIvListTokenMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_3_nistxml_sv_iv_list_token_max_length_4_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-4-5.xml",
class_name="NistschemaSvIvListTokenMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_2_nistxml_sv_iv_list_token_max_length_3_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-3-1.xml",
class_name="NistschemaSvIvListTokenMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_2_nistxml_sv_iv_list_token_max_length_3_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-3-2.xml",
class_name="NistschemaSvIvListTokenMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_2_nistxml_sv_iv_list_token_max_length_3_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-3-3.xml",
class_name="NistschemaSvIvListTokenMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_2_nistxml_sv_iv_list_token_max_length_3_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-3-4.xml",
class_name="NistschemaSvIvListTokenMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_2_nistxml_sv_iv_list_token_max_length_3_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-3-5.xml",
class_name="NistschemaSvIvListTokenMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_1_nistxml_sv_iv_list_token_max_length_2_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-2-1.xml",
class_name="NistschemaSvIvListTokenMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_1_nistxml_sv_iv_list_token_max_length_2_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-2-2.xml",
class_name="NistschemaSvIvListTokenMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_1_nistxml_sv_iv_list_token_max_length_2_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-2-3.xml",
class_name="NistschemaSvIvListTokenMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_1_nistxml_sv_iv_list_token_max_length_2_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-2-4.xml",
class_name="NistschemaSvIvListTokenMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_1_nistxml_sv_iv_list_token_max_length_2_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-2-5.xml",
class_name="NistschemaSvIvListTokenMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_nistxml_sv_iv_list_token_max_length_1_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-1-1.xml",
class_name="NistschemaSvIvListTokenMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_nistxml_sv_iv_list_token_max_length_1_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-1-2.xml",
class_name="NistschemaSvIvListTokenMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_nistxml_sv_iv_list_token_max_length_1_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-1-3.xml",
class_name="NistschemaSvIvListTokenMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_nistxml_sv_iv_list_token_max_length_1_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-1-4.xml",
class_name="NistschemaSvIvListTokenMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_nistxml_sv_iv_list_token_max_length_1_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-1-5.xml",
class_name="NistschemaSvIvListTokenMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_white_space_nistxml_sv_iv_list_normalized_string_white_space_1_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet whiteSpace with
value collapse.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-whiteSpace-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-whiteSpace-1-1.xml",
class_name="NistschemaSvIvListNormalizedStringWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_white_space_nistxml_sv_iv_list_normalized_string_white_space_1_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet whiteSpace with
value collapse.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-whiteSpace-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-whiteSpace-1-2.xml",
class_name="NistschemaSvIvListNormalizedStringWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_white_space_nistxml_sv_iv_list_normalized_string_white_space_1_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet whiteSpace with
value collapse.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-whiteSpace-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-whiteSpace-1-3.xml",
class_name="NistschemaSvIvListNormalizedStringWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_white_space_nistxml_sv_iv_list_normalized_string_white_space_1_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet whiteSpace with
value collapse.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-whiteSpace-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-whiteSpace-1-4.xml",
class_name="NistschemaSvIvListNormalizedStringWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_white_space_nistxml_sv_iv_list_normalized_string_white_space_1_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet whiteSpace with
value collapse.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-whiteSpace-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-whiteSpace-1-5.xml",
class_name="NistschemaSvIvListNormalizedStringWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_4_nistxml_sv_iv_list_normalized_string_enumeration_5_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-5-1.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_4_nistxml_sv_iv_list_normalized_string_enumeration_5_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-5-2.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_4_nistxml_sv_iv_list_normalized_string_enumeration_5_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-5-3.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_4_nistxml_sv_iv_list_normalized_string_enumeration_5_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-5-4.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_4_nistxml_sv_iv_list_normalized_string_enumeration_5_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-5-5.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_3_nistxml_sv_iv_list_normalized_string_enumeration_4_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-4-1.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_3_nistxml_sv_iv_list_normalized_string_enumeration_4_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-4-2.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_3_nistxml_sv_iv_list_normalized_string_enumeration_4_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-4-3.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_3_nistxml_sv_iv_list_normalized_string_enumeration_4_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-4-4.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_3_nistxml_sv_iv_list_normalized_string_enumeration_4_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-4-5.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_2_nistxml_sv_iv_list_normalized_string_enumeration_3_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-3-1.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_2_nistxml_sv_iv_list_normalized_string_enumeration_3_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-3-2.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_2_nistxml_sv_iv_list_normalized_string_enumeration_3_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-3-3.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_2_nistxml_sv_iv_list_normalized_string_enumeration_3_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-3-4.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_2_nistxml_sv_iv_list_normalized_string_enumeration_3_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-3-5.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_1_nistxml_sv_iv_list_normalized_string_enumeration_2_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-2-1.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_1_nistxml_sv_iv_list_normalized_string_enumeration_2_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-2-2.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_1_nistxml_sv_iv_list_normalized_string_enumeration_2_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-2-3.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_1_nistxml_sv_iv_list_normalized_string_enumeration_2_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-2-4.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_1_nistxml_sv_iv_list_normalized_string_enumeration_2_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-2-5.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_nistxml_sv_iv_list_normalized_string_enumeration_1_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-1-1.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_nistxml_sv_iv_list_normalized_string_enumeration_1_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-1-2.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_nistxml_sv_iv_list_normalized_string_enumeration_1_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-1-3.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_nistxml_sv_iv_list_normalized_string_enumeration_1_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-1-4.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_nistxml_sv_iv_list_normalized_string_enumeration_1_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-1-5.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_4_nistxml_sv_iv_list_normalized_string_pattern_5_1(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_14600 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_15165-1290 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_17813-1396 \d{1,5
}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18970
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_13025 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_15706-1707 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_16336.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-5-1.xml",
class_name="NistschemaSvIvListNormalizedStringPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_4_nistxml_sv_iv_list_normalized_string_pattern_5_2(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_14600 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_15165-1290 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_17813-1396 \d{1,5
}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18970
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_13025 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_15706-1707 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_16336.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-5-2.xml",
class_name="NistschemaSvIvListNormalizedStringPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_4_nistxml_sv_iv_list_normalized_string_pattern_5_3(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_14600 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_15165-1290 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_17813-1396 \d{1,5
}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18970
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_13025 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_15706-1707 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_16336.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-5-3.xml",
class_name="NistschemaSvIvListNormalizedStringPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_4_nistxml_sv_iv_list_normalized_string_pattern_5_4(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_14600 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_15165-1290 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_17813-1396 \d{1,5
}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18970
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_13025 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_15706-1707 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_16336.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-5-4.xml",
class_name="NistschemaSvIvListNormalizedStringPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_4_nistxml_sv_iv_list_normalized_string_pattern_5_5(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_14600 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_15165-1290 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_17813-1396 \d{1,5
}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18970
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_13025 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_15706-1707 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_16336.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-5-5.xml",
class_name="NistschemaSvIvListNormalizedStringPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_3_nistxml_sv_iv_list_normalized_string_pattern_4_1(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_17466-1733 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16877 \d{1,5}_([A-Z][a-
z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_16698-1324 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18587
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10792 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_11619-1091.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-4-1.xml",
class_name="NistschemaSvIvListNormalizedStringPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_3_nistxml_sv_iv_list_normalized_string_pattern_4_2(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_17466-1733 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16877 \d{1,5}_([A-Z][a-
z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_16698-1324 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18587
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10792 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_11619-1091.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-4-2.xml",
class_name="NistschemaSvIvListNormalizedStringPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_3_nistxml_sv_iv_list_normalized_string_pattern_4_3(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_17466-1733 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16877 \d{1,5}_([A-Z][a-
z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_16698-1324 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18587
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10792 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_11619-1091.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-4-3.xml",
class_name="NistschemaSvIvListNormalizedStringPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_3_nistxml_sv_iv_list_normalized_string_pattern_4_4(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_17466-1733 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16877 \d{1,5}_([A-Z][a-
z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_16698-1324 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18587
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10792 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_11619-1091.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-4-4.xml",
class_name="NistschemaSvIvListNormalizedStringPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_3_nistxml_sv_iv_list_normalized_string_pattern_4_5(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_17466-1733 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16877 \d{1,5}_([A-Z][a-
z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_16698-1324 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18587
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10792 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_11619-1091.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-4-5.xml",
class_name="NistschemaSvIvListNormalizedStringPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_2_nistxml_sv_iv_list_normalized_string_pattern_3_1(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_12432 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_10161 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11432-1137 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14004
\d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_19543-1772 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_16553-1944.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-3-1.xml",
class_name="NistschemaSvIvListNormalizedStringPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_2_nistxml_sv_iv_list_normalized_string_pattern_3_2(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_12432 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_10161 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11432-1137 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14004
\d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_19543-1772 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_16553-1944.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-3-2.xml",
class_name="NistschemaSvIvListNormalizedStringPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_2_nistxml_sv_iv_list_normalized_string_pattern_3_3(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_12432 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_10161 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11432-1137 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14004
\d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_19543-1772 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_16553-1944.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-3-3.xml",
class_name="NistschemaSvIvListNormalizedStringPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_2_nistxml_sv_iv_list_normalized_string_pattern_3_4(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_12432 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_10161 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11432-1137 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14004
\d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_19543-1772 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_16553-1944.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-3-4.xml",
class_name="NistschemaSvIvListNormalizedStringPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_2_nistxml_sv_iv_list_normalized_string_pattern_3_5(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_12432 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_10161 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11432-1137 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14004
\d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_19543-1772 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_16553-1944.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-3-5.xml",
class_name="NistschemaSvIvListNormalizedStringPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_1_nistxml_sv_iv_list_normalized_string_pattern_2_1(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_15950 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15905 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_15311 \d{1,5}_([A
-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_12031 \d{1,
5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10376.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-2-1.xml",
class_name="NistschemaSvIvListNormalizedStringPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_1_nistxml_sv_iv_list_normalized_string_pattern_2_2(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_15950 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15905 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_15311 \d{1,5}_([A
-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_12031 \d{1,
5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10376.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-2-2.xml",
class_name="NistschemaSvIvListNormalizedStringPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_1_nistxml_sv_iv_list_normalized_string_pattern_2_3(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_15950 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15905 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_15311 \d{1,5}_([A
-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_12031 \d{1,
5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10376.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-2-3.xml",
class_name="NistschemaSvIvListNormalizedStringPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_1_nistxml_sv_iv_list_normalized_string_pattern_2_4(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_15950 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15905 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_15311 \d{1,5}_([A
-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_12031 \d{1,
5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10376.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-2-4.xml",
class_name="NistschemaSvIvListNormalizedStringPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_1_nistxml_sv_iv_list_normalized_string_pattern_2_5(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_15950 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15905 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_15311 \d{1,5}_([A
-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_12031 \d{1,
5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10376.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-2-5.xml",
class_name="NistschemaSvIvListNormalizedStringPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_nistxml_sv_iv_list_normalized_string_pattern_1_1(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_13058 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_14172 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_13454 \d{1,5}_([A
-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_10133-1061
\d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_10981 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16632 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_19839.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-1-1.xml",
class_name="NistschemaSvIvListNormalizedStringPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_nistxml_sv_iv_list_normalized_string_pattern_1_2(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_13058 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_14172 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_13454 \d{1,5}_([A
-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_10133-1061
\d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_10981 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16632 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_19839.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-1-2.xml",
class_name="NistschemaSvIvListNormalizedStringPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_nistxml_sv_iv_list_normalized_string_pattern_1_3(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_13058 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_14172 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_13454 \d{1,5}_([A
-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_10133-1061
\d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_10981 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16632 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_19839.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-1-3.xml",
class_name="NistschemaSvIvListNormalizedStringPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_nistxml_sv_iv_list_normalized_string_pattern_1_4(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_13058 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_14172 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_13454 \d{1,5}_([A
-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_10133-1061
\d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_10981 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16632 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_19839.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-1-4.xml",
class_name="NistschemaSvIvListNormalizedStringPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_nistxml_sv_iv_list_normalized_string_pattern_1_5(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_13058 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_14172 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_13454 \d{1,5}_([A
-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_10133-1061
\d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_10981 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16632 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_19839.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-1-5.xml",
class_name="NistschemaSvIvListNormalizedStringPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_4_nistxml_sv_iv_list_normalized_string_length_5_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-5-1.xml",
class_name="NistschemaSvIvListNormalizedStringLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_4_nistxml_sv_iv_list_normalized_string_length_5_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-5-2.xml",
class_name="NistschemaSvIvListNormalizedStringLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_4_nistxml_sv_iv_list_normalized_string_length_5_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-5-3.xml",
class_name="NistschemaSvIvListNormalizedStringLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_4_nistxml_sv_iv_list_normalized_string_length_5_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-5-4.xml",
class_name="NistschemaSvIvListNormalizedStringLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_4_nistxml_sv_iv_list_normalized_string_length_5_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-5-5.xml",
class_name="NistschemaSvIvListNormalizedStringLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_3_nistxml_sv_iv_list_normalized_string_length_4_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-4-1.xml",
class_name="NistschemaSvIvListNormalizedStringLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_3_nistxml_sv_iv_list_normalized_string_length_4_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-4-2.xml",
class_name="NistschemaSvIvListNormalizedStringLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_3_nistxml_sv_iv_list_normalized_string_length_4_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-4-3.xml",
class_name="NistschemaSvIvListNormalizedStringLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_3_nistxml_sv_iv_list_normalized_string_length_4_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-4-4.xml",
class_name="NistschemaSvIvListNormalizedStringLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_3_nistxml_sv_iv_list_normalized_string_length_4_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-4-5.xml",
class_name="NistschemaSvIvListNormalizedStringLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_2_nistxml_sv_iv_list_normalized_string_length_3_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-3-1.xml",
class_name="NistschemaSvIvListNormalizedStringLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_2_nistxml_sv_iv_list_normalized_string_length_3_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-3-2.xml",
class_name="NistschemaSvIvListNormalizedStringLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_2_nistxml_sv_iv_list_normalized_string_length_3_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-3-3.xml",
class_name="NistschemaSvIvListNormalizedStringLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_2_nistxml_sv_iv_list_normalized_string_length_3_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-3-4.xml",
class_name="NistschemaSvIvListNormalizedStringLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_2_nistxml_sv_iv_list_normalized_string_length_3_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-3-5.xml",
class_name="NistschemaSvIvListNormalizedStringLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_1_nistxml_sv_iv_list_normalized_string_length_2_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-2-1.xml",
class_name="NistschemaSvIvListNormalizedStringLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_1_nistxml_sv_iv_list_normalized_string_length_2_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-2-2.xml",
class_name="NistschemaSvIvListNormalizedStringLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_1_nistxml_sv_iv_list_normalized_string_length_2_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-2-3.xml",
class_name="NistschemaSvIvListNormalizedStringLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_1_nistxml_sv_iv_list_normalized_string_length_2_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-2-4.xml",
class_name="NistschemaSvIvListNormalizedStringLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_1_nistxml_sv_iv_list_normalized_string_length_2_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-2-5.xml",
class_name="NistschemaSvIvListNormalizedStringLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_nistxml_sv_iv_list_normalized_string_length_1_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-1-1.xml",
class_name="NistschemaSvIvListNormalizedStringLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_nistxml_sv_iv_list_normalized_string_length_1_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-1-2.xml",
class_name="NistschemaSvIvListNormalizedStringLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_nistxml_sv_iv_list_normalized_string_length_1_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-1-3.xml",
class_name="NistschemaSvIvListNormalizedStringLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_nistxml_sv_iv_list_normalized_string_length_1_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-1-4.xml",
class_name="NistschemaSvIvListNormalizedStringLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_nistxml_sv_iv_list_normalized_string_length_1_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-1-5.xml",
class_name="NistschemaSvIvListNormalizedStringLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_4_nistxml_sv_iv_list_normalized_string_min_length_5_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-5-1.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_4_nistxml_sv_iv_list_normalized_string_min_length_5_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-5-2.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_4_nistxml_sv_iv_list_normalized_string_min_length_5_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-5-3.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_4_nistxml_sv_iv_list_normalized_string_min_length_5_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-5-4.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_4_nistxml_sv_iv_list_normalized_string_min_length_5_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-5-5.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_3_nistxml_sv_iv_list_normalized_string_min_length_4_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-4-1.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_3_nistxml_sv_iv_list_normalized_string_min_length_4_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-4-2.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_3_nistxml_sv_iv_list_normalized_string_min_length_4_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-4-3.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_3_nistxml_sv_iv_list_normalized_string_min_length_4_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-4-4.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_3_nistxml_sv_iv_list_normalized_string_min_length_4_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-4-5.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_2_nistxml_sv_iv_list_normalized_string_min_length_3_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-3-1.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_2_nistxml_sv_iv_list_normalized_string_min_length_3_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-3-2.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_2_nistxml_sv_iv_list_normalized_string_min_length_3_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-3-3.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_2_nistxml_sv_iv_list_normalized_string_min_length_3_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-3-4.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_2_nistxml_sv_iv_list_normalized_string_min_length_3_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-3-5.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_1_nistxml_sv_iv_list_normalized_string_min_length_2_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-2-1.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_1_nistxml_sv_iv_list_normalized_string_min_length_2_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-2-2.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_1_nistxml_sv_iv_list_normalized_string_min_length_2_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-2-3.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_1_nistxml_sv_iv_list_normalized_string_min_length_2_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-2-4.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_1_nistxml_sv_iv_list_normalized_string_min_length_2_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-2-5.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_nistxml_sv_iv_list_normalized_string_min_length_1_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-1-1.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_nistxml_sv_iv_list_normalized_string_min_length_1_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-1-2.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_nistxml_sv_iv_list_normalized_string_min_length_1_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-1-3.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_nistxml_sv_iv_list_normalized_string_min_length_1_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-1-4.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_nistxml_sv_iv_list_normalized_string_min_length_1_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-1-5.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_4_nistxml_sv_iv_list_normalized_string_max_length_5_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-5-1.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_4_nistxml_sv_iv_list_normalized_string_max_length_5_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-5-2.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_4_nistxml_sv_iv_list_normalized_string_max_length_5_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-5-3.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_4_nistxml_sv_iv_list_normalized_string_max_length_5_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-5-4.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_4_nistxml_sv_iv_list_normalized_string_max_length_5_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-5-5.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_3_nistxml_sv_iv_list_normalized_string_max_length_4_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-4-1.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_3_nistxml_sv_iv_list_normalized_string_max_length_4_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-4-2.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_3_nistxml_sv_iv_list_normalized_string_max_length_4_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-4-3.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_3_nistxml_sv_iv_list_normalized_string_max_length_4_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-4-4.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_3_nistxml_sv_iv_list_normalized_string_max_length_4_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-4-5.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_2_nistxml_sv_iv_list_normalized_string_max_length_3_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-3-1.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_2_nistxml_sv_iv_list_normalized_string_max_length_3_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-3-2.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_2_nistxml_sv_iv_list_normalized_string_max_length_3_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-3-3.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_2_nistxml_sv_iv_list_normalized_string_max_length_3_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-3-4.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_2_nistxml_sv_iv_list_normalized_string_max_length_3_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-3-5.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_1_nistxml_sv_iv_list_normalized_string_max_length_2_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-2-1.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_1_nistxml_sv_iv_list_normalized_string_max_length_2_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-2-2.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_1_nistxml_sv_iv_list_normalized_string_max_length_2_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-2-3.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_1_nistxml_sv_iv_list_normalized_string_max_length_2_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-2-4.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_1_nistxml_sv_iv_list_normalized_string_max_length_2_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-2-5.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_nistxml_sv_iv_list_normalized_string_max_length_1_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-1-1.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_nistxml_sv_iv_list_normalized_string_max_length_1_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-1-2.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_nistxml_sv_iv_list_normalized_string_max_length_1_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-1-3.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_nistxml_sv_iv_list_normalized_string_max_length_1_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-1-4.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_nistxml_sv_iv_list_normalized_string_max_length_1_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-1-5.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_white_space_nistxml_sv_iv_list_string_white_space_1_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-whiteSpace-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-whiteSpace-1-1.xml",
class_name="NistschemaSvIvListStringWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_white_space_nistxml_sv_iv_list_string_white_space_1_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-whiteSpace-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-whiteSpace-1-2.xml",
class_name="NistschemaSvIvListStringWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_white_space_nistxml_sv_iv_list_string_white_space_1_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-whiteSpace-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-whiteSpace-1-3.xml",
class_name="NistschemaSvIvListStringWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_white_space_nistxml_sv_iv_list_string_white_space_1_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-whiteSpace-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-whiteSpace-1-4.xml",
class_name="NistschemaSvIvListStringWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_white_space_nistxml_sv_iv_list_string_white_space_1_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-whiteSpace-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-whiteSpace-1-5.xml",
class_name="NistschemaSvIvListStringWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_4_nistxml_sv_iv_list_string_enumeration_5_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-5-1.xml",
class_name="NistschemaSvIvListStringEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_4_nistxml_sv_iv_list_string_enumeration_5_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-5-2.xml",
class_name="NistschemaSvIvListStringEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_4_nistxml_sv_iv_list_string_enumeration_5_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-5-3.xml",
class_name="NistschemaSvIvListStringEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_4_nistxml_sv_iv_list_string_enumeration_5_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-5-4.xml",
class_name="NistschemaSvIvListStringEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_4_nistxml_sv_iv_list_string_enumeration_5_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-5-5.xml",
class_name="NistschemaSvIvListStringEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_3_nistxml_sv_iv_list_string_enumeration_4_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-4-1.xml",
class_name="NistschemaSvIvListStringEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_3_nistxml_sv_iv_list_string_enumeration_4_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-4-2.xml",
class_name="NistschemaSvIvListStringEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_3_nistxml_sv_iv_list_string_enumeration_4_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-4-3.xml",
class_name="NistschemaSvIvListStringEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_3_nistxml_sv_iv_list_string_enumeration_4_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-4-4.xml",
class_name="NistschemaSvIvListStringEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_3_nistxml_sv_iv_list_string_enumeration_4_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-4-5.xml",
class_name="NistschemaSvIvListStringEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_2_nistxml_sv_iv_list_string_enumeration_3_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-3-1.xml",
class_name="NistschemaSvIvListStringEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_2_nistxml_sv_iv_list_string_enumeration_3_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-3-2.xml",
class_name="NistschemaSvIvListStringEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_2_nistxml_sv_iv_list_string_enumeration_3_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-3-3.xml",
class_name="NistschemaSvIvListStringEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_2_nistxml_sv_iv_list_string_enumeration_3_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-3-4.xml",
class_name="NistschemaSvIvListStringEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_2_nistxml_sv_iv_list_string_enumeration_3_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-3-5.xml",
class_name="NistschemaSvIvListStringEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_1_nistxml_sv_iv_list_string_enumeration_2_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-2-1.xml",
class_name="NistschemaSvIvListStringEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_1_nistxml_sv_iv_list_string_enumeration_2_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-2-2.xml",
class_name="NistschemaSvIvListStringEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_1_nistxml_sv_iv_list_string_enumeration_2_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-2-3.xml",
class_name="NistschemaSvIvListStringEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_1_nistxml_sv_iv_list_string_enumeration_2_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-2-4.xml",
class_name="NistschemaSvIvListStringEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_1_nistxml_sv_iv_list_string_enumeration_2_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-2-5.xml",
class_name="NistschemaSvIvListStringEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_nistxml_sv_iv_list_string_enumeration_1_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-1-1.xml",
class_name="NistschemaSvIvListStringEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_nistxml_sv_iv_list_string_enumeration_1_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-1-2.xml",
class_name="NistschemaSvIvListStringEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_nistxml_sv_iv_list_string_enumeration_1_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-1-3.xml",
class_name="NistschemaSvIvListStringEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_nistxml_sv_iv_list_string_enumeration_1_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-1-4.xml",
class_name="NistschemaSvIvListStringEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_nistxml_sv_iv_list_string_enumeration_1_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-1-5.xml",
class_name="NistschemaSvIvListStringEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_4_nistxml_sv_iv_list_string_pattern_5_1(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_17435-1843
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_16376 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_11348 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14973 \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_16518-1410
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_10254-1649 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_17642 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18742 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_17310-1594.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-5-1.xml",
class_name="NistschemaSvIvListStringPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_4_nistxml_sv_iv_list_string_pattern_5_2(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_17435-1843
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_16376 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_11348 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14973 \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_16518-1410
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_10254-1649 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_17642 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18742 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_17310-1594.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-5-2.xml",
class_name="NistschemaSvIvListStringPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_4_nistxml_sv_iv_list_string_pattern_5_3(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_17435-1843
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_16376 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_11348 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14973 \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_16518-1410
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_10254-1649 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_17642 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18742 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_17310-1594.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-5-3.xml",
class_name="NistschemaSvIvListStringPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_4_nistxml_sv_iv_list_string_pattern_5_4(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_17435-1843
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_16376 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_11348 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14973 \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_16518-1410
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_10254-1649 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_17642 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18742 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_17310-1594.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-5-4.xml",
class_name="NistschemaSvIvListStringPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_4_nistxml_sv_iv_list_string_pattern_5_5(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_17435-1843
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_16376 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_11348 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14973 \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_16518-1410
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_10254-1649 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_17642 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18742 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_17310-1594.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-5-5.xml",
class_name="NistschemaSvIvListStringPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_3_nistxml_sv_iv_list_string_pattern_4_1(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15352 \d{1,
5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_18423-1985 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15520-1083 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18786-1596 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_12834-
1343.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-4-1.xml",
class_name="NistschemaSvIvListStringPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_3_nistxml_sv_iv_list_string_pattern_4_2(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15352 \d{1,
5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_18423-1985 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15520-1083 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18786-1596 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_12834-
1343.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-4-2.xml",
class_name="NistschemaSvIvListStringPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_3_nistxml_sv_iv_list_string_pattern_4_3(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15352 \d{1,
5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_18423-1985 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15520-1083 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18786-1596 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_12834-
1343.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-4-3.xml",
class_name="NistschemaSvIvListStringPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_3_nistxml_sv_iv_list_string_pattern_4_4(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15352 \d{1,
5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_18423-1985 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15520-1083 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18786-1596 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_12834-
1343.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-4-4.xml",
class_name="NistschemaSvIvListStringPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_3_nistxml_sv_iv_list_string_pattern_4_5(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15352 \d{1,
5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_18423-1985 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15520-1083 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18786-1596 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_12834-
1343.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-4-5.xml",
class_name="NistschemaSvIvListStringPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_2_nistxml_sv_iv_list_string_pattern_3_1(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11654-1789
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_19111-1980 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15774-1852 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18248-1891 \d{1,5
}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15314.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-3-1.xml",
class_name="NistschemaSvIvListStringPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_2_nistxml_sv_iv_list_string_pattern_3_2(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11654-1789
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_19111-1980 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15774-1852 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18248-1891 \d{1,5
}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15314.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-3-2.xml",
class_name="NistschemaSvIvListStringPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_2_nistxml_sv_iv_list_string_pattern_3_3(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11654-1789
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_19111-1980 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15774-1852 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18248-1891 \d{1,5
}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15314.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-3-3.xml",
class_name="NistschemaSvIvListStringPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_2_nistxml_sv_iv_list_string_pattern_3_4(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11654-1789
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_19111-1980 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15774-1852 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18248-1891 \d{1,5
}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15314.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-3-4.xml",
class_name="NistschemaSvIvListStringPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_2_nistxml_sv_iv_list_string_pattern_3_5(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11654-1789
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_19111-1980 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15774-1852 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18248-1891 \d{1,5
}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15314.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-3-5.xml",
class_name="NistschemaSvIvListStringPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_1_nistxml_sv_iv_list_string_pattern_2_1(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11551-1386
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_15792-1475 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16933 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_10446 \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_13824 \d{1,
5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10173-1992 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_10148-1029.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-2-1.xml",
class_name="NistschemaSvIvListStringPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_1_nistxml_sv_iv_list_string_pattern_2_2(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11551-1386
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_15792-1475 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16933 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_10446 \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_13824 \d{1,
5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10173-1992 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_10148-1029.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-2-2.xml",
class_name="NistschemaSvIvListStringPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_1_nistxml_sv_iv_list_string_pattern_2_3(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11551-1386
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_15792-1475 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16933 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_10446 \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_13824 \d{1,
5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10173-1992 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_10148-1029.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-2-3.xml",
class_name="NistschemaSvIvListStringPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_1_nistxml_sv_iv_list_string_pattern_2_4(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11551-1386
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_15792-1475 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16933 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_10446 \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_13824 \d{1,
5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10173-1992 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_10148-1029.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-2-4.xml",
class_name="NistschemaSvIvListStringPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_1_nistxml_sv_iv_list_string_pattern_2_5(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11551-1386
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_15792-1475 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16933 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_10446 \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_13824 \d{1,
5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10173-1992 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_10148-1029.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-2-5.xml",
class_name="NistschemaSvIvListStringPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_nistxml_sv_iv_list_string_pattern_1_1(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_19751 \d{1,
5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_11837-1623 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_14030 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13653-1327 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18424-
1338 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_19584-1412 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_11267 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_16578 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14818-1281.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-1-1.xml",
class_name="NistschemaSvIvListStringPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_nistxml_sv_iv_list_string_pattern_1_2(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_19751 \d{1,
5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_11837-1623 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_14030 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13653-1327 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18424-
1338 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_19584-1412 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_11267 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_16578 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14818-1281.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-1-2.xml",
class_name="NistschemaSvIvListStringPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_nistxml_sv_iv_list_string_pattern_1_3(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_19751 \d{1,
5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_11837-1623 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_14030 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13653-1327 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18424-
1338 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_19584-1412 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_11267 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_16578 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14818-1281.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-1-3.xml",
class_name="NistschemaSvIvListStringPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_nistxml_sv_iv_list_string_pattern_1_4(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_19751 \d{1,
5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_11837-1623 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_14030 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13653-1327 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18424-
1338 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_19584-1412 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_11267 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_16578 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14818-1281.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-1-4.xml",
class_name="NistschemaSvIvListStringPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_nistxml_sv_iv_list_string_pattern_1_5(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_19751 \d{1,
5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_11837-1623 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_14030 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13653-1327 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18424-
1338 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_19584-1412 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_11267 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_16578 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14818-1281.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-1-5.xml",
class_name="NistschemaSvIvListStringPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_4_nistxml_sv_iv_list_string_length_5_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-5-1.xml",
class_name="NistschemaSvIvListStringLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_4_nistxml_sv_iv_list_string_length_5_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-5-2.xml",
class_name="NistschemaSvIvListStringLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_4_nistxml_sv_iv_list_string_length_5_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-5-3.xml",
class_name="NistschemaSvIvListStringLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_4_nistxml_sv_iv_list_string_length_5_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-5-4.xml",
class_name="NistschemaSvIvListStringLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_4_nistxml_sv_iv_list_string_length_5_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-5-5.xml",
class_name="NistschemaSvIvListStringLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_3_nistxml_sv_iv_list_string_length_4_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-4-1.xml",
class_name="NistschemaSvIvListStringLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_3_nistxml_sv_iv_list_string_length_4_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-4-2.xml",
class_name="NistschemaSvIvListStringLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_3_nistxml_sv_iv_list_string_length_4_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-4-3.xml",
class_name="NistschemaSvIvListStringLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_3_nistxml_sv_iv_list_string_length_4_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-4-4.xml",
class_name="NistschemaSvIvListStringLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_3_nistxml_sv_iv_list_string_length_4_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-4-5.xml",
class_name="NistschemaSvIvListStringLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_2_nistxml_sv_iv_list_string_length_3_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-3-1.xml",
class_name="NistschemaSvIvListStringLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_2_nistxml_sv_iv_list_string_length_3_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-3-2.xml",
class_name="NistschemaSvIvListStringLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_2_nistxml_sv_iv_list_string_length_3_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-3-3.xml",
class_name="NistschemaSvIvListStringLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_2_nistxml_sv_iv_list_string_length_3_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-3-4.xml",
class_name="NistschemaSvIvListStringLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_2_nistxml_sv_iv_list_string_length_3_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-3-5.xml",
class_name="NistschemaSvIvListStringLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_1_nistxml_sv_iv_list_string_length_2_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-2-1.xml",
class_name="NistschemaSvIvListStringLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_1_nistxml_sv_iv_list_string_length_2_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-2-2.xml",
class_name="NistschemaSvIvListStringLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_1_nistxml_sv_iv_list_string_length_2_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-2-3.xml",
class_name="NistschemaSvIvListStringLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_1_nistxml_sv_iv_list_string_length_2_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-2-4.xml",
class_name="NistschemaSvIvListStringLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_1_nistxml_sv_iv_list_string_length_2_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-2-5.xml",
class_name="NistschemaSvIvListStringLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_nistxml_sv_iv_list_string_length_1_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-1-1.xml",
class_name="NistschemaSvIvListStringLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_nistxml_sv_iv_list_string_length_1_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-1-2.xml",
class_name="NistschemaSvIvListStringLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_nistxml_sv_iv_list_string_length_1_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-1-3.xml",
class_name="NistschemaSvIvListStringLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_nistxml_sv_iv_list_string_length_1_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-1-4.xml",
class_name="NistschemaSvIvListStringLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_nistxml_sv_iv_list_string_length_1_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-1-5.xml",
class_name="NistschemaSvIvListStringLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_4_nistxml_sv_iv_list_string_min_length_5_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-5-1.xml",
class_name="NistschemaSvIvListStringMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_4_nistxml_sv_iv_list_string_min_length_5_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-5-2.xml",
class_name="NistschemaSvIvListStringMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_4_nistxml_sv_iv_list_string_min_length_5_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-5-3.xml",
class_name="NistschemaSvIvListStringMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_4_nistxml_sv_iv_list_string_min_length_5_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-5-4.xml",
class_name="NistschemaSvIvListStringMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_4_nistxml_sv_iv_list_string_min_length_5_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-5-5.xml",
class_name="NistschemaSvIvListStringMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_3_nistxml_sv_iv_list_string_min_length_4_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-4-1.xml",
class_name="NistschemaSvIvListStringMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_3_nistxml_sv_iv_list_string_min_length_4_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-4-2.xml",
class_name="NistschemaSvIvListStringMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_3_nistxml_sv_iv_list_string_min_length_4_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-4-3.xml",
class_name="NistschemaSvIvListStringMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_3_nistxml_sv_iv_list_string_min_length_4_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-4-4.xml",
class_name="NistschemaSvIvListStringMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_3_nistxml_sv_iv_list_string_min_length_4_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-4-5.xml",
class_name="NistschemaSvIvListStringMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_2_nistxml_sv_iv_list_string_min_length_3_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-3-1.xml",
class_name="NistschemaSvIvListStringMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_2_nistxml_sv_iv_list_string_min_length_3_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-3-2.xml",
class_name="NistschemaSvIvListStringMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_2_nistxml_sv_iv_list_string_min_length_3_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-3-3.xml",
class_name="NistschemaSvIvListStringMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_2_nistxml_sv_iv_list_string_min_length_3_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-3-4.xml",
class_name="NistschemaSvIvListStringMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_2_nistxml_sv_iv_list_string_min_length_3_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-3-5.xml",
class_name="NistschemaSvIvListStringMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_1_nistxml_sv_iv_list_string_min_length_2_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-2-1.xml",
class_name="NistschemaSvIvListStringMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_1_nistxml_sv_iv_list_string_min_length_2_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-2-2.xml",
class_name="NistschemaSvIvListStringMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_1_nistxml_sv_iv_list_string_min_length_2_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-2-3.xml",
class_name="NistschemaSvIvListStringMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_1_nistxml_sv_iv_list_string_min_length_2_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-2-4.xml",
class_name="NistschemaSvIvListStringMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_1_nistxml_sv_iv_list_string_min_length_2_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-2-5.xml",
class_name="NistschemaSvIvListStringMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_nistxml_sv_iv_list_string_min_length_1_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-1-1.xml",
class_name="NistschemaSvIvListStringMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_nistxml_sv_iv_list_string_min_length_1_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-1-2.xml",
class_name="NistschemaSvIvListStringMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_nistxml_sv_iv_list_string_min_length_1_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-1-3.xml",
class_name="NistschemaSvIvListStringMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_nistxml_sv_iv_list_string_min_length_1_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-1-4.xml",
class_name="NistschemaSvIvListStringMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_nistxml_sv_iv_list_string_min_length_1_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-1-5.xml",
class_name="NistschemaSvIvListStringMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_4_nistxml_sv_iv_list_string_max_length_5_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-5-1.xml",
class_name="NistschemaSvIvListStringMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_4_nistxml_sv_iv_list_string_max_length_5_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-5-2.xml",
class_name="NistschemaSvIvListStringMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_4_nistxml_sv_iv_list_string_max_length_5_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-5-3.xml",
class_name="NistschemaSvIvListStringMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_4_nistxml_sv_iv_list_string_max_length_5_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-5-4.xml",
class_name="NistschemaSvIvListStringMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_4_nistxml_sv_iv_list_string_max_length_5_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-5-5.xml",
class_name="NistschemaSvIvListStringMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_3_nistxml_sv_iv_list_string_max_length_4_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-4-1.xml",
class_name="NistschemaSvIvListStringMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_3_nistxml_sv_iv_list_string_max_length_4_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-4-2.xml",
class_name="NistschemaSvIvListStringMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_3_nistxml_sv_iv_list_string_max_length_4_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-4-3.xml",
class_name="NistschemaSvIvListStringMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_3_nistxml_sv_iv_list_string_max_length_4_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-4-4.xml",
class_name="NistschemaSvIvListStringMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_3_nistxml_sv_iv_list_string_max_length_4_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-4-5.xml",
class_name="NistschemaSvIvListStringMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_2_nistxml_sv_iv_list_string_max_length_3_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-3-1.xml",
class_name="NistschemaSvIvListStringMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_2_nistxml_sv_iv_list_string_max_length_3_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-3-2.xml",
class_name="NistschemaSvIvListStringMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_2_nistxml_sv_iv_list_string_max_length_3_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-3-3.xml",
class_name="NistschemaSvIvListStringMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_2_nistxml_sv_iv_list_string_max_length_3_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-3-4.xml",
class_name="NistschemaSvIvListStringMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_2_nistxml_sv_iv_list_string_max_length_3_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-3-5.xml",
class_name="NistschemaSvIvListStringMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_1_nistxml_sv_iv_list_string_max_length_2_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-2-1.xml",
class_name="NistschemaSvIvListStringMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_1_nistxml_sv_iv_list_string_max_length_2_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-2-2.xml",
class_name="NistschemaSvIvListStringMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_1_nistxml_sv_iv_list_string_max_length_2_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-2-3.xml",
class_name="NistschemaSvIvListStringMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_1_nistxml_sv_iv_list_string_max_length_2_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-2-4.xml",
class_name="NistschemaSvIvListStringMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_1_nistxml_sv_iv_list_string_max_length_2_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-2-5.xml",
class_name="NistschemaSvIvListStringMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_nistxml_sv_iv_list_string_max_length_1_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-1-1.xml",
class_name="NistschemaSvIvListStringMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_nistxml_sv_iv_list_string_max_length_1_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-1-2.xml",
class_name="NistschemaSvIvListStringMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_nistxml_sv_iv_list_string_max_length_1_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-1-3.xml",
class_name="NistschemaSvIvListStringMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_nistxml_sv_iv_list_string_max_length_1_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-1-4.xml",
class_name="NistschemaSvIvListStringMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_nistxml_sv_iv_list_string_max_length_1_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-1-5.xml",
class_name="NistschemaSvIvListStringMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_g_month_white_space_nistxml_sv_iv_list_g_month_white_space_1_1(mode, save_output, output_format):
"""
Type list/gMonth is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/gMonth/Schema+Instance/NISTSchema-SV-IV-list-gMonth-whiteSpace-1.xsd",
instance="nistData/list/gMonth/Schema+Instance/NISTXML-SV-IV-list-gMonth-whiteSpace-1-1.xml",
class_name="NistschemaSvIvListGMonthWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_g_month_white_space_nistxml_sv_iv_list_g_month_white_space_1_2(mode, save_output, output_format):
"""
Type list/gMonth is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/gMonth/Schema+Instance/NISTSchema-SV-IV-list-gMonth-whiteSpace-1.xsd",
instance="nistData/list/gMonth/Schema+Instance/NISTXML-SV-IV-list-gMonth-whiteSpace-1-2.xml",
class_name="NistschemaSvIvListGMonthWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_g_month_white_space_nistxml_sv_iv_list_g_month_white_space_1_3(mode, save_output, output_format):
"""
Type list/gMonth is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/gMonth/Schema+Instance/NISTSchema-SV-IV-list-gMonth-whiteSpace-1.xsd",
instance="nistData/list/gMonth/Schema+Instance/NISTXML-SV-IV-list-gMonth-whiteSpace-1-3.xml",
class_name="NistschemaSvIvListGMonthWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_g_month_white_space_nistxml_sv_iv_list_g_month_white_space_1_4(mode, save_output, output_format):
"""
Type list/gMonth is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/gMonth/Schema+Instance/NISTSchema-SV-IV-list-gMonth-whiteSpace-1.xsd",
instance="nistData/list/gMonth/Schema+Instance/NISTXML-SV-IV-list-gMonth-whiteSpace-1-4.xml",
class_name="NistschemaSvIvListGMonthWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_g_month_white_space_nistxml_sv_iv_list_g_month_white_space_1_5(mode, save_output, output_format):
"""
Type list/gMonth is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/gMonth/Schema+Instance/NISTSchema-SV-IV-list-gMonth-whiteSpace-1.xsd",
instance="nistData/list/gMonth/Schema+Instance/NISTXML-SV-IV-list-gMonth-whiteSpace-1-5.xml",
class_name="NistschemaSvIvListGMonthWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
) | tests/test_nist_meta_2000.py | from tests.utils import assert_bindings
def test_list_id_pattern_1_nistxml_sv_iv_list_id_pattern_2_1(mode, save_output, output_format):
r"""
Type list/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{5} [\i-[:]][\c-[:]]{36} [\i-[:]][\c-[:]]{42}
[\i-[:]][\c-[:]]{37} [\i-[:]][\c-[:]]{23} [\i-[:]][\c-[:]]{20}
[\i-[:]][\c-[:]]{4} [\i-[:]][\c-[:]]{36}.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-pattern-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-pattern-2-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_pattern_1_nistxml_sv_iv_list_id_pattern_2_2(mode, save_output, output_format):
r"""
Type list/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{5} [\i-[:]][\c-[:]]{36} [\i-[:]][\c-[:]]{42}
[\i-[:]][\c-[:]]{37} [\i-[:]][\c-[:]]{23} [\i-[:]][\c-[:]]{20}
[\i-[:]][\c-[:]]{4} [\i-[:]][\c-[:]]{36}.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-pattern-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-pattern-2-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_pattern_1_nistxml_sv_iv_list_id_pattern_2_3(mode, save_output, output_format):
r"""
Type list/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{5} [\i-[:]][\c-[:]]{36} [\i-[:]][\c-[:]]{42}
[\i-[:]][\c-[:]]{37} [\i-[:]][\c-[:]]{23} [\i-[:]][\c-[:]]{20}
[\i-[:]][\c-[:]]{4} [\i-[:]][\c-[:]]{36}.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-pattern-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-pattern-2-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_pattern_1_nistxml_sv_iv_list_id_pattern_2_4(mode, save_output, output_format):
r"""
Type list/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{5} [\i-[:]][\c-[:]]{36} [\i-[:]][\c-[:]]{42}
[\i-[:]][\c-[:]]{37} [\i-[:]][\c-[:]]{23} [\i-[:]][\c-[:]]{20}
[\i-[:]][\c-[:]]{4} [\i-[:]][\c-[:]]{36}.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-pattern-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-pattern-2-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_pattern_1_nistxml_sv_iv_list_id_pattern_2_5(mode, save_output, output_format):
r"""
Type list/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{5} [\i-[:]][\c-[:]]{36} [\i-[:]][\c-[:]]{42}
[\i-[:]][\c-[:]]{37} [\i-[:]][\c-[:]]{23} [\i-[:]][\c-[:]]{20}
[\i-[:]][\c-[:]]{4} [\i-[:]][\c-[:]]{36}.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-pattern-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-pattern-2-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_pattern_nistxml_sv_iv_list_id_pattern_1_1(mode, save_output, output_format):
r"""
Type list/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{2} [\i-[:]][\c-[:]]{57} [\i-[:]][\c-[:]]{31}
[\i-[:]][\c-[:]]{5} [\i-[:]][\c-[:]]{10} [\i-[:]][\c-[:]]{47}
[\i-[:]][\c-[:]]{21}.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-pattern-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-pattern-1-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_pattern_nistxml_sv_iv_list_id_pattern_1_2(mode, save_output, output_format):
r"""
Type list/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{2} [\i-[:]][\c-[:]]{57} [\i-[:]][\c-[:]]{31}
[\i-[:]][\c-[:]]{5} [\i-[:]][\c-[:]]{10} [\i-[:]][\c-[:]]{47}
[\i-[:]][\c-[:]]{21}.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-pattern-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-pattern-1-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_pattern_nistxml_sv_iv_list_id_pattern_1_3(mode, save_output, output_format):
r"""
Type list/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{2} [\i-[:]][\c-[:]]{57} [\i-[:]][\c-[:]]{31}
[\i-[:]][\c-[:]]{5} [\i-[:]][\c-[:]]{10} [\i-[:]][\c-[:]]{47}
[\i-[:]][\c-[:]]{21}.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-pattern-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-pattern-1-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_pattern_nistxml_sv_iv_list_id_pattern_1_4(mode, save_output, output_format):
r"""
Type list/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{2} [\i-[:]][\c-[:]]{57} [\i-[:]][\c-[:]]{31}
[\i-[:]][\c-[:]]{5} [\i-[:]][\c-[:]]{10} [\i-[:]][\c-[:]]{47}
[\i-[:]][\c-[:]]{21}.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-pattern-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-pattern-1-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_pattern_nistxml_sv_iv_list_id_pattern_1_5(mode, save_output, output_format):
r"""
Type list/ID is restricted by facet pattern with value
[\i-[:]][\c-[:]]{2} [\i-[:]][\c-[:]]{57} [\i-[:]][\c-[:]]{31}
[\i-[:]][\c-[:]]{5} [\i-[:]][\c-[:]]{10} [\i-[:]][\c-[:]]{47}
[\i-[:]][\c-[:]]{21}.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-pattern-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-pattern-1-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_4_nistxml_sv_iv_list_id_length_5_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-5-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_4_nistxml_sv_iv_list_id_length_5_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-5-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_4_nistxml_sv_iv_list_id_length_5_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-5-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_4_nistxml_sv_iv_list_id_length_5_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-5-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_4_nistxml_sv_iv_list_id_length_5_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-5-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_3_nistxml_sv_iv_list_id_length_4_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-4-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_3_nistxml_sv_iv_list_id_length_4_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-4-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_3_nistxml_sv_iv_list_id_length_4_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-4-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_3_nistxml_sv_iv_list_id_length_4_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-4-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_3_nistxml_sv_iv_list_id_length_4_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-4-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_2_nistxml_sv_iv_list_id_length_3_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-3-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_2_nistxml_sv_iv_list_id_length_3_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-3-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_2_nistxml_sv_iv_list_id_length_3_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-3-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_2_nistxml_sv_iv_list_id_length_3_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-3-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_2_nistxml_sv_iv_list_id_length_3_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-3-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_1_nistxml_sv_iv_list_id_length_2_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-2-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_1_nistxml_sv_iv_list_id_length_2_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-2-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_1_nistxml_sv_iv_list_id_length_2_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-2-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_1_nistxml_sv_iv_list_id_length_2_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-2-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_1_nistxml_sv_iv_list_id_length_2_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-2-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_nistxml_sv_iv_list_id_length_1_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-1-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_nistxml_sv_iv_list_id_length_1_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-1-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_nistxml_sv_iv_list_id_length_1_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-1-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_nistxml_sv_iv_list_id_length_1_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-1-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_length_nistxml_sv_iv_list_id_length_1_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-length-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-length-1-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_4_nistxml_sv_iv_list_id_min_length_5_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-5-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_4_nistxml_sv_iv_list_id_min_length_5_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-5-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_4_nistxml_sv_iv_list_id_min_length_5_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-5-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_4_nistxml_sv_iv_list_id_min_length_5_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-5-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_4_nistxml_sv_iv_list_id_min_length_5_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-5-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_3_nistxml_sv_iv_list_id_min_length_4_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-4-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_3_nistxml_sv_iv_list_id_min_length_4_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-4-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_3_nistxml_sv_iv_list_id_min_length_4_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-4-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_3_nistxml_sv_iv_list_id_min_length_4_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-4-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_3_nistxml_sv_iv_list_id_min_length_4_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-4-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_2_nistxml_sv_iv_list_id_min_length_3_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-3-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_2_nistxml_sv_iv_list_id_min_length_3_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-3-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_2_nistxml_sv_iv_list_id_min_length_3_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-3-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_2_nistxml_sv_iv_list_id_min_length_3_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-3-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_2_nistxml_sv_iv_list_id_min_length_3_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-3-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_1_nistxml_sv_iv_list_id_min_length_2_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-2-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_1_nistxml_sv_iv_list_id_min_length_2_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-2-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_1_nistxml_sv_iv_list_id_min_length_2_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-2-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_1_nistxml_sv_iv_list_id_min_length_2_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-2-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_1_nistxml_sv_iv_list_id_min_length_2_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-2-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_nistxml_sv_iv_list_id_min_length_1_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-1-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_nistxml_sv_iv_list_id_min_length_1_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-1-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_nistxml_sv_iv_list_id_min_length_1_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-1-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_nistxml_sv_iv_list_id_min_length_1_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-1-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_min_length_nistxml_sv_iv_list_id_min_length_1_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-minLength-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-minLength-1-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_4_nistxml_sv_iv_list_id_max_length_5_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-5-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_4_nistxml_sv_iv_list_id_max_length_5_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-5-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_4_nistxml_sv_iv_list_id_max_length_5_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-5-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_4_nistxml_sv_iv_list_id_max_length_5_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-5-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_4_nistxml_sv_iv_list_id_max_length_5_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-5.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-5-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_3_nistxml_sv_iv_list_id_max_length_4_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-4-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_3_nistxml_sv_iv_list_id_max_length_4_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-4-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_3_nistxml_sv_iv_list_id_max_length_4_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-4-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_3_nistxml_sv_iv_list_id_max_length_4_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-4-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_3_nistxml_sv_iv_list_id_max_length_4_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-4.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-4-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_2_nistxml_sv_iv_list_id_max_length_3_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-3-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_2_nistxml_sv_iv_list_id_max_length_3_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-3-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_2_nistxml_sv_iv_list_id_max_length_3_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-3-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_2_nistxml_sv_iv_list_id_max_length_3_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-3-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_2_nistxml_sv_iv_list_id_max_length_3_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-3.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-3-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_1_nistxml_sv_iv_list_id_max_length_2_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-2-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_1_nistxml_sv_iv_list_id_max_length_2_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-2-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_1_nistxml_sv_iv_list_id_max_length_2_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-2-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_1_nistxml_sv_iv_list_id_max_length_2_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-2-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_1_nistxml_sv_iv_list_id_max_length_2_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-2.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-2-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_nistxml_sv_iv_list_id_max_length_1_1(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-1-1.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_nistxml_sv_iv_list_id_max_length_1_2(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-1-2.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_nistxml_sv_iv_list_id_max_length_1_3(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-1-3.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_nistxml_sv_iv_list_id_max_length_1_4(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-1-4.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_id_max_length_nistxml_sv_iv_list_id_max_length_1_5(mode, save_output, output_format):
"""
Type list/ID is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/ID/Schema+Instance/NISTSchema-SV-IV-list-ID-maxLength-1.xsd",
instance="nistData/list/ID/Schema+Instance/NISTXML-SV-IV-list-ID-maxLength-1-5.xml",
class_name="Out",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_white_space_nistxml_sv_iv_list_ncname_white_space_1_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-whiteSpace-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-whiteSpace-1-1.xml",
class_name="NistschemaSvIvListNcnameWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_white_space_nistxml_sv_iv_list_ncname_white_space_1_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-whiteSpace-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-whiteSpace-1-2.xml",
class_name="NistschemaSvIvListNcnameWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_white_space_nistxml_sv_iv_list_ncname_white_space_1_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-whiteSpace-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-whiteSpace-1-3.xml",
class_name="NistschemaSvIvListNcnameWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_white_space_nistxml_sv_iv_list_ncname_white_space_1_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-whiteSpace-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-whiteSpace-1-4.xml",
class_name="NistschemaSvIvListNcnameWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_white_space_nistxml_sv_iv_list_ncname_white_space_1_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-whiteSpace-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-whiteSpace-1-5.xml",
class_name="NistschemaSvIvListNcnameWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_4_nistxml_sv_iv_list_ncname_enumeration_5_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-5-1.xml",
class_name="NistschemaSvIvListNcnameEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_4_nistxml_sv_iv_list_ncname_enumeration_5_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-5-2.xml",
class_name="NistschemaSvIvListNcnameEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_4_nistxml_sv_iv_list_ncname_enumeration_5_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-5-3.xml",
class_name="NistschemaSvIvListNcnameEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_4_nistxml_sv_iv_list_ncname_enumeration_5_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-5-4.xml",
class_name="NistschemaSvIvListNcnameEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_4_nistxml_sv_iv_list_ncname_enumeration_5_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-5-5.xml",
class_name="NistschemaSvIvListNcnameEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_3_nistxml_sv_iv_list_ncname_enumeration_4_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-4-1.xml",
class_name="NistschemaSvIvListNcnameEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_3_nistxml_sv_iv_list_ncname_enumeration_4_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-4-2.xml",
class_name="NistschemaSvIvListNcnameEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_3_nistxml_sv_iv_list_ncname_enumeration_4_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-4-3.xml",
class_name="NistschemaSvIvListNcnameEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_3_nistxml_sv_iv_list_ncname_enumeration_4_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-4-4.xml",
class_name="NistschemaSvIvListNcnameEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_3_nistxml_sv_iv_list_ncname_enumeration_4_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-4-5.xml",
class_name="NistschemaSvIvListNcnameEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_2_nistxml_sv_iv_list_ncname_enumeration_3_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-3-1.xml",
class_name="NistschemaSvIvListNcnameEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_2_nistxml_sv_iv_list_ncname_enumeration_3_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-3-2.xml",
class_name="NistschemaSvIvListNcnameEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_2_nistxml_sv_iv_list_ncname_enumeration_3_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-3-3.xml",
class_name="NistschemaSvIvListNcnameEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_2_nistxml_sv_iv_list_ncname_enumeration_3_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-3-4.xml",
class_name="NistschemaSvIvListNcnameEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_2_nistxml_sv_iv_list_ncname_enumeration_3_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-3-5.xml",
class_name="NistschemaSvIvListNcnameEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_1_nistxml_sv_iv_list_ncname_enumeration_2_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-2-1.xml",
class_name="NistschemaSvIvListNcnameEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_1_nistxml_sv_iv_list_ncname_enumeration_2_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-2-2.xml",
class_name="NistschemaSvIvListNcnameEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_1_nistxml_sv_iv_list_ncname_enumeration_2_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-2-3.xml",
class_name="NistschemaSvIvListNcnameEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_1_nistxml_sv_iv_list_ncname_enumeration_2_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-2-4.xml",
class_name="NistschemaSvIvListNcnameEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_1_nistxml_sv_iv_list_ncname_enumeration_2_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-2-5.xml",
class_name="NistschemaSvIvListNcnameEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_nistxml_sv_iv_list_ncname_enumeration_1_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-1-1.xml",
class_name="NistschemaSvIvListNcnameEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_nistxml_sv_iv_list_ncname_enumeration_1_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-1-2.xml",
class_name="NistschemaSvIvListNcnameEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_nistxml_sv_iv_list_ncname_enumeration_1_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-1-3.xml",
class_name="NistschemaSvIvListNcnameEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_nistxml_sv_iv_list_ncname_enumeration_1_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-1-4.xml",
class_name="NistschemaSvIvListNcnameEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_enumeration_nistxml_sv_iv_list_ncname_enumeration_1_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-enumeration-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-enumeration-1-5.xml",
class_name="NistschemaSvIvListNcnameEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_4_nistxml_sv_iv_list_ncname_pattern_5_1(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{40} [\i-[:]][\c-[:]]{59} [\i-[:]][\c-[:]]{55}
[\i-[:]][\c-[:]]{41} [\i-[:]][\c-[:]]{12} [\i-[:]][\c-[:]]{25}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-5-1.xml",
class_name="NistschemaSvIvListNcnamePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_4_nistxml_sv_iv_list_ncname_pattern_5_2(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{40} [\i-[:]][\c-[:]]{59} [\i-[:]][\c-[:]]{55}
[\i-[:]][\c-[:]]{41} [\i-[:]][\c-[:]]{12} [\i-[:]][\c-[:]]{25}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-5-2.xml",
class_name="NistschemaSvIvListNcnamePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_4_nistxml_sv_iv_list_ncname_pattern_5_3(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{40} [\i-[:]][\c-[:]]{59} [\i-[:]][\c-[:]]{55}
[\i-[:]][\c-[:]]{41} [\i-[:]][\c-[:]]{12} [\i-[:]][\c-[:]]{25}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-5-3.xml",
class_name="NistschemaSvIvListNcnamePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_4_nistxml_sv_iv_list_ncname_pattern_5_4(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{40} [\i-[:]][\c-[:]]{59} [\i-[:]][\c-[:]]{55}
[\i-[:]][\c-[:]]{41} [\i-[:]][\c-[:]]{12} [\i-[:]][\c-[:]]{25}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-5-4.xml",
class_name="NistschemaSvIvListNcnamePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_4_nistxml_sv_iv_list_ncname_pattern_5_5(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{40} [\i-[:]][\c-[:]]{59} [\i-[:]][\c-[:]]{55}
[\i-[:]][\c-[:]]{41} [\i-[:]][\c-[:]]{12} [\i-[:]][\c-[:]]{25}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-5-5.xml",
class_name="NistschemaSvIvListNcnamePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_3_nistxml_sv_iv_list_ncname_pattern_4_1(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{50} [\i-[:]][\c-[:]]{47}
[\i-[:]][\c-[:]]{60} [\i-[:]][\c-[:]]{10} [\i-[:]][\c-[:]]{0}
[\i-[:]][\c-[:]]{17} [\i-[:]][\c-[:]]{45} [\i-[:]][\c-[:]]{50}
[\i-[:]][\c-[:]]{36}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-4-1.xml",
class_name="NistschemaSvIvListNcnamePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_3_nistxml_sv_iv_list_ncname_pattern_4_2(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{50} [\i-[:]][\c-[:]]{47}
[\i-[:]][\c-[:]]{60} [\i-[:]][\c-[:]]{10} [\i-[:]][\c-[:]]{0}
[\i-[:]][\c-[:]]{17} [\i-[:]][\c-[:]]{45} [\i-[:]][\c-[:]]{50}
[\i-[:]][\c-[:]]{36}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-4-2.xml",
class_name="NistschemaSvIvListNcnamePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_3_nistxml_sv_iv_list_ncname_pattern_4_3(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{50} [\i-[:]][\c-[:]]{47}
[\i-[:]][\c-[:]]{60} [\i-[:]][\c-[:]]{10} [\i-[:]][\c-[:]]{0}
[\i-[:]][\c-[:]]{17} [\i-[:]][\c-[:]]{45} [\i-[:]][\c-[:]]{50}
[\i-[:]][\c-[:]]{36}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-4-3.xml",
class_name="NistschemaSvIvListNcnamePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_3_nistxml_sv_iv_list_ncname_pattern_4_4(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{50} [\i-[:]][\c-[:]]{47}
[\i-[:]][\c-[:]]{60} [\i-[:]][\c-[:]]{10} [\i-[:]][\c-[:]]{0}
[\i-[:]][\c-[:]]{17} [\i-[:]][\c-[:]]{45} [\i-[:]][\c-[:]]{50}
[\i-[:]][\c-[:]]{36}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-4-4.xml",
class_name="NistschemaSvIvListNcnamePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_3_nistxml_sv_iv_list_ncname_pattern_4_5(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{50} [\i-[:]][\c-[:]]{47}
[\i-[:]][\c-[:]]{60} [\i-[:]][\c-[:]]{10} [\i-[:]][\c-[:]]{0}
[\i-[:]][\c-[:]]{17} [\i-[:]][\c-[:]]{45} [\i-[:]][\c-[:]]{50}
[\i-[:]][\c-[:]]{36}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-4-5.xml",
class_name="NistschemaSvIvListNcnamePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_2_nistxml_sv_iv_list_ncname_pattern_3_1(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{33} [\i-[:]][\c-[:]]{63} [\i-[:]][\c-[:]]{13}
[\i-[:]][\c-[:]]{35} [\i-[:]][\c-[:]]{29}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-3-1.xml",
class_name="NistschemaSvIvListNcnamePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_2_nistxml_sv_iv_list_ncname_pattern_3_2(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{33} [\i-[:]][\c-[:]]{63} [\i-[:]][\c-[:]]{13}
[\i-[:]][\c-[:]]{35} [\i-[:]][\c-[:]]{29}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-3-2.xml",
class_name="NistschemaSvIvListNcnamePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_2_nistxml_sv_iv_list_ncname_pattern_3_3(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{33} [\i-[:]][\c-[:]]{63} [\i-[:]][\c-[:]]{13}
[\i-[:]][\c-[:]]{35} [\i-[:]][\c-[:]]{29}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-3-3.xml",
class_name="NistschemaSvIvListNcnamePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_2_nistxml_sv_iv_list_ncname_pattern_3_4(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{33} [\i-[:]][\c-[:]]{63} [\i-[:]][\c-[:]]{13}
[\i-[:]][\c-[:]]{35} [\i-[:]][\c-[:]]{29}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-3-4.xml",
class_name="NistschemaSvIvListNcnamePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_2_nistxml_sv_iv_list_ncname_pattern_3_5(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{33} [\i-[:]][\c-[:]]{63} [\i-[:]][\c-[:]]{13}
[\i-[:]][\c-[:]]{35} [\i-[:]][\c-[:]]{29}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-3-5.xml",
class_name="NistschemaSvIvListNcnamePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_1_nistxml_sv_iv_list_ncname_pattern_2_1(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{7} [\i-[:]][\c-[:]]{35} [\i-[:]][\c-[:]]{46}
[\i-[:]][\c-[:]]{25} [\i-[:]][\c-[:]]{53} [\i-[:]][\c-[:]]{58}
[\i-[:]][\c-[:]]{11}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-2-1.xml",
class_name="NistschemaSvIvListNcnamePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_1_nistxml_sv_iv_list_ncname_pattern_2_2(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{7} [\i-[:]][\c-[:]]{35} [\i-[:]][\c-[:]]{46}
[\i-[:]][\c-[:]]{25} [\i-[:]][\c-[:]]{53} [\i-[:]][\c-[:]]{58}
[\i-[:]][\c-[:]]{11}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-2-2.xml",
class_name="NistschemaSvIvListNcnamePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_1_nistxml_sv_iv_list_ncname_pattern_2_3(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{7} [\i-[:]][\c-[:]]{35} [\i-[:]][\c-[:]]{46}
[\i-[:]][\c-[:]]{25} [\i-[:]][\c-[:]]{53} [\i-[:]][\c-[:]]{58}
[\i-[:]][\c-[:]]{11}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-2-3.xml",
class_name="NistschemaSvIvListNcnamePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_1_nistxml_sv_iv_list_ncname_pattern_2_4(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{7} [\i-[:]][\c-[:]]{35} [\i-[:]][\c-[:]]{46}
[\i-[:]][\c-[:]]{25} [\i-[:]][\c-[:]]{53} [\i-[:]][\c-[:]]{58}
[\i-[:]][\c-[:]]{11}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-2-4.xml",
class_name="NistschemaSvIvListNcnamePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_1_nistxml_sv_iv_list_ncname_pattern_2_5(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{7} [\i-[:]][\c-[:]]{35} [\i-[:]][\c-[:]]{46}
[\i-[:]][\c-[:]]{25} [\i-[:]][\c-[:]]{53} [\i-[:]][\c-[:]]{58}
[\i-[:]][\c-[:]]{11}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-2-5.xml",
class_name="NistschemaSvIvListNcnamePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_nistxml_sv_iv_list_ncname_pattern_1_1(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{39} [\i-[:]][\c-[:]]{15} [\i-[:]][\c-[:]]{23}
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{55} [\i-[:]][\c-[:]]{18}
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{1}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-1-1.xml",
class_name="NistschemaSvIvListNcnamePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_nistxml_sv_iv_list_ncname_pattern_1_2(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{39} [\i-[:]][\c-[:]]{15} [\i-[:]][\c-[:]]{23}
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{55} [\i-[:]][\c-[:]]{18}
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{1}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-1-2.xml",
class_name="NistschemaSvIvListNcnamePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_nistxml_sv_iv_list_ncname_pattern_1_3(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{39} [\i-[:]][\c-[:]]{15} [\i-[:]][\c-[:]]{23}
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{55} [\i-[:]][\c-[:]]{18}
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{1}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-1-3.xml",
class_name="NistschemaSvIvListNcnamePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_nistxml_sv_iv_list_ncname_pattern_1_4(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{39} [\i-[:]][\c-[:]]{15} [\i-[:]][\c-[:]]{23}
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{55} [\i-[:]][\c-[:]]{18}
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{1}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-1-4.xml",
class_name="NistschemaSvIvListNcnamePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_pattern_nistxml_sv_iv_list_ncname_pattern_1_5(mode, save_output, output_format):
r"""
Type list/NCName is restricted by facet pattern with value
[\i-[:]][\c-[:]]{39} [\i-[:]][\c-[:]]{15} [\i-[:]][\c-[:]]{23}
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{55} [\i-[:]][\c-[:]]{18}
[\i-[:]][\c-[:]]{44} [\i-[:]][\c-[:]]{1}.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-pattern-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-pattern-1-5.xml",
class_name="NistschemaSvIvListNcnamePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_4_nistxml_sv_iv_list_ncname_length_5_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-5-1.xml",
class_name="NistschemaSvIvListNcnameLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_4_nistxml_sv_iv_list_ncname_length_5_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-5-2.xml",
class_name="NistschemaSvIvListNcnameLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_4_nistxml_sv_iv_list_ncname_length_5_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-5-3.xml",
class_name="NistschemaSvIvListNcnameLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_4_nistxml_sv_iv_list_ncname_length_5_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-5-4.xml",
class_name="NistschemaSvIvListNcnameLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_4_nistxml_sv_iv_list_ncname_length_5_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-5-5.xml",
class_name="NistschemaSvIvListNcnameLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_3_nistxml_sv_iv_list_ncname_length_4_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-4-1.xml",
class_name="NistschemaSvIvListNcnameLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_3_nistxml_sv_iv_list_ncname_length_4_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-4-2.xml",
class_name="NistschemaSvIvListNcnameLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_3_nistxml_sv_iv_list_ncname_length_4_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-4-3.xml",
class_name="NistschemaSvIvListNcnameLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_3_nistxml_sv_iv_list_ncname_length_4_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-4-4.xml",
class_name="NistschemaSvIvListNcnameLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_3_nistxml_sv_iv_list_ncname_length_4_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-4-5.xml",
class_name="NistschemaSvIvListNcnameLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_2_nistxml_sv_iv_list_ncname_length_3_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-3-1.xml",
class_name="NistschemaSvIvListNcnameLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_2_nistxml_sv_iv_list_ncname_length_3_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-3-2.xml",
class_name="NistschemaSvIvListNcnameLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_2_nistxml_sv_iv_list_ncname_length_3_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-3-3.xml",
class_name="NistschemaSvIvListNcnameLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_2_nistxml_sv_iv_list_ncname_length_3_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-3-4.xml",
class_name="NistschemaSvIvListNcnameLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_2_nistxml_sv_iv_list_ncname_length_3_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-3-5.xml",
class_name="NistschemaSvIvListNcnameLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_1_nistxml_sv_iv_list_ncname_length_2_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-2-1.xml",
class_name="NistschemaSvIvListNcnameLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_1_nistxml_sv_iv_list_ncname_length_2_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-2-2.xml",
class_name="NistschemaSvIvListNcnameLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_1_nistxml_sv_iv_list_ncname_length_2_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-2-3.xml",
class_name="NistschemaSvIvListNcnameLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_1_nistxml_sv_iv_list_ncname_length_2_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-2-4.xml",
class_name="NistschemaSvIvListNcnameLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_1_nistxml_sv_iv_list_ncname_length_2_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-2-5.xml",
class_name="NistschemaSvIvListNcnameLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_nistxml_sv_iv_list_ncname_length_1_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-1-1.xml",
class_name="NistschemaSvIvListNcnameLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_nistxml_sv_iv_list_ncname_length_1_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-1-2.xml",
class_name="NistschemaSvIvListNcnameLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_nistxml_sv_iv_list_ncname_length_1_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-1-3.xml",
class_name="NistschemaSvIvListNcnameLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_nistxml_sv_iv_list_ncname_length_1_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-1-4.xml",
class_name="NistschemaSvIvListNcnameLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_length_nistxml_sv_iv_list_ncname_length_1_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-length-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-length-1-5.xml",
class_name="NistschemaSvIvListNcnameLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_4_nistxml_sv_iv_list_ncname_min_length_5_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-5-1.xml",
class_name="NistschemaSvIvListNcnameMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_4_nistxml_sv_iv_list_ncname_min_length_5_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-5-2.xml",
class_name="NistschemaSvIvListNcnameMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_4_nistxml_sv_iv_list_ncname_min_length_5_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-5-3.xml",
class_name="NistschemaSvIvListNcnameMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_4_nistxml_sv_iv_list_ncname_min_length_5_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-5-4.xml",
class_name="NistschemaSvIvListNcnameMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_4_nistxml_sv_iv_list_ncname_min_length_5_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-5-5.xml",
class_name="NistschemaSvIvListNcnameMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_3_nistxml_sv_iv_list_ncname_min_length_4_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-4-1.xml",
class_name="NistschemaSvIvListNcnameMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_3_nistxml_sv_iv_list_ncname_min_length_4_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-4-2.xml",
class_name="NistschemaSvIvListNcnameMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_3_nistxml_sv_iv_list_ncname_min_length_4_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-4-3.xml",
class_name="NistschemaSvIvListNcnameMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_3_nistxml_sv_iv_list_ncname_min_length_4_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-4-4.xml",
class_name="NistschemaSvIvListNcnameMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_3_nistxml_sv_iv_list_ncname_min_length_4_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-4-5.xml",
class_name="NistschemaSvIvListNcnameMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_2_nistxml_sv_iv_list_ncname_min_length_3_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-3-1.xml",
class_name="NistschemaSvIvListNcnameMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_2_nistxml_sv_iv_list_ncname_min_length_3_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-3-2.xml",
class_name="NistschemaSvIvListNcnameMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_2_nistxml_sv_iv_list_ncname_min_length_3_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-3-3.xml",
class_name="NistschemaSvIvListNcnameMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_2_nistxml_sv_iv_list_ncname_min_length_3_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-3-4.xml",
class_name="NistschemaSvIvListNcnameMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_2_nistxml_sv_iv_list_ncname_min_length_3_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-3-5.xml",
class_name="NistschemaSvIvListNcnameMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_1_nistxml_sv_iv_list_ncname_min_length_2_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-2-1.xml",
class_name="NistschemaSvIvListNcnameMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_1_nistxml_sv_iv_list_ncname_min_length_2_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-2-2.xml",
class_name="NistschemaSvIvListNcnameMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_1_nistxml_sv_iv_list_ncname_min_length_2_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-2-3.xml",
class_name="NistschemaSvIvListNcnameMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_1_nistxml_sv_iv_list_ncname_min_length_2_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-2-4.xml",
class_name="NistschemaSvIvListNcnameMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_1_nistxml_sv_iv_list_ncname_min_length_2_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-2-5.xml",
class_name="NistschemaSvIvListNcnameMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_nistxml_sv_iv_list_ncname_min_length_1_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-1-1.xml",
class_name="NistschemaSvIvListNcnameMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_nistxml_sv_iv_list_ncname_min_length_1_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-1-2.xml",
class_name="NistschemaSvIvListNcnameMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_nistxml_sv_iv_list_ncname_min_length_1_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-1-3.xml",
class_name="NistschemaSvIvListNcnameMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_nistxml_sv_iv_list_ncname_min_length_1_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-1-4.xml",
class_name="NistschemaSvIvListNcnameMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_min_length_nistxml_sv_iv_list_ncname_min_length_1_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-minLength-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-minLength-1-5.xml",
class_name="NistschemaSvIvListNcnameMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_4_nistxml_sv_iv_list_ncname_max_length_5_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-5-1.xml",
class_name="NistschemaSvIvListNcnameMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_4_nistxml_sv_iv_list_ncname_max_length_5_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-5-2.xml",
class_name="NistschemaSvIvListNcnameMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_4_nistxml_sv_iv_list_ncname_max_length_5_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-5-3.xml",
class_name="NistschemaSvIvListNcnameMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_4_nistxml_sv_iv_list_ncname_max_length_5_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-5-4.xml",
class_name="NistschemaSvIvListNcnameMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_4_nistxml_sv_iv_list_ncname_max_length_5_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-5.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-5-5.xml",
class_name="NistschemaSvIvListNcnameMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_3_nistxml_sv_iv_list_ncname_max_length_4_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-4-1.xml",
class_name="NistschemaSvIvListNcnameMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_3_nistxml_sv_iv_list_ncname_max_length_4_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-4-2.xml",
class_name="NistschemaSvIvListNcnameMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_3_nistxml_sv_iv_list_ncname_max_length_4_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-4-3.xml",
class_name="NistschemaSvIvListNcnameMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_3_nistxml_sv_iv_list_ncname_max_length_4_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-4-4.xml",
class_name="NistschemaSvIvListNcnameMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_3_nistxml_sv_iv_list_ncname_max_length_4_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-4.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-4-5.xml",
class_name="NistschemaSvIvListNcnameMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_2_nistxml_sv_iv_list_ncname_max_length_3_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-3-1.xml",
class_name="NistschemaSvIvListNcnameMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_2_nistxml_sv_iv_list_ncname_max_length_3_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-3-2.xml",
class_name="NistschemaSvIvListNcnameMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_2_nistxml_sv_iv_list_ncname_max_length_3_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-3-3.xml",
class_name="NistschemaSvIvListNcnameMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_2_nistxml_sv_iv_list_ncname_max_length_3_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-3-4.xml",
class_name="NistschemaSvIvListNcnameMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_2_nistxml_sv_iv_list_ncname_max_length_3_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-3.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-3-5.xml",
class_name="NistschemaSvIvListNcnameMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_1_nistxml_sv_iv_list_ncname_max_length_2_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-2-1.xml",
class_name="NistschemaSvIvListNcnameMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_1_nistxml_sv_iv_list_ncname_max_length_2_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-2-2.xml",
class_name="NistschemaSvIvListNcnameMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_1_nistxml_sv_iv_list_ncname_max_length_2_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-2-3.xml",
class_name="NistschemaSvIvListNcnameMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_1_nistxml_sv_iv_list_ncname_max_length_2_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-2-4.xml",
class_name="NistschemaSvIvListNcnameMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_1_nistxml_sv_iv_list_ncname_max_length_2_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-2.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-2-5.xml",
class_name="NistschemaSvIvListNcnameMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_nistxml_sv_iv_list_ncname_max_length_1_1(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-1-1.xml",
class_name="NistschemaSvIvListNcnameMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_nistxml_sv_iv_list_ncname_max_length_1_2(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-1-2.xml",
class_name="NistschemaSvIvListNcnameMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_nistxml_sv_iv_list_ncname_max_length_1_3(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-1-3.xml",
class_name="NistschemaSvIvListNcnameMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_nistxml_sv_iv_list_ncname_max_length_1_4(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-1-4.xml",
class_name="NistschemaSvIvListNcnameMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_ncname_max_length_nistxml_sv_iv_list_ncname_max_length_1_5(mode, save_output, output_format):
"""
Type list/NCName is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NCName/Schema+Instance/NISTSchema-SV-IV-list-NCName-maxLength-1.xsd",
instance="nistData/list/NCName/Schema+Instance/NISTXML-SV-IV-list-NCName-maxLength-1-5.xml",
class_name="NistschemaSvIvListNcnameMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_white_space_nistxml_sv_iv_list_nmtokens_white_space_1_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-whiteSpace-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-whiteSpace-1-1.xml",
class_name="NistschemaSvIvListNmtokensWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_white_space_nistxml_sv_iv_list_nmtokens_white_space_1_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-whiteSpace-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-whiteSpace-1-2.xml",
class_name="NistschemaSvIvListNmtokensWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_white_space_nistxml_sv_iv_list_nmtokens_white_space_1_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-whiteSpace-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-whiteSpace-1-3.xml",
class_name="NistschemaSvIvListNmtokensWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_white_space_nistxml_sv_iv_list_nmtokens_white_space_1_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-whiteSpace-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-whiteSpace-1-4.xml",
class_name="NistschemaSvIvListNmtokensWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_white_space_nistxml_sv_iv_list_nmtokens_white_space_1_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-whiteSpace-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-whiteSpace-1-5.xml",
class_name="NistschemaSvIvListNmtokensWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_4_nistxml_sv_iv_list_nmtokens_enumeration_5_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-5-1.xml",
class_name="NistschemaSvIvListNmtokensEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_4_nistxml_sv_iv_list_nmtokens_enumeration_5_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-5-2.xml",
class_name="NistschemaSvIvListNmtokensEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_4_nistxml_sv_iv_list_nmtokens_enumeration_5_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-5-3.xml",
class_name="NistschemaSvIvListNmtokensEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_4_nistxml_sv_iv_list_nmtokens_enumeration_5_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-5-4.xml",
class_name="NistschemaSvIvListNmtokensEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_4_nistxml_sv_iv_list_nmtokens_enumeration_5_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-5-5.xml",
class_name="NistschemaSvIvListNmtokensEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_3_nistxml_sv_iv_list_nmtokens_enumeration_4_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-4-1.xml",
class_name="NistschemaSvIvListNmtokensEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_3_nistxml_sv_iv_list_nmtokens_enumeration_4_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-4-2.xml",
class_name="NistschemaSvIvListNmtokensEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_3_nistxml_sv_iv_list_nmtokens_enumeration_4_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-4-3.xml",
class_name="NistschemaSvIvListNmtokensEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_3_nistxml_sv_iv_list_nmtokens_enumeration_4_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-4-4.xml",
class_name="NistschemaSvIvListNmtokensEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_3_nistxml_sv_iv_list_nmtokens_enumeration_4_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-4-5.xml",
class_name="NistschemaSvIvListNmtokensEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_2_nistxml_sv_iv_list_nmtokens_enumeration_3_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-3-1.xml",
class_name="NistschemaSvIvListNmtokensEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_2_nistxml_sv_iv_list_nmtokens_enumeration_3_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-3-2.xml",
class_name="NistschemaSvIvListNmtokensEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_2_nistxml_sv_iv_list_nmtokens_enumeration_3_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-3-3.xml",
class_name="NistschemaSvIvListNmtokensEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_2_nistxml_sv_iv_list_nmtokens_enumeration_3_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-3-4.xml",
class_name="NistschemaSvIvListNmtokensEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_2_nistxml_sv_iv_list_nmtokens_enumeration_3_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-3-5.xml",
class_name="NistschemaSvIvListNmtokensEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_1_nistxml_sv_iv_list_nmtokens_enumeration_2_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-2-1.xml",
class_name="NistschemaSvIvListNmtokensEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_1_nistxml_sv_iv_list_nmtokens_enumeration_2_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-2-2.xml",
class_name="NistschemaSvIvListNmtokensEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_1_nistxml_sv_iv_list_nmtokens_enumeration_2_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-2-3.xml",
class_name="NistschemaSvIvListNmtokensEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_1_nistxml_sv_iv_list_nmtokens_enumeration_2_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-2-4.xml",
class_name="NistschemaSvIvListNmtokensEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_1_nistxml_sv_iv_list_nmtokens_enumeration_2_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-2-5.xml",
class_name="NistschemaSvIvListNmtokensEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_nistxml_sv_iv_list_nmtokens_enumeration_1_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-1-1.xml",
class_name="NistschemaSvIvListNmtokensEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_nistxml_sv_iv_list_nmtokens_enumeration_1_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-1-2.xml",
class_name="NistschemaSvIvListNmtokensEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_nistxml_sv_iv_list_nmtokens_enumeration_1_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-1-3.xml",
class_name="NistschemaSvIvListNmtokensEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_nistxml_sv_iv_list_nmtokens_enumeration_1_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-1-4.xml",
class_name="NistschemaSvIvListNmtokensEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_enumeration_nistxml_sv_iv_list_nmtokens_enumeration_1_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-enumeration-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-enumeration-1-5.xml",
class_name="NistschemaSvIvListNmtokensEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_4_nistxml_sv_iv_list_nmtokens_pattern_5_1(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{44}
\c{22} \c{22} \c{56} \c{18} \c{15} \c{5} \c{38}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-5-1.xml",
class_name="NistschemaSvIvListNmtokensPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_4_nistxml_sv_iv_list_nmtokens_pattern_5_2(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{44}
\c{22} \c{22} \c{56} \c{18} \c{15} \c{5} \c{38}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-5-2.xml",
class_name="NistschemaSvIvListNmtokensPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_4_nistxml_sv_iv_list_nmtokens_pattern_5_3(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{44}
\c{22} \c{22} \c{56} \c{18} \c{15} \c{5} \c{38}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-5-3.xml",
class_name="NistschemaSvIvListNmtokensPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_4_nistxml_sv_iv_list_nmtokens_pattern_5_4(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{44}
\c{22} \c{22} \c{56} \c{18} \c{15} \c{5} \c{38}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-5-4.xml",
class_name="NistschemaSvIvListNmtokensPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_4_nistxml_sv_iv_list_nmtokens_pattern_5_5(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{44}
\c{22} \c{22} \c{56} \c{18} \c{15} \c{5} \c{38}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-5-5.xml",
class_name="NistschemaSvIvListNmtokensPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_3_nistxml_sv_iv_list_nmtokens_pattern_4_1(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{29}
\c{7} \c{23} \c{2} \c{63} \c{24} \c{34} \c{59}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-4-1.xml",
class_name="NistschemaSvIvListNmtokensPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_3_nistxml_sv_iv_list_nmtokens_pattern_4_2(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{29}
\c{7} \c{23} \c{2} \c{63} \c{24} \c{34} \c{59}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-4-2.xml",
class_name="NistschemaSvIvListNmtokensPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_3_nistxml_sv_iv_list_nmtokens_pattern_4_3(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{29}
\c{7} \c{23} \c{2} \c{63} \c{24} \c{34} \c{59}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-4-3.xml",
class_name="NistschemaSvIvListNmtokensPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_3_nistxml_sv_iv_list_nmtokens_pattern_4_4(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{29}
\c{7} \c{23} \c{2} \c{63} \c{24} \c{34} \c{59}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-4-4.xml",
class_name="NistschemaSvIvListNmtokensPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_3_nistxml_sv_iv_list_nmtokens_pattern_4_5(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{29}
\c{7} \c{23} \c{2} \c{63} \c{24} \c{34} \c{59}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-4-5.xml",
class_name="NistschemaSvIvListNmtokensPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_2_nistxml_sv_iv_list_nmtokens_pattern_3_1(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{20}
\c{48} \c{3} \c{54} \c{13} \c{29} \c{5}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-3-1.xml",
class_name="NistschemaSvIvListNmtokensPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_2_nistxml_sv_iv_list_nmtokens_pattern_3_2(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{20}
\c{48} \c{3} \c{54} \c{13} \c{29} \c{5}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-3-2.xml",
class_name="NistschemaSvIvListNmtokensPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_2_nistxml_sv_iv_list_nmtokens_pattern_3_3(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{20}
\c{48} \c{3} \c{54} \c{13} \c{29} \c{5}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-3-3.xml",
class_name="NistschemaSvIvListNmtokensPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_2_nistxml_sv_iv_list_nmtokens_pattern_3_4(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{20}
\c{48} \c{3} \c{54} \c{13} \c{29} \c{5}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-3-4.xml",
class_name="NistschemaSvIvListNmtokensPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_2_nistxml_sv_iv_list_nmtokens_pattern_3_5(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{20}
\c{48} \c{3} \c{54} \c{13} \c{29} \c{5}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-3-5.xml",
class_name="NistschemaSvIvListNmtokensPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_1_nistxml_sv_iv_list_nmtokens_pattern_2_1(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{64}
\c{61} \c{8} \c{25} \c{14} \c{53} \c{12} \c{20}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-2-1.xml",
class_name="NistschemaSvIvListNmtokensPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_1_nistxml_sv_iv_list_nmtokens_pattern_2_2(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{64}
\c{61} \c{8} \c{25} \c{14} \c{53} \c{12} \c{20}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-2-2.xml",
class_name="NistschemaSvIvListNmtokensPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_1_nistxml_sv_iv_list_nmtokens_pattern_2_3(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{64}
\c{61} \c{8} \c{25} \c{14} \c{53} \c{12} \c{20}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-2-3.xml",
class_name="NistschemaSvIvListNmtokensPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_1_nistxml_sv_iv_list_nmtokens_pattern_2_4(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{64}
\c{61} \c{8} \c{25} \c{14} \c{53} \c{12} \c{20}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-2-4.xml",
class_name="NistschemaSvIvListNmtokensPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_1_nistxml_sv_iv_list_nmtokens_pattern_2_5(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{64}
\c{61} \c{8} \c{25} \c{14} \c{53} \c{12} \c{20}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-2-5.xml",
class_name="NistschemaSvIvListNmtokensPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_nistxml_sv_iv_list_nmtokens_pattern_1_1(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{16}
\c{9} \c{44} \c{34} \c{46} \c{6}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-1-1.xml",
class_name="NistschemaSvIvListNmtokensPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_nistxml_sv_iv_list_nmtokens_pattern_1_2(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{16}
\c{9} \c{44} \c{34} \c{46} \c{6}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-1-2.xml",
class_name="NistschemaSvIvListNmtokensPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_nistxml_sv_iv_list_nmtokens_pattern_1_3(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{16}
\c{9} \c{44} \c{34} \c{46} \c{6}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-1-3.xml",
class_name="NistschemaSvIvListNmtokensPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_nistxml_sv_iv_list_nmtokens_pattern_1_4(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{16}
\c{9} \c{44} \c{34} \c{46} \c{6}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-1-4.xml",
class_name="NistschemaSvIvListNmtokensPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_pattern_nistxml_sv_iv_list_nmtokens_pattern_1_5(mode, save_output, output_format):
r"""
Type list/NMTOKENS is restricted by facet pattern with value \c{16}
\c{9} \c{44} \c{34} \c{46} \c{6}.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-pattern-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-pattern-1-5.xml",
class_name="NistschemaSvIvListNmtokensPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_4_nistxml_sv_iv_list_nmtokens_length_5_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-5-1.xml",
class_name="NistschemaSvIvListNmtokensLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_4_nistxml_sv_iv_list_nmtokens_length_5_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-5-2.xml",
class_name="NistschemaSvIvListNmtokensLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_4_nistxml_sv_iv_list_nmtokens_length_5_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-5-3.xml",
class_name="NistschemaSvIvListNmtokensLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_4_nistxml_sv_iv_list_nmtokens_length_5_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-5-4.xml",
class_name="NistschemaSvIvListNmtokensLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_4_nistxml_sv_iv_list_nmtokens_length_5_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-5-5.xml",
class_name="NistschemaSvIvListNmtokensLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_3_nistxml_sv_iv_list_nmtokens_length_4_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-4-1.xml",
class_name="NistschemaSvIvListNmtokensLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_3_nistxml_sv_iv_list_nmtokens_length_4_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-4-2.xml",
class_name="NistschemaSvIvListNmtokensLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_3_nistxml_sv_iv_list_nmtokens_length_4_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-4-3.xml",
class_name="NistschemaSvIvListNmtokensLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_3_nistxml_sv_iv_list_nmtokens_length_4_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-4-4.xml",
class_name="NistschemaSvIvListNmtokensLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_3_nistxml_sv_iv_list_nmtokens_length_4_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-4-5.xml",
class_name="NistschemaSvIvListNmtokensLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_2_nistxml_sv_iv_list_nmtokens_length_3_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-3-1.xml",
class_name="NistschemaSvIvListNmtokensLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_2_nistxml_sv_iv_list_nmtokens_length_3_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-3-2.xml",
class_name="NistschemaSvIvListNmtokensLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_2_nistxml_sv_iv_list_nmtokens_length_3_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-3-3.xml",
class_name="NistschemaSvIvListNmtokensLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_2_nistxml_sv_iv_list_nmtokens_length_3_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-3-4.xml",
class_name="NistschemaSvIvListNmtokensLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_2_nistxml_sv_iv_list_nmtokens_length_3_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-3-5.xml",
class_name="NistschemaSvIvListNmtokensLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_1_nistxml_sv_iv_list_nmtokens_length_2_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-2-1.xml",
class_name="NistschemaSvIvListNmtokensLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_1_nistxml_sv_iv_list_nmtokens_length_2_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-2-2.xml",
class_name="NistschemaSvIvListNmtokensLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_1_nistxml_sv_iv_list_nmtokens_length_2_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-2-3.xml",
class_name="NistschemaSvIvListNmtokensLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_1_nistxml_sv_iv_list_nmtokens_length_2_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-2-4.xml",
class_name="NistschemaSvIvListNmtokensLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_1_nistxml_sv_iv_list_nmtokens_length_2_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-2-5.xml",
class_name="NistschemaSvIvListNmtokensLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_nistxml_sv_iv_list_nmtokens_length_1_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-1-1.xml",
class_name="NistschemaSvIvListNmtokensLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_nistxml_sv_iv_list_nmtokens_length_1_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-1-2.xml",
class_name="NistschemaSvIvListNmtokensLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_nistxml_sv_iv_list_nmtokens_length_1_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-1-3.xml",
class_name="NistschemaSvIvListNmtokensLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_nistxml_sv_iv_list_nmtokens_length_1_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-1-4.xml",
class_name="NistschemaSvIvListNmtokensLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_length_nistxml_sv_iv_list_nmtokens_length_1_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-length-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-length-1-5.xml",
class_name="NistschemaSvIvListNmtokensLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_4_nistxml_sv_iv_list_nmtokens_min_length_5_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-5-1.xml",
class_name="NistschemaSvIvListNmtokensMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_4_nistxml_sv_iv_list_nmtokens_min_length_5_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-5-2.xml",
class_name="NistschemaSvIvListNmtokensMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_4_nistxml_sv_iv_list_nmtokens_min_length_5_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-5-3.xml",
class_name="NistschemaSvIvListNmtokensMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_4_nistxml_sv_iv_list_nmtokens_min_length_5_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-5-4.xml",
class_name="NistschemaSvIvListNmtokensMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_4_nistxml_sv_iv_list_nmtokens_min_length_5_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-5-5.xml",
class_name="NistschemaSvIvListNmtokensMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_3_nistxml_sv_iv_list_nmtokens_min_length_4_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-4-1.xml",
class_name="NistschemaSvIvListNmtokensMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_3_nistxml_sv_iv_list_nmtokens_min_length_4_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-4-2.xml",
class_name="NistschemaSvIvListNmtokensMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_3_nistxml_sv_iv_list_nmtokens_min_length_4_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-4-3.xml",
class_name="NistschemaSvIvListNmtokensMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_3_nistxml_sv_iv_list_nmtokens_min_length_4_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-4-4.xml",
class_name="NistschemaSvIvListNmtokensMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_3_nistxml_sv_iv_list_nmtokens_min_length_4_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-4-5.xml",
class_name="NistschemaSvIvListNmtokensMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_2_nistxml_sv_iv_list_nmtokens_min_length_3_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-3-1.xml",
class_name="NistschemaSvIvListNmtokensMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_2_nistxml_sv_iv_list_nmtokens_min_length_3_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-3-2.xml",
class_name="NistschemaSvIvListNmtokensMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_2_nistxml_sv_iv_list_nmtokens_min_length_3_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-3-3.xml",
class_name="NistschemaSvIvListNmtokensMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_2_nistxml_sv_iv_list_nmtokens_min_length_3_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-3-4.xml",
class_name="NistschemaSvIvListNmtokensMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_2_nistxml_sv_iv_list_nmtokens_min_length_3_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-3-5.xml",
class_name="NistschemaSvIvListNmtokensMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_1_nistxml_sv_iv_list_nmtokens_min_length_2_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-2-1.xml",
class_name="NistschemaSvIvListNmtokensMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_1_nistxml_sv_iv_list_nmtokens_min_length_2_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-2-2.xml",
class_name="NistschemaSvIvListNmtokensMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_1_nistxml_sv_iv_list_nmtokens_min_length_2_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-2-3.xml",
class_name="NistschemaSvIvListNmtokensMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_1_nistxml_sv_iv_list_nmtokens_min_length_2_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-2-4.xml",
class_name="NistschemaSvIvListNmtokensMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_1_nistxml_sv_iv_list_nmtokens_min_length_2_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-2-5.xml",
class_name="NistschemaSvIvListNmtokensMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_nistxml_sv_iv_list_nmtokens_min_length_1_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-1-1.xml",
class_name="NistschemaSvIvListNmtokensMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_nistxml_sv_iv_list_nmtokens_min_length_1_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-1-2.xml",
class_name="NistschemaSvIvListNmtokensMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_nistxml_sv_iv_list_nmtokens_min_length_1_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-1-3.xml",
class_name="NistschemaSvIvListNmtokensMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_nistxml_sv_iv_list_nmtokens_min_length_1_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-1-4.xml",
class_name="NistschemaSvIvListNmtokensMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_min_length_nistxml_sv_iv_list_nmtokens_min_length_1_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-minLength-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-minLength-1-5.xml",
class_name="NistschemaSvIvListNmtokensMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_4_nistxml_sv_iv_list_nmtokens_max_length_5_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-5-1.xml",
class_name="NistschemaSvIvListNmtokensMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_4_nistxml_sv_iv_list_nmtokens_max_length_5_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-5-2.xml",
class_name="NistschemaSvIvListNmtokensMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_4_nistxml_sv_iv_list_nmtokens_max_length_5_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-5-3.xml",
class_name="NistschemaSvIvListNmtokensMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_4_nistxml_sv_iv_list_nmtokens_max_length_5_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-5-4.xml",
class_name="NistschemaSvIvListNmtokensMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_4_nistxml_sv_iv_list_nmtokens_max_length_5_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-5.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-5-5.xml",
class_name="NistschemaSvIvListNmtokensMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_3_nistxml_sv_iv_list_nmtokens_max_length_4_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-4-1.xml",
class_name="NistschemaSvIvListNmtokensMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_3_nistxml_sv_iv_list_nmtokens_max_length_4_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-4-2.xml",
class_name="NistschemaSvIvListNmtokensMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_3_nistxml_sv_iv_list_nmtokens_max_length_4_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-4-3.xml",
class_name="NistschemaSvIvListNmtokensMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_3_nistxml_sv_iv_list_nmtokens_max_length_4_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-4-4.xml",
class_name="NistschemaSvIvListNmtokensMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_3_nistxml_sv_iv_list_nmtokens_max_length_4_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-4.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-4-5.xml",
class_name="NistschemaSvIvListNmtokensMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_2_nistxml_sv_iv_list_nmtokens_max_length_3_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-3-1.xml",
class_name="NistschemaSvIvListNmtokensMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_2_nistxml_sv_iv_list_nmtokens_max_length_3_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-3-2.xml",
class_name="NistschemaSvIvListNmtokensMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_2_nistxml_sv_iv_list_nmtokens_max_length_3_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-3-3.xml",
class_name="NistschemaSvIvListNmtokensMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_2_nistxml_sv_iv_list_nmtokens_max_length_3_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-3-4.xml",
class_name="NistschemaSvIvListNmtokensMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_2_nistxml_sv_iv_list_nmtokens_max_length_3_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-3.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-3-5.xml",
class_name="NistschemaSvIvListNmtokensMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_1_nistxml_sv_iv_list_nmtokens_max_length_2_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-2-1.xml",
class_name="NistschemaSvIvListNmtokensMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_1_nistxml_sv_iv_list_nmtokens_max_length_2_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-2-2.xml",
class_name="NistschemaSvIvListNmtokensMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_1_nistxml_sv_iv_list_nmtokens_max_length_2_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-2-3.xml",
class_name="NistschemaSvIvListNmtokensMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_1_nistxml_sv_iv_list_nmtokens_max_length_2_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-2-4.xml",
class_name="NistschemaSvIvListNmtokensMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_1_nistxml_sv_iv_list_nmtokens_max_length_2_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-2.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-2-5.xml",
class_name="NistschemaSvIvListNmtokensMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_nistxml_sv_iv_list_nmtokens_max_length_1_1(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-1-1.xml",
class_name="NistschemaSvIvListNmtokensMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_nistxml_sv_iv_list_nmtokens_max_length_1_2(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-1-2.xml",
class_name="NistschemaSvIvListNmtokensMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_nistxml_sv_iv_list_nmtokens_max_length_1_3(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-1-3.xml",
class_name="NistschemaSvIvListNmtokensMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_nistxml_sv_iv_list_nmtokens_max_length_1_4(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-1-4.xml",
class_name="NistschemaSvIvListNmtokensMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtokens_max_length_nistxml_sv_iv_list_nmtokens_max_length_1_5(mode, save_output, output_format):
"""
Type list/NMTOKENS is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKENS/Schema+Instance/NISTSchema-SV-IV-list-NMTOKENS-maxLength-1.xsd",
instance="nistData/list/NMTOKENS/Schema+Instance/NISTXML-SV-IV-list-NMTOKENS-maxLength-1-5.xml",
class_name="NistschemaSvIvListNmtokensMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_white_space_nistxml_sv_iv_list_nmtoken_white_space_1_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-whiteSpace-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-whiteSpace-1-1.xml",
class_name="NistschemaSvIvListNmtokenWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_white_space_nistxml_sv_iv_list_nmtoken_white_space_1_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-whiteSpace-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-whiteSpace-1-2.xml",
class_name="NistschemaSvIvListNmtokenWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_white_space_nistxml_sv_iv_list_nmtoken_white_space_1_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-whiteSpace-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-whiteSpace-1-3.xml",
class_name="NistschemaSvIvListNmtokenWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_white_space_nistxml_sv_iv_list_nmtoken_white_space_1_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-whiteSpace-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-whiteSpace-1-4.xml",
class_name="NistschemaSvIvListNmtokenWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_white_space_nistxml_sv_iv_list_nmtoken_white_space_1_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-whiteSpace-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-whiteSpace-1-5.xml",
class_name="NistschemaSvIvListNmtokenWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_4_nistxml_sv_iv_list_nmtoken_enumeration_5_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-5-1.xml",
class_name="NistschemaSvIvListNmtokenEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_4_nistxml_sv_iv_list_nmtoken_enumeration_5_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-5-2.xml",
class_name="NistschemaSvIvListNmtokenEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_4_nistxml_sv_iv_list_nmtoken_enumeration_5_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-5-3.xml",
class_name="NistschemaSvIvListNmtokenEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_4_nistxml_sv_iv_list_nmtoken_enumeration_5_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-5-4.xml",
class_name="NistschemaSvIvListNmtokenEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_4_nistxml_sv_iv_list_nmtoken_enumeration_5_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-5-5.xml",
class_name="NistschemaSvIvListNmtokenEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_3_nistxml_sv_iv_list_nmtoken_enumeration_4_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-4-1.xml",
class_name="NistschemaSvIvListNmtokenEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_3_nistxml_sv_iv_list_nmtoken_enumeration_4_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-4-2.xml",
class_name="NistschemaSvIvListNmtokenEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_3_nistxml_sv_iv_list_nmtoken_enumeration_4_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-4-3.xml",
class_name="NistschemaSvIvListNmtokenEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_3_nistxml_sv_iv_list_nmtoken_enumeration_4_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-4-4.xml",
class_name="NistschemaSvIvListNmtokenEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_3_nistxml_sv_iv_list_nmtoken_enumeration_4_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-4-5.xml",
class_name="NistschemaSvIvListNmtokenEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_2_nistxml_sv_iv_list_nmtoken_enumeration_3_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-3-1.xml",
class_name="NistschemaSvIvListNmtokenEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_2_nistxml_sv_iv_list_nmtoken_enumeration_3_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-3-2.xml",
class_name="NistschemaSvIvListNmtokenEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_2_nistxml_sv_iv_list_nmtoken_enumeration_3_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-3-3.xml",
class_name="NistschemaSvIvListNmtokenEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_2_nistxml_sv_iv_list_nmtoken_enumeration_3_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-3-4.xml",
class_name="NistschemaSvIvListNmtokenEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_2_nistxml_sv_iv_list_nmtoken_enumeration_3_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-3-5.xml",
class_name="NistschemaSvIvListNmtokenEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_1_nistxml_sv_iv_list_nmtoken_enumeration_2_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-2-1.xml",
class_name="NistschemaSvIvListNmtokenEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_1_nistxml_sv_iv_list_nmtoken_enumeration_2_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-2-2.xml",
class_name="NistschemaSvIvListNmtokenEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_1_nistxml_sv_iv_list_nmtoken_enumeration_2_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-2-3.xml",
class_name="NistschemaSvIvListNmtokenEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_1_nistxml_sv_iv_list_nmtoken_enumeration_2_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-2-4.xml",
class_name="NistschemaSvIvListNmtokenEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_1_nistxml_sv_iv_list_nmtoken_enumeration_2_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-2-5.xml",
class_name="NistschemaSvIvListNmtokenEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_nistxml_sv_iv_list_nmtoken_enumeration_1_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-1-1.xml",
class_name="NistschemaSvIvListNmtokenEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_nistxml_sv_iv_list_nmtoken_enumeration_1_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-1-2.xml",
class_name="NistschemaSvIvListNmtokenEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_nistxml_sv_iv_list_nmtoken_enumeration_1_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-1-3.xml",
class_name="NistschemaSvIvListNmtokenEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_nistxml_sv_iv_list_nmtoken_enumeration_1_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-1-4.xml",
class_name="NistschemaSvIvListNmtokenEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_enumeration_nistxml_sv_iv_list_nmtoken_enumeration_1_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-enumeration-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-enumeration-1-5.xml",
class_name="NistschemaSvIvListNmtokenEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_4_nistxml_sv_iv_list_nmtoken_pattern_5_1(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{45}
\c{5} \c{56} \c{45} \c{33} \c{37} \c{45} \c{40}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-5-1.xml",
class_name="NistschemaSvIvListNmtokenPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_4_nistxml_sv_iv_list_nmtoken_pattern_5_2(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{45}
\c{5} \c{56} \c{45} \c{33} \c{37} \c{45} \c{40}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-5-2.xml",
class_name="NistschemaSvIvListNmtokenPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_4_nistxml_sv_iv_list_nmtoken_pattern_5_3(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{45}
\c{5} \c{56} \c{45} \c{33} \c{37} \c{45} \c{40}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-5-3.xml",
class_name="NistschemaSvIvListNmtokenPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_4_nistxml_sv_iv_list_nmtoken_pattern_5_4(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{45}
\c{5} \c{56} \c{45} \c{33} \c{37} \c{45} \c{40}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-5-4.xml",
class_name="NistschemaSvIvListNmtokenPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_4_nistxml_sv_iv_list_nmtoken_pattern_5_5(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{45}
\c{5} \c{56} \c{45} \c{33} \c{37} \c{45} \c{40}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-5-5.xml",
class_name="NistschemaSvIvListNmtokenPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_3_nistxml_sv_iv_list_nmtoken_pattern_4_1(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{35}
\c{8} \c{43} \c{19} \c{53} \c{18} \c{33} \c{59} \c{10} \c{41}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-4-1.xml",
class_name="NistschemaSvIvListNmtokenPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_3_nistxml_sv_iv_list_nmtoken_pattern_4_2(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{35}
\c{8} \c{43} \c{19} \c{53} \c{18} \c{33} \c{59} \c{10} \c{41}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-4-2.xml",
class_name="NistschemaSvIvListNmtokenPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_3_nistxml_sv_iv_list_nmtoken_pattern_4_3(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{35}
\c{8} \c{43} \c{19} \c{53} \c{18} \c{33} \c{59} \c{10} \c{41}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-4-3.xml",
class_name="NistschemaSvIvListNmtokenPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_3_nistxml_sv_iv_list_nmtoken_pattern_4_4(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{35}
\c{8} \c{43} \c{19} \c{53} \c{18} \c{33} \c{59} \c{10} \c{41}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-4-4.xml",
class_name="NistschemaSvIvListNmtokenPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_3_nistxml_sv_iv_list_nmtoken_pattern_4_5(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{35}
\c{8} \c{43} \c{19} \c{53} \c{18} \c{33} \c{59} \c{10} \c{41}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-4-5.xml",
class_name="NistschemaSvIvListNmtokenPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_2_nistxml_sv_iv_list_nmtoken_pattern_3_1(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{1}
\c{36} \c{63} \c{7} \c{26} \c{11} \c{55} \c{29}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-3-1.xml",
class_name="NistschemaSvIvListNmtokenPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_2_nistxml_sv_iv_list_nmtoken_pattern_3_2(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{1}
\c{36} \c{63} \c{7} \c{26} \c{11} \c{55} \c{29}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-3-2.xml",
class_name="NistschemaSvIvListNmtokenPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_2_nistxml_sv_iv_list_nmtoken_pattern_3_3(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{1}
\c{36} \c{63} \c{7} \c{26} \c{11} \c{55} \c{29}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-3-3.xml",
class_name="NistschemaSvIvListNmtokenPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_2_nistxml_sv_iv_list_nmtoken_pattern_3_4(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{1}
\c{36} \c{63} \c{7} \c{26} \c{11} \c{55} \c{29}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-3-4.xml",
class_name="NistschemaSvIvListNmtokenPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_2_nistxml_sv_iv_list_nmtoken_pattern_3_5(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{1}
\c{36} \c{63} \c{7} \c{26} \c{11} \c{55} \c{29}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-3-5.xml",
class_name="NistschemaSvIvListNmtokenPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_1_nistxml_sv_iv_list_nmtoken_pattern_2_1(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{20}
\c{60} \c{47} \c{22} \c{42} \c{14}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-2-1.xml",
class_name="NistschemaSvIvListNmtokenPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_1_nistxml_sv_iv_list_nmtoken_pattern_2_2(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{20}
\c{60} \c{47} \c{22} \c{42} \c{14}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-2-2.xml",
class_name="NistschemaSvIvListNmtokenPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_1_nistxml_sv_iv_list_nmtoken_pattern_2_3(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{20}
\c{60} \c{47} \c{22} \c{42} \c{14}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-2-3.xml",
class_name="NistschemaSvIvListNmtokenPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_1_nistxml_sv_iv_list_nmtoken_pattern_2_4(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{20}
\c{60} \c{47} \c{22} \c{42} \c{14}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-2-4.xml",
class_name="NistschemaSvIvListNmtokenPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_1_nistxml_sv_iv_list_nmtoken_pattern_2_5(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{20}
\c{60} \c{47} \c{22} \c{42} \c{14}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-2-5.xml",
class_name="NistschemaSvIvListNmtokenPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_nistxml_sv_iv_list_nmtoken_pattern_1_1(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{40}
\c{21} \c{50} \c{36} \c{35} \c{42} \c{54} \c{48}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-1-1.xml",
class_name="NistschemaSvIvListNmtokenPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_nistxml_sv_iv_list_nmtoken_pattern_1_2(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{40}
\c{21} \c{50} \c{36} \c{35} \c{42} \c{54} \c{48}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-1-2.xml",
class_name="NistschemaSvIvListNmtokenPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_nistxml_sv_iv_list_nmtoken_pattern_1_3(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{40}
\c{21} \c{50} \c{36} \c{35} \c{42} \c{54} \c{48}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-1-3.xml",
class_name="NistschemaSvIvListNmtokenPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_nistxml_sv_iv_list_nmtoken_pattern_1_4(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{40}
\c{21} \c{50} \c{36} \c{35} \c{42} \c{54} \c{48}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-1-4.xml",
class_name="NistschemaSvIvListNmtokenPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_pattern_nistxml_sv_iv_list_nmtoken_pattern_1_5(mode, save_output, output_format):
r"""
Type list/NMTOKEN is restricted by facet pattern with value \c{40}
\c{21} \c{50} \c{36} \c{35} \c{42} \c{54} \c{48}.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-pattern-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-pattern-1-5.xml",
class_name="NistschemaSvIvListNmtokenPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_4_nistxml_sv_iv_list_nmtoken_length_5_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-5-1.xml",
class_name="NistschemaSvIvListNmtokenLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_4_nistxml_sv_iv_list_nmtoken_length_5_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-5-2.xml",
class_name="NistschemaSvIvListNmtokenLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_4_nistxml_sv_iv_list_nmtoken_length_5_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-5-3.xml",
class_name="NistschemaSvIvListNmtokenLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_4_nistxml_sv_iv_list_nmtoken_length_5_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-5-4.xml",
class_name="NistschemaSvIvListNmtokenLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_4_nistxml_sv_iv_list_nmtoken_length_5_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-5-5.xml",
class_name="NistschemaSvIvListNmtokenLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_3_nistxml_sv_iv_list_nmtoken_length_4_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-4-1.xml",
class_name="NistschemaSvIvListNmtokenLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_3_nistxml_sv_iv_list_nmtoken_length_4_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-4-2.xml",
class_name="NistschemaSvIvListNmtokenLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_3_nistxml_sv_iv_list_nmtoken_length_4_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-4-3.xml",
class_name="NistschemaSvIvListNmtokenLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_3_nistxml_sv_iv_list_nmtoken_length_4_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-4-4.xml",
class_name="NistschemaSvIvListNmtokenLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_3_nistxml_sv_iv_list_nmtoken_length_4_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-4-5.xml",
class_name="NistschemaSvIvListNmtokenLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_2_nistxml_sv_iv_list_nmtoken_length_3_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-3-1.xml",
class_name="NistschemaSvIvListNmtokenLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_2_nistxml_sv_iv_list_nmtoken_length_3_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-3-2.xml",
class_name="NistschemaSvIvListNmtokenLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_2_nistxml_sv_iv_list_nmtoken_length_3_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-3-3.xml",
class_name="NistschemaSvIvListNmtokenLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_2_nistxml_sv_iv_list_nmtoken_length_3_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-3-4.xml",
class_name="NistschemaSvIvListNmtokenLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_2_nistxml_sv_iv_list_nmtoken_length_3_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-3-5.xml",
class_name="NistschemaSvIvListNmtokenLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_1_nistxml_sv_iv_list_nmtoken_length_2_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-2-1.xml",
class_name="NistschemaSvIvListNmtokenLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_1_nistxml_sv_iv_list_nmtoken_length_2_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-2-2.xml",
class_name="NistschemaSvIvListNmtokenLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_1_nistxml_sv_iv_list_nmtoken_length_2_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-2-3.xml",
class_name="NistschemaSvIvListNmtokenLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_1_nistxml_sv_iv_list_nmtoken_length_2_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-2-4.xml",
class_name="NistschemaSvIvListNmtokenLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_1_nistxml_sv_iv_list_nmtoken_length_2_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-2-5.xml",
class_name="NistschemaSvIvListNmtokenLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_nistxml_sv_iv_list_nmtoken_length_1_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-1-1.xml",
class_name="NistschemaSvIvListNmtokenLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_nistxml_sv_iv_list_nmtoken_length_1_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-1-2.xml",
class_name="NistschemaSvIvListNmtokenLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_nistxml_sv_iv_list_nmtoken_length_1_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-1-3.xml",
class_name="NistschemaSvIvListNmtokenLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_nistxml_sv_iv_list_nmtoken_length_1_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-1-4.xml",
class_name="NistschemaSvIvListNmtokenLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_length_nistxml_sv_iv_list_nmtoken_length_1_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-length-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-length-1-5.xml",
class_name="NistschemaSvIvListNmtokenLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_4_nistxml_sv_iv_list_nmtoken_min_length_5_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-5-1.xml",
class_name="NistschemaSvIvListNmtokenMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_4_nistxml_sv_iv_list_nmtoken_min_length_5_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-5-2.xml",
class_name="NistschemaSvIvListNmtokenMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_4_nistxml_sv_iv_list_nmtoken_min_length_5_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-5-3.xml",
class_name="NistschemaSvIvListNmtokenMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_4_nistxml_sv_iv_list_nmtoken_min_length_5_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-5-4.xml",
class_name="NistschemaSvIvListNmtokenMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_4_nistxml_sv_iv_list_nmtoken_min_length_5_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-5-5.xml",
class_name="NistschemaSvIvListNmtokenMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_3_nistxml_sv_iv_list_nmtoken_min_length_4_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-4-1.xml",
class_name="NistschemaSvIvListNmtokenMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_3_nistxml_sv_iv_list_nmtoken_min_length_4_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-4-2.xml",
class_name="NistschemaSvIvListNmtokenMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_3_nistxml_sv_iv_list_nmtoken_min_length_4_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-4-3.xml",
class_name="NistschemaSvIvListNmtokenMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_3_nistxml_sv_iv_list_nmtoken_min_length_4_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-4-4.xml",
class_name="NistschemaSvIvListNmtokenMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_3_nistxml_sv_iv_list_nmtoken_min_length_4_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-4-5.xml",
class_name="NistschemaSvIvListNmtokenMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_2_nistxml_sv_iv_list_nmtoken_min_length_3_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-3-1.xml",
class_name="NistschemaSvIvListNmtokenMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_2_nistxml_sv_iv_list_nmtoken_min_length_3_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-3-2.xml",
class_name="NistschemaSvIvListNmtokenMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_2_nistxml_sv_iv_list_nmtoken_min_length_3_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-3-3.xml",
class_name="NistschemaSvIvListNmtokenMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_2_nistxml_sv_iv_list_nmtoken_min_length_3_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-3-4.xml",
class_name="NistschemaSvIvListNmtokenMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_2_nistxml_sv_iv_list_nmtoken_min_length_3_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-3-5.xml",
class_name="NistschemaSvIvListNmtokenMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_1_nistxml_sv_iv_list_nmtoken_min_length_2_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-2-1.xml",
class_name="NistschemaSvIvListNmtokenMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_1_nistxml_sv_iv_list_nmtoken_min_length_2_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-2-2.xml",
class_name="NistschemaSvIvListNmtokenMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_1_nistxml_sv_iv_list_nmtoken_min_length_2_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-2-3.xml",
class_name="NistschemaSvIvListNmtokenMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_1_nistxml_sv_iv_list_nmtoken_min_length_2_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-2-4.xml",
class_name="NistschemaSvIvListNmtokenMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_1_nistxml_sv_iv_list_nmtoken_min_length_2_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-2-5.xml",
class_name="NistschemaSvIvListNmtokenMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_nistxml_sv_iv_list_nmtoken_min_length_1_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-1-1.xml",
class_name="NistschemaSvIvListNmtokenMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_nistxml_sv_iv_list_nmtoken_min_length_1_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-1-2.xml",
class_name="NistschemaSvIvListNmtokenMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_nistxml_sv_iv_list_nmtoken_min_length_1_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-1-3.xml",
class_name="NistschemaSvIvListNmtokenMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_nistxml_sv_iv_list_nmtoken_min_length_1_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-1-4.xml",
class_name="NistschemaSvIvListNmtokenMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_min_length_nistxml_sv_iv_list_nmtoken_min_length_1_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-minLength-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-minLength-1-5.xml",
class_name="NistschemaSvIvListNmtokenMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_4_nistxml_sv_iv_list_nmtoken_max_length_5_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-5-1.xml",
class_name="NistschemaSvIvListNmtokenMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_4_nistxml_sv_iv_list_nmtoken_max_length_5_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-5-2.xml",
class_name="NistschemaSvIvListNmtokenMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_4_nistxml_sv_iv_list_nmtoken_max_length_5_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-5-3.xml",
class_name="NistschemaSvIvListNmtokenMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_4_nistxml_sv_iv_list_nmtoken_max_length_5_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-5-4.xml",
class_name="NistschemaSvIvListNmtokenMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_4_nistxml_sv_iv_list_nmtoken_max_length_5_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-5.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-5-5.xml",
class_name="NistschemaSvIvListNmtokenMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_3_nistxml_sv_iv_list_nmtoken_max_length_4_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-4-1.xml",
class_name="NistschemaSvIvListNmtokenMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_3_nistxml_sv_iv_list_nmtoken_max_length_4_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-4-2.xml",
class_name="NistschemaSvIvListNmtokenMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_3_nistxml_sv_iv_list_nmtoken_max_length_4_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-4-3.xml",
class_name="NistschemaSvIvListNmtokenMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_3_nistxml_sv_iv_list_nmtoken_max_length_4_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-4-4.xml",
class_name="NistschemaSvIvListNmtokenMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_3_nistxml_sv_iv_list_nmtoken_max_length_4_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-4.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-4-5.xml",
class_name="NistschemaSvIvListNmtokenMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_2_nistxml_sv_iv_list_nmtoken_max_length_3_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-3-1.xml",
class_name="NistschemaSvIvListNmtokenMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_2_nistxml_sv_iv_list_nmtoken_max_length_3_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-3-2.xml",
class_name="NistschemaSvIvListNmtokenMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_2_nistxml_sv_iv_list_nmtoken_max_length_3_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-3-3.xml",
class_name="NistschemaSvIvListNmtokenMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_2_nistxml_sv_iv_list_nmtoken_max_length_3_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-3-4.xml",
class_name="NistschemaSvIvListNmtokenMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_2_nistxml_sv_iv_list_nmtoken_max_length_3_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-3.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-3-5.xml",
class_name="NistschemaSvIvListNmtokenMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_1_nistxml_sv_iv_list_nmtoken_max_length_2_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-2-1.xml",
class_name="NistschemaSvIvListNmtokenMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_1_nistxml_sv_iv_list_nmtoken_max_length_2_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-2-2.xml",
class_name="NistschemaSvIvListNmtokenMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_1_nistxml_sv_iv_list_nmtoken_max_length_2_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-2-3.xml",
class_name="NistschemaSvIvListNmtokenMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_1_nistxml_sv_iv_list_nmtoken_max_length_2_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-2-4.xml",
class_name="NistschemaSvIvListNmtokenMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_1_nistxml_sv_iv_list_nmtoken_max_length_2_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-2.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-2-5.xml",
class_name="NistschemaSvIvListNmtokenMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_nistxml_sv_iv_list_nmtoken_max_length_1_1(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-1-1.xml",
class_name="NistschemaSvIvListNmtokenMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_nistxml_sv_iv_list_nmtoken_max_length_1_2(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-1-2.xml",
class_name="NistschemaSvIvListNmtokenMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_nistxml_sv_iv_list_nmtoken_max_length_1_3(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-1-3.xml",
class_name="NistschemaSvIvListNmtokenMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_nistxml_sv_iv_list_nmtoken_max_length_1_4(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-1-4.xml",
class_name="NistschemaSvIvListNmtokenMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_nmtoken_max_length_nistxml_sv_iv_list_nmtoken_max_length_1_5(mode, save_output, output_format):
"""
Type list/NMTOKEN is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/NMTOKEN/Schema+Instance/NISTSchema-SV-IV-list-NMTOKEN-maxLength-1.xsd",
instance="nistData/list/NMTOKEN/Schema+Instance/NISTXML-SV-IV-list-NMTOKEN-maxLength-1-5.xml",
class_name="NistschemaSvIvListNmtokenMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_white_space_nistxml_sv_iv_list_name_white_space_1_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-whiteSpace-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-whiteSpace-1-1.xml",
class_name="NistschemaSvIvListNameWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_white_space_nistxml_sv_iv_list_name_white_space_1_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-whiteSpace-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-whiteSpace-1-2.xml",
class_name="NistschemaSvIvListNameWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_white_space_nistxml_sv_iv_list_name_white_space_1_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-whiteSpace-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-whiteSpace-1-3.xml",
class_name="NistschemaSvIvListNameWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_white_space_nistxml_sv_iv_list_name_white_space_1_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-whiteSpace-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-whiteSpace-1-4.xml",
class_name="NistschemaSvIvListNameWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_white_space_nistxml_sv_iv_list_name_white_space_1_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-whiteSpace-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-whiteSpace-1-5.xml",
class_name="NistschemaSvIvListNameWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_4_nistxml_sv_iv_list_name_enumeration_5_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-5-1.xml",
class_name="NistschemaSvIvListNameEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_4_nistxml_sv_iv_list_name_enumeration_5_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-5-2.xml",
class_name="NistschemaSvIvListNameEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_4_nistxml_sv_iv_list_name_enumeration_5_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-5-3.xml",
class_name="NistschemaSvIvListNameEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_4_nistxml_sv_iv_list_name_enumeration_5_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-5-4.xml",
class_name="NistschemaSvIvListNameEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_4_nistxml_sv_iv_list_name_enumeration_5_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-5-5.xml",
class_name="NistschemaSvIvListNameEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_3_nistxml_sv_iv_list_name_enumeration_4_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-4-1.xml",
class_name="NistschemaSvIvListNameEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_3_nistxml_sv_iv_list_name_enumeration_4_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-4-2.xml",
class_name="NistschemaSvIvListNameEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_3_nistxml_sv_iv_list_name_enumeration_4_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-4-3.xml",
class_name="NistschemaSvIvListNameEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_3_nistxml_sv_iv_list_name_enumeration_4_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-4-4.xml",
class_name="NistschemaSvIvListNameEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_3_nistxml_sv_iv_list_name_enumeration_4_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-4-5.xml",
class_name="NistschemaSvIvListNameEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_2_nistxml_sv_iv_list_name_enumeration_3_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-3-1.xml",
class_name="NistschemaSvIvListNameEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_2_nistxml_sv_iv_list_name_enumeration_3_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-3-2.xml",
class_name="NistschemaSvIvListNameEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_2_nistxml_sv_iv_list_name_enumeration_3_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-3-3.xml",
class_name="NistschemaSvIvListNameEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_2_nistxml_sv_iv_list_name_enumeration_3_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-3-4.xml",
class_name="NistschemaSvIvListNameEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_2_nistxml_sv_iv_list_name_enumeration_3_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-3-5.xml",
class_name="NistschemaSvIvListNameEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_1_nistxml_sv_iv_list_name_enumeration_2_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-2-1.xml",
class_name="NistschemaSvIvListNameEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_1_nistxml_sv_iv_list_name_enumeration_2_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-2-2.xml",
class_name="NistschemaSvIvListNameEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_1_nistxml_sv_iv_list_name_enumeration_2_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-2-3.xml",
class_name="NistschemaSvIvListNameEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_1_nistxml_sv_iv_list_name_enumeration_2_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-2-4.xml",
class_name="NistschemaSvIvListNameEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_1_nistxml_sv_iv_list_name_enumeration_2_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-2-5.xml",
class_name="NistschemaSvIvListNameEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_nistxml_sv_iv_list_name_enumeration_1_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-1-1.xml",
class_name="NistschemaSvIvListNameEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_nistxml_sv_iv_list_name_enumeration_1_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-1-2.xml",
class_name="NistschemaSvIvListNameEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_nistxml_sv_iv_list_name_enumeration_1_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-1-3.xml",
class_name="NistschemaSvIvListNameEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_nistxml_sv_iv_list_name_enumeration_1_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-1-4.xml",
class_name="NistschemaSvIvListNameEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_enumeration_nistxml_sv_iv_list_name_enumeration_1_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-enumeration-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-enumeration-1-5.xml",
class_name="NistschemaSvIvListNameEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_4_nistxml_sv_iv_list_name_pattern_5_1(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{21}
\i\c{22} \i\c{35} \i\c{25} \i\c{26} \i\c{12} \i\c{48} \i\c{33}
\i\c{44} \i\c{57}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-5-1.xml",
class_name="NistschemaSvIvListNamePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_4_nistxml_sv_iv_list_name_pattern_5_2(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{21}
\i\c{22} \i\c{35} \i\c{25} \i\c{26} \i\c{12} \i\c{48} \i\c{33}
\i\c{44} \i\c{57}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-5-2.xml",
class_name="NistschemaSvIvListNamePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_4_nistxml_sv_iv_list_name_pattern_5_3(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{21}
\i\c{22} \i\c{35} \i\c{25} \i\c{26} \i\c{12} \i\c{48} \i\c{33}
\i\c{44} \i\c{57}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-5-3.xml",
class_name="NistschemaSvIvListNamePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_4_nistxml_sv_iv_list_name_pattern_5_4(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{21}
\i\c{22} \i\c{35} \i\c{25} \i\c{26} \i\c{12} \i\c{48} \i\c{33}
\i\c{44} \i\c{57}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-5-4.xml",
class_name="NistschemaSvIvListNamePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_4_nistxml_sv_iv_list_name_pattern_5_5(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{21}
\i\c{22} \i\c{35} \i\c{25} \i\c{26} \i\c{12} \i\c{48} \i\c{33}
\i\c{44} \i\c{57}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-5-5.xml",
class_name="NistschemaSvIvListNamePattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_3_nistxml_sv_iv_list_name_pattern_4_1(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{19}
\i\c{63} \i\c{18} \i\c{40} \i\c{12} \i\c{58} \i\c{47} \i\c{54}
\i\c{15}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-4-1.xml",
class_name="NistschemaSvIvListNamePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_3_nistxml_sv_iv_list_name_pattern_4_2(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{19}
\i\c{63} \i\c{18} \i\c{40} \i\c{12} \i\c{58} \i\c{47} \i\c{54}
\i\c{15}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-4-2.xml",
class_name="NistschemaSvIvListNamePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_3_nistxml_sv_iv_list_name_pattern_4_3(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{19}
\i\c{63} \i\c{18} \i\c{40} \i\c{12} \i\c{58} \i\c{47} \i\c{54}
\i\c{15}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-4-3.xml",
class_name="NistschemaSvIvListNamePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_3_nistxml_sv_iv_list_name_pattern_4_4(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{19}
\i\c{63} \i\c{18} \i\c{40} \i\c{12} \i\c{58} \i\c{47} \i\c{54}
\i\c{15}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-4-4.xml",
class_name="NistschemaSvIvListNamePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_3_nistxml_sv_iv_list_name_pattern_4_5(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{19}
\i\c{63} \i\c{18} \i\c{40} \i\c{12} \i\c{58} \i\c{47} \i\c{54}
\i\c{15}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-4-5.xml",
class_name="NistschemaSvIvListNamePattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_2_nistxml_sv_iv_list_name_pattern_3_1(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{24}
\i\c{23} \i\c{57} \i\c{50} \i\c{52} \i\c{35} \i\c{28}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-3-1.xml",
class_name="NistschemaSvIvListNamePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_2_nistxml_sv_iv_list_name_pattern_3_2(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{24}
\i\c{23} \i\c{57} \i\c{50} \i\c{52} \i\c{35} \i\c{28}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-3-2.xml",
class_name="NistschemaSvIvListNamePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_2_nistxml_sv_iv_list_name_pattern_3_3(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{24}
\i\c{23} \i\c{57} \i\c{50} \i\c{52} \i\c{35} \i\c{28}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-3-3.xml",
class_name="NistschemaSvIvListNamePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_2_nistxml_sv_iv_list_name_pattern_3_4(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{24}
\i\c{23} \i\c{57} \i\c{50} \i\c{52} \i\c{35} \i\c{28}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-3-4.xml",
class_name="NistschemaSvIvListNamePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_2_nistxml_sv_iv_list_name_pattern_3_5(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{24}
\i\c{23} \i\c{57} \i\c{50} \i\c{52} \i\c{35} \i\c{28}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-3-5.xml",
class_name="NistschemaSvIvListNamePattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_1_nistxml_sv_iv_list_name_pattern_2_1(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{33}
\i\c{52} \i\c{56} \i\c{6} \i\c{22}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-2-1.xml",
class_name="NistschemaSvIvListNamePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_1_nistxml_sv_iv_list_name_pattern_2_2(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{33}
\i\c{52} \i\c{56} \i\c{6} \i\c{22}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-2-2.xml",
class_name="NistschemaSvIvListNamePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_1_nistxml_sv_iv_list_name_pattern_2_3(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{33}
\i\c{52} \i\c{56} \i\c{6} \i\c{22}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-2-3.xml",
class_name="NistschemaSvIvListNamePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_1_nistxml_sv_iv_list_name_pattern_2_4(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{33}
\i\c{52} \i\c{56} \i\c{6} \i\c{22}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-2-4.xml",
class_name="NistschemaSvIvListNamePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_1_nistxml_sv_iv_list_name_pattern_2_5(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{33}
\i\c{52} \i\c{56} \i\c{6} \i\c{22}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-2-5.xml",
class_name="NistschemaSvIvListNamePattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_nistxml_sv_iv_list_name_pattern_1_1(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{48}
\i\c{47} \i\c{13} \i\c{4} \i\c{46} \i\c{37}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-1-1.xml",
class_name="NistschemaSvIvListNamePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_nistxml_sv_iv_list_name_pattern_1_2(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{48}
\i\c{47} \i\c{13} \i\c{4} \i\c{46} \i\c{37}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-1-2.xml",
class_name="NistschemaSvIvListNamePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_nistxml_sv_iv_list_name_pattern_1_3(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{48}
\i\c{47} \i\c{13} \i\c{4} \i\c{46} \i\c{37}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-1-3.xml",
class_name="NistschemaSvIvListNamePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_nistxml_sv_iv_list_name_pattern_1_4(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{48}
\i\c{47} \i\c{13} \i\c{4} \i\c{46} \i\c{37}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-1-4.xml",
class_name="NistschemaSvIvListNamePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_pattern_nistxml_sv_iv_list_name_pattern_1_5(mode, save_output, output_format):
r"""
Type list/Name is restricted by facet pattern with value \i\c{48}
\i\c{47} \i\c{13} \i\c{4} \i\c{46} \i\c{37}.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-pattern-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-pattern-1-5.xml",
class_name="NistschemaSvIvListNamePattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_4_nistxml_sv_iv_list_name_length_5_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-5-1.xml",
class_name="NistschemaSvIvListNameLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_4_nistxml_sv_iv_list_name_length_5_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-5-2.xml",
class_name="NistschemaSvIvListNameLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_4_nistxml_sv_iv_list_name_length_5_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-5-3.xml",
class_name="NistschemaSvIvListNameLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_4_nistxml_sv_iv_list_name_length_5_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-5-4.xml",
class_name="NistschemaSvIvListNameLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_4_nistxml_sv_iv_list_name_length_5_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-5-5.xml",
class_name="NistschemaSvIvListNameLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_3_nistxml_sv_iv_list_name_length_4_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-4-1.xml",
class_name="NistschemaSvIvListNameLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_3_nistxml_sv_iv_list_name_length_4_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-4-2.xml",
class_name="NistschemaSvIvListNameLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_3_nistxml_sv_iv_list_name_length_4_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-4-3.xml",
class_name="NistschemaSvIvListNameLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_3_nistxml_sv_iv_list_name_length_4_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-4-4.xml",
class_name="NistschemaSvIvListNameLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_3_nistxml_sv_iv_list_name_length_4_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-4-5.xml",
class_name="NistschemaSvIvListNameLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_2_nistxml_sv_iv_list_name_length_3_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-3-1.xml",
class_name="NistschemaSvIvListNameLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_2_nistxml_sv_iv_list_name_length_3_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-3-2.xml",
class_name="NistschemaSvIvListNameLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_2_nistxml_sv_iv_list_name_length_3_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-3-3.xml",
class_name="NistschemaSvIvListNameLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_2_nistxml_sv_iv_list_name_length_3_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-3-4.xml",
class_name="NistschemaSvIvListNameLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_2_nistxml_sv_iv_list_name_length_3_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-3-5.xml",
class_name="NistschemaSvIvListNameLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_1_nistxml_sv_iv_list_name_length_2_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-2-1.xml",
class_name="NistschemaSvIvListNameLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_1_nistxml_sv_iv_list_name_length_2_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-2-2.xml",
class_name="NistschemaSvIvListNameLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_1_nistxml_sv_iv_list_name_length_2_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-2-3.xml",
class_name="NistschemaSvIvListNameLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_1_nistxml_sv_iv_list_name_length_2_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-2-4.xml",
class_name="NistschemaSvIvListNameLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_1_nistxml_sv_iv_list_name_length_2_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-2-5.xml",
class_name="NistschemaSvIvListNameLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_nistxml_sv_iv_list_name_length_1_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-1-1.xml",
class_name="NistschemaSvIvListNameLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_nistxml_sv_iv_list_name_length_1_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-1-2.xml",
class_name="NistschemaSvIvListNameLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_nistxml_sv_iv_list_name_length_1_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-1-3.xml",
class_name="NistschemaSvIvListNameLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_nistxml_sv_iv_list_name_length_1_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-1-4.xml",
class_name="NistschemaSvIvListNameLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_length_nistxml_sv_iv_list_name_length_1_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-length-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-length-1-5.xml",
class_name="NistschemaSvIvListNameLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_4_nistxml_sv_iv_list_name_min_length_5_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-5-1.xml",
class_name="NistschemaSvIvListNameMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_4_nistxml_sv_iv_list_name_min_length_5_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-5-2.xml",
class_name="NistschemaSvIvListNameMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_4_nistxml_sv_iv_list_name_min_length_5_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-5-3.xml",
class_name="NistschemaSvIvListNameMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_4_nistxml_sv_iv_list_name_min_length_5_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-5-4.xml",
class_name="NistschemaSvIvListNameMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_4_nistxml_sv_iv_list_name_min_length_5_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-5-5.xml",
class_name="NistschemaSvIvListNameMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_3_nistxml_sv_iv_list_name_min_length_4_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-4-1.xml",
class_name="NistschemaSvIvListNameMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_3_nistxml_sv_iv_list_name_min_length_4_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-4-2.xml",
class_name="NistschemaSvIvListNameMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_3_nistxml_sv_iv_list_name_min_length_4_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-4-3.xml",
class_name="NistschemaSvIvListNameMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_3_nistxml_sv_iv_list_name_min_length_4_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-4-4.xml",
class_name="NistschemaSvIvListNameMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_3_nistxml_sv_iv_list_name_min_length_4_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-4-5.xml",
class_name="NistschemaSvIvListNameMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_2_nistxml_sv_iv_list_name_min_length_3_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-3-1.xml",
class_name="NistschemaSvIvListNameMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_2_nistxml_sv_iv_list_name_min_length_3_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-3-2.xml",
class_name="NistschemaSvIvListNameMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_2_nistxml_sv_iv_list_name_min_length_3_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-3-3.xml",
class_name="NistschemaSvIvListNameMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_2_nistxml_sv_iv_list_name_min_length_3_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-3-4.xml",
class_name="NistschemaSvIvListNameMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_2_nistxml_sv_iv_list_name_min_length_3_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-3-5.xml",
class_name="NistschemaSvIvListNameMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_1_nistxml_sv_iv_list_name_min_length_2_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-2-1.xml",
class_name="NistschemaSvIvListNameMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_1_nistxml_sv_iv_list_name_min_length_2_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-2-2.xml",
class_name="NistschemaSvIvListNameMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_1_nistxml_sv_iv_list_name_min_length_2_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-2-3.xml",
class_name="NistschemaSvIvListNameMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_1_nistxml_sv_iv_list_name_min_length_2_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-2-4.xml",
class_name="NistschemaSvIvListNameMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_1_nistxml_sv_iv_list_name_min_length_2_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-2-5.xml",
class_name="NistschemaSvIvListNameMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_nistxml_sv_iv_list_name_min_length_1_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-1-1.xml",
class_name="NistschemaSvIvListNameMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_nistxml_sv_iv_list_name_min_length_1_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-1-2.xml",
class_name="NistschemaSvIvListNameMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_nistxml_sv_iv_list_name_min_length_1_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-1-3.xml",
class_name="NistschemaSvIvListNameMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_nistxml_sv_iv_list_name_min_length_1_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-1-4.xml",
class_name="NistschemaSvIvListNameMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_min_length_nistxml_sv_iv_list_name_min_length_1_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-minLength-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-minLength-1-5.xml",
class_name="NistschemaSvIvListNameMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_4_nistxml_sv_iv_list_name_max_length_5_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-5-1.xml",
class_name="NistschemaSvIvListNameMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_4_nistxml_sv_iv_list_name_max_length_5_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-5-2.xml",
class_name="NistschemaSvIvListNameMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_4_nistxml_sv_iv_list_name_max_length_5_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-5-3.xml",
class_name="NistschemaSvIvListNameMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_4_nistxml_sv_iv_list_name_max_length_5_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-5-4.xml",
class_name="NistschemaSvIvListNameMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_4_nistxml_sv_iv_list_name_max_length_5_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-5.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-5-5.xml",
class_name="NistschemaSvIvListNameMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_3_nistxml_sv_iv_list_name_max_length_4_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-4-1.xml",
class_name="NistschemaSvIvListNameMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_3_nistxml_sv_iv_list_name_max_length_4_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-4-2.xml",
class_name="NistschemaSvIvListNameMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_3_nistxml_sv_iv_list_name_max_length_4_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-4-3.xml",
class_name="NistschemaSvIvListNameMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_3_nistxml_sv_iv_list_name_max_length_4_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-4-4.xml",
class_name="NistschemaSvIvListNameMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_3_nistxml_sv_iv_list_name_max_length_4_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-4.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-4-5.xml",
class_name="NistschemaSvIvListNameMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_2_nistxml_sv_iv_list_name_max_length_3_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-3-1.xml",
class_name="NistschemaSvIvListNameMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_2_nistxml_sv_iv_list_name_max_length_3_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-3-2.xml",
class_name="NistschemaSvIvListNameMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_2_nistxml_sv_iv_list_name_max_length_3_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-3-3.xml",
class_name="NistschemaSvIvListNameMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_2_nistxml_sv_iv_list_name_max_length_3_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-3-4.xml",
class_name="NistschemaSvIvListNameMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_2_nistxml_sv_iv_list_name_max_length_3_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-3.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-3-5.xml",
class_name="NistschemaSvIvListNameMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_1_nistxml_sv_iv_list_name_max_length_2_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-2-1.xml",
class_name="NistschemaSvIvListNameMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_1_nistxml_sv_iv_list_name_max_length_2_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-2-2.xml",
class_name="NistschemaSvIvListNameMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_1_nistxml_sv_iv_list_name_max_length_2_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-2-3.xml",
class_name="NistschemaSvIvListNameMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_1_nistxml_sv_iv_list_name_max_length_2_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-2-4.xml",
class_name="NistschemaSvIvListNameMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_1_nistxml_sv_iv_list_name_max_length_2_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-2.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-2-5.xml",
class_name="NistschemaSvIvListNameMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_nistxml_sv_iv_list_name_max_length_1_1(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-1-1.xml",
class_name="NistschemaSvIvListNameMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_nistxml_sv_iv_list_name_max_length_1_2(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-1-2.xml",
class_name="NistschemaSvIvListNameMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_nistxml_sv_iv_list_name_max_length_1_3(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-1-3.xml",
class_name="NistschemaSvIvListNameMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_nistxml_sv_iv_list_name_max_length_1_4(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-1-4.xml",
class_name="NistschemaSvIvListNameMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_name_max_length_nistxml_sv_iv_list_name_max_length_1_5(mode, save_output, output_format):
"""
Type list/Name is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/Name/Schema+Instance/NISTSchema-SV-IV-list-Name-maxLength-1.xsd",
instance="nistData/list/Name/Schema+Instance/NISTXML-SV-IV-list-Name-maxLength-1-5.xml",
class_name="NistschemaSvIvListNameMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_white_space_nistxml_sv_iv_list_token_white_space_1_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-whiteSpace-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-whiteSpace-1-1.xml",
class_name="NistschemaSvIvListTokenWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_white_space_nistxml_sv_iv_list_token_white_space_1_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-whiteSpace-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-whiteSpace-1-2.xml",
class_name="NistschemaSvIvListTokenWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_white_space_nistxml_sv_iv_list_token_white_space_1_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-whiteSpace-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-whiteSpace-1-3.xml",
class_name="NistschemaSvIvListTokenWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_white_space_nistxml_sv_iv_list_token_white_space_1_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-whiteSpace-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-whiteSpace-1-4.xml",
class_name="NistschemaSvIvListTokenWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_white_space_nistxml_sv_iv_list_token_white_space_1_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet whiteSpace with value collapse.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-whiteSpace-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-whiteSpace-1-5.xml",
class_name="NistschemaSvIvListTokenWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_4_nistxml_sv_iv_list_token_enumeration_5_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-5-1.xml",
class_name="NistschemaSvIvListTokenEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_4_nistxml_sv_iv_list_token_enumeration_5_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-5-2.xml",
class_name="NistschemaSvIvListTokenEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_4_nistxml_sv_iv_list_token_enumeration_5_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-5-3.xml",
class_name="NistschemaSvIvListTokenEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_4_nistxml_sv_iv_list_token_enumeration_5_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-5-4.xml",
class_name="NistschemaSvIvListTokenEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_4_nistxml_sv_iv_list_token_enumeration_5_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-5-5.xml",
class_name="NistschemaSvIvListTokenEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_3_nistxml_sv_iv_list_token_enumeration_4_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-4-1.xml",
class_name="NistschemaSvIvListTokenEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_3_nistxml_sv_iv_list_token_enumeration_4_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-4-2.xml",
class_name="NistschemaSvIvListTokenEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_3_nistxml_sv_iv_list_token_enumeration_4_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-4-3.xml",
class_name="NistschemaSvIvListTokenEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_3_nistxml_sv_iv_list_token_enumeration_4_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-4-4.xml",
class_name="NistschemaSvIvListTokenEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_3_nistxml_sv_iv_list_token_enumeration_4_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-4-5.xml",
class_name="NistschemaSvIvListTokenEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_2_nistxml_sv_iv_list_token_enumeration_3_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-3-1.xml",
class_name="NistschemaSvIvListTokenEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_2_nistxml_sv_iv_list_token_enumeration_3_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-3-2.xml",
class_name="NistschemaSvIvListTokenEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_2_nistxml_sv_iv_list_token_enumeration_3_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-3-3.xml",
class_name="NistschemaSvIvListTokenEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_2_nistxml_sv_iv_list_token_enumeration_3_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-3-4.xml",
class_name="NistschemaSvIvListTokenEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_2_nistxml_sv_iv_list_token_enumeration_3_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-3-5.xml",
class_name="NistschemaSvIvListTokenEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_1_nistxml_sv_iv_list_token_enumeration_2_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-2-1.xml",
class_name="NistschemaSvIvListTokenEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_1_nistxml_sv_iv_list_token_enumeration_2_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-2-2.xml",
class_name="NistschemaSvIvListTokenEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_1_nistxml_sv_iv_list_token_enumeration_2_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-2-3.xml",
class_name="NistschemaSvIvListTokenEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_1_nistxml_sv_iv_list_token_enumeration_2_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-2-4.xml",
class_name="NistschemaSvIvListTokenEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_1_nistxml_sv_iv_list_token_enumeration_2_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-2-5.xml",
class_name="NistschemaSvIvListTokenEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_nistxml_sv_iv_list_token_enumeration_1_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-1-1.xml",
class_name="NistschemaSvIvListTokenEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_nistxml_sv_iv_list_token_enumeration_1_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-1-2.xml",
class_name="NistschemaSvIvListTokenEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_nistxml_sv_iv_list_token_enumeration_1_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-1-3.xml",
class_name="NistschemaSvIvListTokenEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_nistxml_sv_iv_list_token_enumeration_1_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-1-4.xml",
class_name="NistschemaSvIvListTokenEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_enumeration_nistxml_sv_iv_list_token_enumeration_1_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-enumeration-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-enumeration-1-5.xml",
class_name="NistschemaSvIvListTokenEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_4_nistxml_sv_iv_list_token_pattern_5_1(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_17988 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14056-
1024 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_10607 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_17619-1280 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13978 \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18746 \d{1,
5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_17171-1364 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_16881.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-5-1.xml",
class_name="NistschemaSvIvListTokenPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_4_nistxml_sv_iv_list_token_pattern_5_2(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_17988 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14056-
1024 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_10607 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_17619-1280 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13978 \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18746 \d{1,
5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_17171-1364 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_16881.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-5-2.xml",
class_name="NistschemaSvIvListTokenPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_4_nistxml_sv_iv_list_token_pattern_5_3(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_17988 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14056-
1024 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_10607 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_17619-1280 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13978 \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18746 \d{1,
5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_17171-1364 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_16881.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-5-3.xml",
class_name="NistschemaSvIvListTokenPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_4_nistxml_sv_iv_list_token_pattern_5_4(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_17988 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14056-
1024 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_10607 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_17619-1280 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13978 \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18746 \d{1,
5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_17171-1364 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_16881.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-5-4.xml",
class_name="NistschemaSvIvListTokenPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_4_nistxml_sv_iv_list_token_pattern_5_5(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_17988 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14056-
1024 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_10607 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_17619-1280 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13978 \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18746 \d{1,
5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_17171-1364 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_16881.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-5-5.xml",
class_name="NistschemaSvIvListTokenPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_3_nistxml_sv_iv_list_token_pattern_4_1(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_17930-1652 \
d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_19453 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_18434-1961 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14405 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_15365 \d{1,
5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_16114
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_14742 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_12190-1064 \d{1,5}_([A-Z][a-
z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13082-1344.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-4-1.xml",
class_name="NistschemaSvIvListTokenPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_3_nistxml_sv_iv_list_token_pattern_4_2(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_17930-1652 \
d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_19453 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_18434-1961 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14405 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_15365 \d{1,
5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_16114
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_14742 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_12190-1064 \d{1,5}_([A-Z][a-
z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13082-1344.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-4-2.xml",
class_name="NistschemaSvIvListTokenPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_3_nistxml_sv_iv_list_token_pattern_4_3(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_17930-1652 \
d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_19453 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_18434-1961 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14405 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_15365 \d{1,
5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_16114
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_14742 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_12190-1064 \d{1,5}_([A-Z][a-
z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13082-1344.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-4-3.xml",
class_name="NistschemaSvIvListTokenPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_3_nistxml_sv_iv_list_token_pattern_4_4(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_17930-1652 \
d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_19453 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_18434-1961 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14405 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_15365 \d{1,
5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_16114
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_14742 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_12190-1064 \d{1,5}_([A-Z][a-
z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13082-1344.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-4-4.xml",
class_name="NistschemaSvIvListTokenPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_3_nistxml_sv_iv_list_token_pattern_4_5(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_17930-1652 \
d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_19453 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_18434-1961 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14405 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_15365 \d{1,
5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_16114
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_14742 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_12190-1064 \d{1,5}_([A-Z][a-
z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13082-1344.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-4-5.xml",
class_name="NistschemaSvIvListTokenPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_2_nistxml_sv_iv_list_token_pattern_3_1(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_11426-1564 \
d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_12210 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_10273 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_15228-1341 \d{1,5
}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_19382
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_15012-1071 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16723.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-3-1.xml",
class_name="NistschemaSvIvListTokenPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_2_nistxml_sv_iv_list_token_pattern_3_2(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_11426-1564 \
d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_12210 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_10273 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_15228-1341 \d{1,5
}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_19382
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_15012-1071 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16723.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-3-2.xml",
class_name="NistschemaSvIvListTokenPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_2_nistxml_sv_iv_list_token_pattern_3_3(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_11426-1564 \
d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_12210 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_10273 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_15228-1341 \d{1,5
}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_19382
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_15012-1071 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16723.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-3-3.xml",
class_name="NistschemaSvIvListTokenPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_2_nistxml_sv_iv_list_token_pattern_3_4(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_11426-1564 \
d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_12210 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_10273 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_15228-1341 \d{1,5
}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_19382
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_15012-1071 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16723.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-3-4.xml",
class_name="NistschemaSvIvListTokenPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_2_nistxml_sv_iv_list_token_pattern_3_5(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_11426-1564 \
d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_12210 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_10273 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_15228-1341 \d{1,5
}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_19382
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_15012-1071 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16723.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-3-5.xml",
class_name="NistschemaSvIvListTokenPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_1_nistxml_sv_iv_list_token_pattern_2_1(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13797-1926 \
d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_13549-1185 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_11867 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13558-1548 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_10722-
1701 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_14892 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15901-1354 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_12361 \d{1,5}_([A
-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13151-1383.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-2-1.xml",
class_name="NistschemaSvIvListTokenPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_1_nistxml_sv_iv_list_token_pattern_2_2(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13797-1926 \
d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_13549-1185 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_11867 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13558-1548 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_10722-
1701 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_14892 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15901-1354 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_12361 \d{1,5}_([A
-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13151-1383.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-2-2.xml",
class_name="NistschemaSvIvListTokenPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_1_nistxml_sv_iv_list_token_pattern_2_3(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13797-1926 \
d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_13549-1185 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_11867 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13558-1548 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_10722-
1701 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_14892 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15901-1354 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_12361 \d{1,5}_([A
-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13151-1383.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-2-3.xml",
class_name="NistschemaSvIvListTokenPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_1_nistxml_sv_iv_list_token_pattern_2_4(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13797-1926 \
d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_13549-1185 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_11867 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13558-1548 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_10722-
1701 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_14892 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15901-1354 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_12361 \d{1,5}_([A
-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13151-1383.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-2-4.xml",
class_name="NistschemaSvIvListTokenPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_1_nistxml_sv_iv_list_token_pattern_2_5(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13797-1926 \
d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_13549-1185 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_11867 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13558-1548 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_10722-
1701 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_14892 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15901-1354 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_12361 \d{1,5}_([A
-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13151-1383.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-2-5.xml",
class_name="NistschemaSvIvListTokenPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_nistxml_sv_iv_list_token_pattern_1_1(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15685 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13673
\d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10126 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_12533 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13175.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-1-1.xml",
class_name="NistschemaSvIvListTokenPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_nistxml_sv_iv_list_token_pattern_1_2(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15685 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13673
\d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10126 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_12533 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13175.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-1-2.xml",
class_name="NistschemaSvIvListTokenPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_nistxml_sv_iv_list_token_pattern_1_3(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15685 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13673
\d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10126 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_12533 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13175.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-1-3.xml",
class_name="NistschemaSvIvListTokenPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_nistxml_sv_iv_list_token_pattern_1_4(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15685 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13673
\d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10126 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_12533 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13175.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-1-4.xml",
class_name="NistschemaSvIvListTokenPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_pattern_nistxml_sv_iv_list_token_pattern_1_5(mode, save_output, output_format):
r"""
Type list/token is restricted by facet pattern with value \d{1,5}_([A-
Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15685 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13673
\d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10126 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_12533 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_13175.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-pattern-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-pattern-1-5.xml",
class_name="NistschemaSvIvListTokenPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_4_nistxml_sv_iv_list_token_length_5_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-5-1.xml",
class_name="NistschemaSvIvListTokenLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_4_nistxml_sv_iv_list_token_length_5_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-5-2.xml",
class_name="NistschemaSvIvListTokenLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_4_nistxml_sv_iv_list_token_length_5_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-5-3.xml",
class_name="NistschemaSvIvListTokenLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_4_nistxml_sv_iv_list_token_length_5_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-5-4.xml",
class_name="NistschemaSvIvListTokenLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_4_nistxml_sv_iv_list_token_length_5_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-5-5.xml",
class_name="NistschemaSvIvListTokenLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_3_nistxml_sv_iv_list_token_length_4_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-4-1.xml",
class_name="NistschemaSvIvListTokenLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_3_nistxml_sv_iv_list_token_length_4_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-4-2.xml",
class_name="NistschemaSvIvListTokenLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_3_nistxml_sv_iv_list_token_length_4_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-4-3.xml",
class_name="NistschemaSvIvListTokenLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_3_nistxml_sv_iv_list_token_length_4_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-4-4.xml",
class_name="NistschemaSvIvListTokenLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_3_nistxml_sv_iv_list_token_length_4_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-4-5.xml",
class_name="NistschemaSvIvListTokenLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_2_nistxml_sv_iv_list_token_length_3_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-3-1.xml",
class_name="NistschemaSvIvListTokenLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_2_nistxml_sv_iv_list_token_length_3_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-3-2.xml",
class_name="NistschemaSvIvListTokenLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_2_nistxml_sv_iv_list_token_length_3_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-3-3.xml",
class_name="NistschemaSvIvListTokenLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_2_nistxml_sv_iv_list_token_length_3_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-3-4.xml",
class_name="NistschemaSvIvListTokenLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_2_nistxml_sv_iv_list_token_length_3_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-3-5.xml",
class_name="NistschemaSvIvListTokenLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_1_nistxml_sv_iv_list_token_length_2_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-2-1.xml",
class_name="NistschemaSvIvListTokenLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_1_nistxml_sv_iv_list_token_length_2_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-2-2.xml",
class_name="NistschemaSvIvListTokenLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_1_nistxml_sv_iv_list_token_length_2_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-2-3.xml",
class_name="NistschemaSvIvListTokenLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_1_nistxml_sv_iv_list_token_length_2_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-2-4.xml",
class_name="NistschemaSvIvListTokenLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_1_nistxml_sv_iv_list_token_length_2_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-2-5.xml",
class_name="NistschemaSvIvListTokenLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_nistxml_sv_iv_list_token_length_1_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-1-1.xml",
class_name="NistschemaSvIvListTokenLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_nistxml_sv_iv_list_token_length_1_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-1-2.xml",
class_name="NistschemaSvIvListTokenLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_nistxml_sv_iv_list_token_length_1_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-1-3.xml",
class_name="NistschemaSvIvListTokenLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_nistxml_sv_iv_list_token_length_1_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-1-4.xml",
class_name="NistschemaSvIvListTokenLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_length_nistxml_sv_iv_list_token_length_1_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-length-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-length-1-5.xml",
class_name="NistschemaSvIvListTokenLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_4_nistxml_sv_iv_list_token_min_length_5_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-5-1.xml",
class_name="NistschemaSvIvListTokenMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_4_nistxml_sv_iv_list_token_min_length_5_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-5-2.xml",
class_name="NistschemaSvIvListTokenMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_4_nistxml_sv_iv_list_token_min_length_5_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-5-3.xml",
class_name="NistschemaSvIvListTokenMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_4_nistxml_sv_iv_list_token_min_length_5_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-5-4.xml",
class_name="NistschemaSvIvListTokenMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_4_nistxml_sv_iv_list_token_min_length_5_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-5-5.xml",
class_name="NistschemaSvIvListTokenMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_3_nistxml_sv_iv_list_token_min_length_4_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-4-1.xml",
class_name="NistschemaSvIvListTokenMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_3_nistxml_sv_iv_list_token_min_length_4_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-4-2.xml",
class_name="NistschemaSvIvListTokenMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_3_nistxml_sv_iv_list_token_min_length_4_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-4-3.xml",
class_name="NistschemaSvIvListTokenMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_3_nistxml_sv_iv_list_token_min_length_4_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-4-4.xml",
class_name="NistschemaSvIvListTokenMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_3_nistxml_sv_iv_list_token_min_length_4_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-4-5.xml",
class_name="NistschemaSvIvListTokenMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_2_nistxml_sv_iv_list_token_min_length_3_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-3-1.xml",
class_name="NistschemaSvIvListTokenMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_2_nistxml_sv_iv_list_token_min_length_3_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-3-2.xml",
class_name="NistschemaSvIvListTokenMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_2_nistxml_sv_iv_list_token_min_length_3_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-3-3.xml",
class_name="NistschemaSvIvListTokenMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_2_nistxml_sv_iv_list_token_min_length_3_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-3-4.xml",
class_name="NistschemaSvIvListTokenMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_2_nistxml_sv_iv_list_token_min_length_3_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-3-5.xml",
class_name="NistschemaSvIvListTokenMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_1_nistxml_sv_iv_list_token_min_length_2_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-2-1.xml",
class_name="NistschemaSvIvListTokenMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_1_nistxml_sv_iv_list_token_min_length_2_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-2-2.xml",
class_name="NistschemaSvIvListTokenMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_1_nistxml_sv_iv_list_token_min_length_2_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-2-3.xml",
class_name="NistschemaSvIvListTokenMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_1_nistxml_sv_iv_list_token_min_length_2_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-2-4.xml",
class_name="NistschemaSvIvListTokenMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_1_nistxml_sv_iv_list_token_min_length_2_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-2-5.xml",
class_name="NistschemaSvIvListTokenMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_nistxml_sv_iv_list_token_min_length_1_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-1-1.xml",
class_name="NistschemaSvIvListTokenMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_nistxml_sv_iv_list_token_min_length_1_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-1-2.xml",
class_name="NistschemaSvIvListTokenMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_nistxml_sv_iv_list_token_min_length_1_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-1-3.xml",
class_name="NistschemaSvIvListTokenMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_nistxml_sv_iv_list_token_min_length_1_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-1-4.xml",
class_name="NistschemaSvIvListTokenMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_min_length_nistxml_sv_iv_list_token_min_length_1_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-minLength-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-minLength-1-5.xml",
class_name="NistschemaSvIvListTokenMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_4_nistxml_sv_iv_list_token_max_length_5_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-5-1.xml",
class_name="NistschemaSvIvListTokenMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_4_nistxml_sv_iv_list_token_max_length_5_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-5-2.xml",
class_name="NistschemaSvIvListTokenMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_4_nistxml_sv_iv_list_token_max_length_5_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-5-3.xml",
class_name="NistschemaSvIvListTokenMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_4_nistxml_sv_iv_list_token_max_length_5_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-5-4.xml",
class_name="NistschemaSvIvListTokenMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_4_nistxml_sv_iv_list_token_max_length_5_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-5.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-5-5.xml",
class_name="NistschemaSvIvListTokenMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_3_nistxml_sv_iv_list_token_max_length_4_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-4-1.xml",
class_name="NistschemaSvIvListTokenMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_3_nistxml_sv_iv_list_token_max_length_4_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-4-2.xml",
class_name="NistschemaSvIvListTokenMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_3_nistxml_sv_iv_list_token_max_length_4_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-4-3.xml",
class_name="NistschemaSvIvListTokenMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_3_nistxml_sv_iv_list_token_max_length_4_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-4-4.xml",
class_name="NistschemaSvIvListTokenMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_3_nistxml_sv_iv_list_token_max_length_4_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-4.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-4-5.xml",
class_name="NistschemaSvIvListTokenMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_2_nistxml_sv_iv_list_token_max_length_3_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-3-1.xml",
class_name="NistschemaSvIvListTokenMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_2_nistxml_sv_iv_list_token_max_length_3_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-3-2.xml",
class_name="NistschemaSvIvListTokenMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_2_nistxml_sv_iv_list_token_max_length_3_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-3-3.xml",
class_name="NistschemaSvIvListTokenMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_2_nistxml_sv_iv_list_token_max_length_3_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-3-4.xml",
class_name="NistschemaSvIvListTokenMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_2_nistxml_sv_iv_list_token_max_length_3_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-3.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-3-5.xml",
class_name="NistschemaSvIvListTokenMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_1_nistxml_sv_iv_list_token_max_length_2_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-2-1.xml",
class_name="NistschemaSvIvListTokenMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_1_nistxml_sv_iv_list_token_max_length_2_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-2-2.xml",
class_name="NistschemaSvIvListTokenMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_1_nistxml_sv_iv_list_token_max_length_2_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-2-3.xml",
class_name="NistschemaSvIvListTokenMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_1_nistxml_sv_iv_list_token_max_length_2_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-2-4.xml",
class_name="NistschemaSvIvListTokenMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_1_nistxml_sv_iv_list_token_max_length_2_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-2.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-2-5.xml",
class_name="NistschemaSvIvListTokenMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_nistxml_sv_iv_list_token_max_length_1_1(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-1-1.xml",
class_name="NistschemaSvIvListTokenMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_nistxml_sv_iv_list_token_max_length_1_2(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-1-2.xml",
class_name="NistschemaSvIvListTokenMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_nistxml_sv_iv_list_token_max_length_1_3(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-1-3.xml",
class_name="NistschemaSvIvListTokenMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_nistxml_sv_iv_list_token_max_length_1_4(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-1-4.xml",
class_name="NistschemaSvIvListTokenMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_token_max_length_nistxml_sv_iv_list_token_max_length_1_5(mode, save_output, output_format):
"""
Type list/token is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/token/Schema+Instance/NISTSchema-SV-IV-list-token-maxLength-1.xsd",
instance="nistData/list/token/Schema+Instance/NISTXML-SV-IV-list-token-maxLength-1-5.xml",
class_name="NistschemaSvIvListTokenMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_white_space_nistxml_sv_iv_list_normalized_string_white_space_1_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet whiteSpace with
value collapse.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-whiteSpace-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-whiteSpace-1-1.xml",
class_name="NistschemaSvIvListNormalizedStringWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_white_space_nistxml_sv_iv_list_normalized_string_white_space_1_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet whiteSpace with
value collapse.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-whiteSpace-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-whiteSpace-1-2.xml",
class_name="NistschemaSvIvListNormalizedStringWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_white_space_nistxml_sv_iv_list_normalized_string_white_space_1_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet whiteSpace with
value collapse.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-whiteSpace-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-whiteSpace-1-3.xml",
class_name="NistschemaSvIvListNormalizedStringWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_white_space_nistxml_sv_iv_list_normalized_string_white_space_1_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet whiteSpace with
value collapse.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-whiteSpace-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-whiteSpace-1-4.xml",
class_name="NistschemaSvIvListNormalizedStringWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_white_space_nistxml_sv_iv_list_normalized_string_white_space_1_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet whiteSpace with
value collapse.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-whiteSpace-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-whiteSpace-1-5.xml",
class_name="NistschemaSvIvListNormalizedStringWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_4_nistxml_sv_iv_list_normalized_string_enumeration_5_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-5-1.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_4_nistxml_sv_iv_list_normalized_string_enumeration_5_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-5-2.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_4_nistxml_sv_iv_list_normalized_string_enumeration_5_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-5-3.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_4_nistxml_sv_iv_list_normalized_string_enumeration_5_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-5-4.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_4_nistxml_sv_iv_list_normalized_string_enumeration_5_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-5-5.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_3_nistxml_sv_iv_list_normalized_string_enumeration_4_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-4-1.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_3_nistxml_sv_iv_list_normalized_string_enumeration_4_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-4-2.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_3_nistxml_sv_iv_list_normalized_string_enumeration_4_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-4-3.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_3_nistxml_sv_iv_list_normalized_string_enumeration_4_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-4-4.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_3_nistxml_sv_iv_list_normalized_string_enumeration_4_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-4-5.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_2_nistxml_sv_iv_list_normalized_string_enumeration_3_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-3-1.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_2_nistxml_sv_iv_list_normalized_string_enumeration_3_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-3-2.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_2_nistxml_sv_iv_list_normalized_string_enumeration_3_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-3-3.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_2_nistxml_sv_iv_list_normalized_string_enumeration_3_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-3-4.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_2_nistxml_sv_iv_list_normalized_string_enumeration_3_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-3-5.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_1_nistxml_sv_iv_list_normalized_string_enumeration_2_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-2-1.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_1_nistxml_sv_iv_list_normalized_string_enumeration_2_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-2-2.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_1_nistxml_sv_iv_list_normalized_string_enumeration_2_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-2-3.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_1_nistxml_sv_iv_list_normalized_string_enumeration_2_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-2-4.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_1_nistxml_sv_iv_list_normalized_string_enumeration_2_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-2-5.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_nistxml_sv_iv_list_normalized_string_enumeration_1_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-1-1.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_nistxml_sv_iv_list_normalized_string_enumeration_1_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-1-2.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_nistxml_sv_iv_list_normalized_string_enumeration_1_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-1-3.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_nistxml_sv_iv_list_normalized_string_enumeration_1_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-1-4.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_enumeration_nistxml_sv_iv_list_normalized_string_enumeration_1_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-enumeration-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-enumeration-1-5.xml",
class_name="NistschemaSvIvListNormalizedStringEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_4_nistxml_sv_iv_list_normalized_string_pattern_5_1(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_14600 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_15165-1290 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_17813-1396 \d{1,5
}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18970
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_13025 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_15706-1707 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_16336.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-5-1.xml",
class_name="NistschemaSvIvListNormalizedStringPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_4_nistxml_sv_iv_list_normalized_string_pattern_5_2(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_14600 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_15165-1290 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_17813-1396 \d{1,5
}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18970
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_13025 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_15706-1707 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_16336.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-5-2.xml",
class_name="NistschemaSvIvListNormalizedStringPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_4_nistxml_sv_iv_list_normalized_string_pattern_5_3(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_14600 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_15165-1290 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_17813-1396 \d{1,5
}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18970
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_13025 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_15706-1707 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_16336.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-5-3.xml",
class_name="NistschemaSvIvListNormalizedStringPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_4_nistxml_sv_iv_list_normalized_string_pattern_5_4(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_14600 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_15165-1290 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_17813-1396 \d{1,5
}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18970
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_13025 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_15706-1707 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_16336.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-5-4.xml",
class_name="NistschemaSvIvListNormalizedStringPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_4_nistxml_sv_iv_list_normalized_string_pattern_5_5(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_14600 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_15165-1290 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_17813-1396 \d{1,5
}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18970
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_13025 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_15706-1707 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_16336.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-5-5.xml",
class_name="NistschemaSvIvListNormalizedStringPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_3_nistxml_sv_iv_list_normalized_string_pattern_4_1(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_17466-1733 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16877 \d{1,5}_([A-Z][a-
z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_16698-1324 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18587
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10792 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_11619-1091.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-4-1.xml",
class_name="NistschemaSvIvListNormalizedStringPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_3_nistxml_sv_iv_list_normalized_string_pattern_4_2(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_17466-1733 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16877 \d{1,5}_([A-Z][a-
z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_16698-1324 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18587
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10792 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_11619-1091.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-4-2.xml",
class_name="NistschemaSvIvListNormalizedStringPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_3_nistxml_sv_iv_list_normalized_string_pattern_4_3(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_17466-1733 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16877 \d{1,5}_([A-Z][a-
z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_16698-1324 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18587
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10792 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_11619-1091.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-4-3.xml",
class_name="NistschemaSvIvListNormalizedStringPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_3_nistxml_sv_iv_list_normalized_string_pattern_4_4(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_17466-1733 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16877 \d{1,5}_([A-Z][a-
z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_16698-1324 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18587
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10792 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_11619-1091.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-4-4.xml",
class_name="NistschemaSvIvListNormalizedStringPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_3_nistxml_sv_iv_list_normalized_string_pattern_4_5(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_17466-1733 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16877 \d{1,5}_([A-Z][a-
z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_16698-1324 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_18587
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10792 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_11619-1091.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-4-5.xml",
class_name="NistschemaSvIvListNormalizedStringPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_2_nistxml_sv_iv_list_normalized_string_pattern_3_1(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_12432 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_10161 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11432-1137 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14004
\d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_19543-1772 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_16553-1944.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-3-1.xml",
class_name="NistschemaSvIvListNormalizedStringPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_2_nistxml_sv_iv_list_normalized_string_pattern_3_2(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_12432 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_10161 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11432-1137 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14004
\d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_19543-1772 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_16553-1944.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-3-2.xml",
class_name="NistschemaSvIvListNormalizedStringPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_2_nistxml_sv_iv_list_normalized_string_pattern_3_3(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_12432 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_10161 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11432-1137 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14004
\d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_19543-1772 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_16553-1944.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-3-3.xml",
class_name="NistschemaSvIvListNormalizedStringPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_2_nistxml_sv_iv_list_normalized_string_pattern_3_4(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_12432 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_10161 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11432-1137 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14004
\d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_19543-1772 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_16553-1944.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-3-4.xml",
class_name="NistschemaSvIvListNormalizedStringPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_2_nistxml_sv_iv_list_normalized_string_pattern_3_5(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_12432 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_10161 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11432-1137 \d{1,5
}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14004
\d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_19543-1772 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_16553-1944.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-3-5.xml",
class_name="NistschemaSvIvListNormalizedStringPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_1_nistxml_sv_iv_list_normalized_string_pattern_2_1(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_15950 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15905 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_15311 \d{1,5}_([A
-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_12031 \d{1,
5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10376.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-2-1.xml",
class_name="NistschemaSvIvListNormalizedStringPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_1_nistxml_sv_iv_list_normalized_string_pattern_2_2(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_15950 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15905 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_15311 \d{1,5}_([A
-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_12031 \d{1,
5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10376.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-2-2.xml",
class_name="NistschemaSvIvListNormalizedStringPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_1_nistxml_sv_iv_list_normalized_string_pattern_2_3(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_15950 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15905 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_15311 \d{1,5}_([A
-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_12031 \d{1,
5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10376.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-2-3.xml",
class_name="NistschemaSvIvListNormalizedStringPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_1_nistxml_sv_iv_list_normalized_string_pattern_2_4(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_15950 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15905 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_15311 \d{1,5}_([A
-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_12031 \d{1,
5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10376.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-2-4.xml",
class_name="NistschemaSvIvListNormalizedStringPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_1_nistxml_sv_iv_list_normalized_string_pattern_2_5(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_15950 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15905 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_15311 \d{1,5}_([A
-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_12031 \d{1,
5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10376.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-2-5.xml",
class_name="NistschemaSvIvListNormalizedStringPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_nistxml_sv_iv_list_normalized_string_pattern_1_1(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_13058 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_14172 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_13454 \d{1,5}_([A
-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_10133-1061
\d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_10981 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16632 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_19839.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-1-1.xml",
class_name="NistschemaSvIvListNormalizedStringPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_nistxml_sv_iv_list_normalized_string_pattern_1_2(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_13058 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_14172 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_13454 \d{1,5}_([A
-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_10133-1061
\d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_10981 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16632 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_19839.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-1-2.xml",
class_name="NistschemaSvIvListNormalizedStringPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_nistxml_sv_iv_list_normalized_string_pattern_1_3(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_13058 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_14172 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_13454 \d{1,5}_([A
-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_10133-1061
\d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_10981 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16632 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_19839.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-1-3.xml",
class_name="NistschemaSvIvListNormalizedStringPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_nistxml_sv_iv_list_normalized_string_pattern_1_4(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_13058 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_14172 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_13454 \d{1,5}_([A
-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_10133-1061
\d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_10981 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16632 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_19839.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-1-4.xml",
class_name="NistschemaSvIvListNormalizedStringPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_pattern_nistxml_sv_iv_list_normalized_string_pattern_1_5(mode, save_output, output_format):
r"""
Type list/normalizedString is restricted by facet pattern with value \
d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_13058 \d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_14172 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_13454 \d{1,5}_([A
-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_10133-1061
\d{1,5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_10981 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16632 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_19839.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-pattern-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-pattern-1-5.xml",
class_name="NistschemaSvIvListNormalizedStringPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_4_nistxml_sv_iv_list_normalized_string_length_5_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-5-1.xml",
class_name="NistschemaSvIvListNormalizedStringLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_4_nistxml_sv_iv_list_normalized_string_length_5_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-5-2.xml",
class_name="NistschemaSvIvListNormalizedStringLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_4_nistxml_sv_iv_list_normalized_string_length_5_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-5-3.xml",
class_name="NistschemaSvIvListNormalizedStringLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_4_nistxml_sv_iv_list_normalized_string_length_5_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-5-4.xml",
class_name="NistschemaSvIvListNormalizedStringLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_4_nistxml_sv_iv_list_normalized_string_length_5_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-5-5.xml",
class_name="NistschemaSvIvListNormalizedStringLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_3_nistxml_sv_iv_list_normalized_string_length_4_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-4-1.xml",
class_name="NistschemaSvIvListNormalizedStringLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_3_nistxml_sv_iv_list_normalized_string_length_4_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-4-2.xml",
class_name="NistschemaSvIvListNormalizedStringLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_3_nistxml_sv_iv_list_normalized_string_length_4_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-4-3.xml",
class_name="NistschemaSvIvListNormalizedStringLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_3_nistxml_sv_iv_list_normalized_string_length_4_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-4-4.xml",
class_name="NistschemaSvIvListNormalizedStringLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_3_nistxml_sv_iv_list_normalized_string_length_4_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-4-5.xml",
class_name="NistschemaSvIvListNormalizedStringLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_2_nistxml_sv_iv_list_normalized_string_length_3_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-3-1.xml",
class_name="NistschemaSvIvListNormalizedStringLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_2_nistxml_sv_iv_list_normalized_string_length_3_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-3-2.xml",
class_name="NistschemaSvIvListNormalizedStringLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_2_nistxml_sv_iv_list_normalized_string_length_3_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-3-3.xml",
class_name="NistschemaSvIvListNormalizedStringLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_2_nistxml_sv_iv_list_normalized_string_length_3_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-3-4.xml",
class_name="NistschemaSvIvListNormalizedStringLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_2_nistxml_sv_iv_list_normalized_string_length_3_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-3-5.xml",
class_name="NistschemaSvIvListNormalizedStringLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_1_nistxml_sv_iv_list_normalized_string_length_2_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-2-1.xml",
class_name="NistschemaSvIvListNormalizedStringLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_1_nistxml_sv_iv_list_normalized_string_length_2_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-2-2.xml",
class_name="NistschemaSvIvListNormalizedStringLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_1_nistxml_sv_iv_list_normalized_string_length_2_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-2-3.xml",
class_name="NistschemaSvIvListNormalizedStringLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_1_nistxml_sv_iv_list_normalized_string_length_2_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-2-4.xml",
class_name="NistschemaSvIvListNormalizedStringLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_1_nistxml_sv_iv_list_normalized_string_length_2_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-2-5.xml",
class_name="NistschemaSvIvListNormalizedStringLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_nistxml_sv_iv_list_normalized_string_length_1_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-1-1.xml",
class_name="NistschemaSvIvListNormalizedStringLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_nistxml_sv_iv_list_normalized_string_length_1_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-1-2.xml",
class_name="NistschemaSvIvListNormalizedStringLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_nistxml_sv_iv_list_normalized_string_length_1_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-1-3.xml",
class_name="NistschemaSvIvListNormalizedStringLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_nistxml_sv_iv_list_normalized_string_length_1_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-1-4.xml",
class_name="NistschemaSvIvListNormalizedStringLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_length_nistxml_sv_iv_list_normalized_string_length_1_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-length-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-length-1-5.xml",
class_name="NistschemaSvIvListNormalizedStringLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_4_nistxml_sv_iv_list_normalized_string_min_length_5_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-5-1.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_4_nistxml_sv_iv_list_normalized_string_min_length_5_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-5-2.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_4_nistxml_sv_iv_list_normalized_string_min_length_5_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-5-3.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_4_nistxml_sv_iv_list_normalized_string_min_length_5_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-5-4.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_4_nistxml_sv_iv_list_normalized_string_min_length_5_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-5-5.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_3_nistxml_sv_iv_list_normalized_string_min_length_4_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-4-1.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_3_nistxml_sv_iv_list_normalized_string_min_length_4_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-4-2.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_3_nistxml_sv_iv_list_normalized_string_min_length_4_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-4-3.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_3_nistxml_sv_iv_list_normalized_string_min_length_4_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-4-4.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_3_nistxml_sv_iv_list_normalized_string_min_length_4_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-4-5.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_2_nistxml_sv_iv_list_normalized_string_min_length_3_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-3-1.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_2_nistxml_sv_iv_list_normalized_string_min_length_3_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-3-2.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_2_nistxml_sv_iv_list_normalized_string_min_length_3_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-3-3.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_2_nistxml_sv_iv_list_normalized_string_min_length_3_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-3-4.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_2_nistxml_sv_iv_list_normalized_string_min_length_3_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-3-5.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_1_nistxml_sv_iv_list_normalized_string_min_length_2_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-2-1.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_1_nistxml_sv_iv_list_normalized_string_min_length_2_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-2-2.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_1_nistxml_sv_iv_list_normalized_string_min_length_2_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-2-3.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_1_nistxml_sv_iv_list_normalized_string_min_length_2_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-2-4.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_1_nistxml_sv_iv_list_normalized_string_min_length_2_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-2-5.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_nistxml_sv_iv_list_normalized_string_min_length_1_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-1-1.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_nistxml_sv_iv_list_normalized_string_min_length_1_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-1-2.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_nistxml_sv_iv_list_normalized_string_min_length_1_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-1-3.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_nistxml_sv_iv_list_normalized_string_min_length_1_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-1-4.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_min_length_nistxml_sv_iv_list_normalized_string_min_length_1_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet minLength with value
5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-minLength-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-minLength-1-5.xml",
class_name="NistschemaSvIvListNormalizedStringMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_4_nistxml_sv_iv_list_normalized_string_max_length_5_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-5-1.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_4_nistxml_sv_iv_list_normalized_string_max_length_5_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-5-2.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_4_nistxml_sv_iv_list_normalized_string_max_length_5_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-5-3.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_4_nistxml_sv_iv_list_normalized_string_max_length_5_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-5-4.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_4_nistxml_sv_iv_list_normalized_string_max_length_5_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
10.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-5.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-5-5.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_3_nistxml_sv_iv_list_normalized_string_max_length_4_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-4-1.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_3_nistxml_sv_iv_list_normalized_string_max_length_4_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-4-2.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_3_nistxml_sv_iv_list_normalized_string_max_length_4_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-4-3.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_3_nistxml_sv_iv_list_normalized_string_max_length_4_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-4-4.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_3_nistxml_sv_iv_list_normalized_string_max_length_4_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
8.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-4.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-4-5.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_2_nistxml_sv_iv_list_normalized_string_max_length_3_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-3-1.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_2_nistxml_sv_iv_list_normalized_string_max_length_3_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-3-2.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_2_nistxml_sv_iv_list_normalized_string_max_length_3_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-3-3.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_2_nistxml_sv_iv_list_normalized_string_max_length_3_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-3-4.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_2_nistxml_sv_iv_list_normalized_string_max_length_3_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
7.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-3.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-3-5.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_1_nistxml_sv_iv_list_normalized_string_max_length_2_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-2-1.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_1_nistxml_sv_iv_list_normalized_string_max_length_2_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-2-2.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_1_nistxml_sv_iv_list_normalized_string_max_length_2_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-2-3.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_1_nistxml_sv_iv_list_normalized_string_max_length_2_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-2-4.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_1_nistxml_sv_iv_list_normalized_string_max_length_2_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
6.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-2.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-2-5.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_nistxml_sv_iv_list_normalized_string_max_length_1_1(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-1-1.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_nistxml_sv_iv_list_normalized_string_max_length_1_2(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-1-2.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_nistxml_sv_iv_list_normalized_string_max_length_1_3(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-1-3.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_nistxml_sv_iv_list_normalized_string_max_length_1_4(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-1-4.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_normalized_string_max_length_nistxml_sv_iv_list_normalized_string_max_length_1_5(mode, save_output, output_format):
"""
Type list/normalizedString is restricted by facet maxLength with value
5.
"""
assert_bindings(
schema="nistData/list/normalizedString/Schema+Instance/NISTSchema-SV-IV-list-normalizedString-maxLength-1.xsd",
instance="nistData/list/normalizedString/Schema+Instance/NISTXML-SV-IV-list-normalizedString-maxLength-1-5.xml",
class_name="NistschemaSvIvListNormalizedStringMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_white_space_nistxml_sv_iv_list_string_white_space_1_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-whiteSpace-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-whiteSpace-1-1.xml",
class_name="NistschemaSvIvListStringWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_white_space_nistxml_sv_iv_list_string_white_space_1_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-whiteSpace-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-whiteSpace-1-2.xml",
class_name="NistschemaSvIvListStringWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_white_space_nistxml_sv_iv_list_string_white_space_1_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-whiteSpace-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-whiteSpace-1-3.xml",
class_name="NistschemaSvIvListStringWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_white_space_nistxml_sv_iv_list_string_white_space_1_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-whiteSpace-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-whiteSpace-1-4.xml",
class_name="NistschemaSvIvListStringWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_white_space_nistxml_sv_iv_list_string_white_space_1_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-whiteSpace-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-whiteSpace-1-5.xml",
class_name="NistschemaSvIvListStringWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_4_nistxml_sv_iv_list_string_enumeration_5_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-5-1.xml",
class_name="NistschemaSvIvListStringEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_4_nistxml_sv_iv_list_string_enumeration_5_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-5-2.xml",
class_name="NistschemaSvIvListStringEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_4_nistxml_sv_iv_list_string_enumeration_5_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-5-3.xml",
class_name="NistschemaSvIvListStringEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_4_nistxml_sv_iv_list_string_enumeration_5_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-5-4.xml",
class_name="NistschemaSvIvListStringEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_4_nistxml_sv_iv_list_string_enumeration_5_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-5-5.xml",
class_name="NistschemaSvIvListStringEnumeration5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_3_nistxml_sv_iv_list_string_enumeration_4_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-4-1.xml",
class_name="NistschemaSvIvListStringEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_3_nistxml_sv_iv_list_string_enumeration_4_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-4-2.xml",
class_name="NistschemaSvIvListStringEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_3_nistxml_sv_iv_list_string_enumeration_4_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-4-3.xml",
class_name="NistschemaSvIvListStringEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_3_nistxml_sv_iv_list_string_enumeration_4_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-4-4.xml",
class_name="NistschemaSvIvListStringEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_3_nistxml_sv_iv_list_string_enumeration_4_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-4-5.xml",
class_name="NistschemaSvIvListStringEnumeration4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_2_nistxml_sv_iv_list_string_enumeration_3_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-3-1.xml",
class_name="NistschemaSvIvListStringEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_2_nistxml_sv_iv_list_string_enumeration_3_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-3-2.xml",
class_name="NistschemaSvIvListStringEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_2_nistxml_sv_iv_list_string_enumeration_3_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-3-3.xml",
class_name="NistschemaSvIvListStringEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_2_nistxml_sv_iv_list_string_enumeration_3_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-3-4.xml",
class_name="NistschemaSvIvListStringEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_2_nistxml_sv_iv_list_string_enumeration_3_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-3-5.xml",
class_name="NistschemaSvIvListStringEnumeration3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_1_nistxml_sv_iv_list_string_enumeration_2_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-2-1.xml",
class_name="NistschemaSvIvListStringEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_1_nistxml_sv_iv_list_string_enumeration_2_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-2-2.xml",
class_name="NistschemaSvIvListStringEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_1_nistxml_sv_iv_list_string_enumeration_2_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-2-3.xml",
class_name="NistschemaSvIvListStringEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_1_nistxml_sv_iv_list_string_enumeration_2_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-2-4.xml",
class_name="NistschemaSvIvListStringEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_1_nistxml_sv_iv_list_string_enumeration_2_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-2-5.xml",
class_name="NistschemaSvIvListStringEnumeration2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_nistxml_sv_iv_list_string_enumeration_1_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-1-1.xml",
class_name="NistschemaSvIvListStringEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_nistxml_sv_iv_list_string_enumeration_1_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-1-2.xml",
class_name="NistschemaSvIvListStringEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_nistxml_sv_iv_list_string_enumeration_1_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-1-3.xml",
class_name="NistschemaSvIvListStringEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_nistxml_sv_iv_list_string_enumeration_1_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-1-4.xml",
class_name="NistschemaSvIvListStringEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_enumeration_nistxml_sv_iv_list_string_enumeration_1_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet enumeration.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-enumeration-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-enumeration-1-5.xml",
class_name="NistschemaSvIvListStringEnumeration1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_4_nistxml_sv_iv_list_string_pattern_5_1(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_17435-1843
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_16376 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_11348 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14973 \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_16518-1410
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_10254-1649 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_17642 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18742 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_17310-1594.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-5-1.xml",
class_name="NistschemaSvIvListStringPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_4_nistxml_sv_iv_list_string_pattern_5_2(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_17435-1843
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_16376 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_11348 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14973 \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_16518-1410
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_10254-1649 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_17642 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18742 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_17310-1594.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-5-2.xml",
class_name="NistschemaSvIvListStringPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_4_nistxml_sv_iv_list_string_pattern_5_3(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_17435-1843
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_16376 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_11348 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14973 \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_16518-1410
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_10254-1649 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_17642 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18742 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_17310-1594.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-5-3.xml",
class_name="NistschemaSvIvListStringPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_4_nistxml_sv_iv_list_string_pattern_5_4(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_17435-1843
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_16376 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_11348 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14973 \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_16518-1410
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_10254-1649 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_17642 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18742 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_17310-1594.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-5-4.xml",
class_name="NistschemaSvIvListStringPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_4_nistxml_sv_iv_list_string_pattern_5_5(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){1},_[A-Z]{2}_17435-1843
\d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_16376 \d{1,5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_11348 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14973 \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_16518-1410
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_10254-1649 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){1},_[A-Z]{2}_17642 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18742 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_17310-1594.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-5-5.xml",
class_name="NistschemaSvIvListStringPattern5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_3_nistxml_sv_iv_list_string_pattern_4_1(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15352 \d{1,
5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_18423-1985 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15520-1083 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18786-1596 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_12834-
1343.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-4-1.xml",
class_name="NistschemaSvIvListStringPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_3_nistxml_sv_iv_list_string_pattern_4_2(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15352 \d{1,
5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_18423-1985 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15520-1083 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18786-1596 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_12834-
1343.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-4-2.xml",
class_name="NistschemaSvIvListStringPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_3_nistxml_sv_iv_list_string_pattern_4_3(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15352 \d{1,
5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_18423-1985 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15520-1083 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18786-1596 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_12834-
1343.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-4-3.xml",
class_name="NistschemaSvIvListStringPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_3_nistxml_sv_iv_list_string_pattern_4_4(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15352 \d{1,
5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_18423-1985 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15520-1083 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18786-1596 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_12834-
1343.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-4-4.xml",
class_name="NistschemaSvIvListStringPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_3_nistxml_sv_iv_list_string_pattern_4_5(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15352 \d{1,
5}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_18423-1985 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15520-1083 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18786-1596 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_12834-
1343.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-4-5.xml",
class_name="NistschemaSvIvListStringPattern4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_2_nistxml_sv_iv_list_string_pattern_3_1(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11654-1789
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_19111-1980 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15774-1852 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18248-1891 \d{1,5
}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15314.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-3-1.xml",
class_name="NistschemaSvIvListStringPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_2_nistxml_sv_iv_list_string_pattern_3_2(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11654-1789
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_19111-1980 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15774-1852 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18248-1891 \d{1,5
}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15314.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-3-2.xml",
class_name="NistschemaSvIvListStringPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_2_nistxml_sv_iv_list_string_pattern_3_3(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11654-1789
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_19111-1980 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15774-1852 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18248-1891 \d{1,5
}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15314.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-3-3.xml",
class_name="NistschemaSvIvListStringPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_2_nistxml_sv_iv_list_string_pattern_3_4(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11654-1789
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_19111-1980 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15774-1852 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18248-1891 \d{1,5
}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15314.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-3-4.xml",
class_name="NistschemaSvIvListStringPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_2_nistxml_sv_iv_list_string_pattern_3_5(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11654-1789
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_19111-1980 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_15774-1852 \d{1,5}_([A-Z][a-
z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18248-1891 \d{1,5
}_([A-Z][a-z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_15314.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-3-5.xml",
class_name="NistschemaSvIvListStringPattern3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_1_nistxml_sv_iv_list_string_pattern_2_1(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11551-1386
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_15792-1475 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16933 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_10446 \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_13824 \d{1,
5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10173-1992 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_10148-1029.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-2-1.xml",
class_name="NistschemaSvIvListStringPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_1_nistxml_sv_iv_list_string_pattern_2_2(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11551-1386
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_15792-1475 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16933 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_10446 \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_13824 \d{1,
5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10173-1992 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_10148-1029.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-2-2.xml",
class_name="NistschemaSvIvListStringPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_1_nistxml_sv_iv_list_string_pattern_2_3(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11551-1386
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_15792-1475 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16933 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_10446 \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_13824 \d{1,
5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10173-1992 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_10148-1029.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-2-3.xml",
class_name="NistschemaSvIvListStringPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_1_nistxml_sv_iv_list_string_pattern_2_4(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11551-1386
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_15792-1475 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16933 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_10446 \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_13824 \d{1,
5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10173-1992 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_10148-1029.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-2-4.xml",
class_name="NistschemaSvIvListStringPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_1_nistxml_sv_iv_list_string_pattern_2_5(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_11551-1386
\d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-
Z]{2}_15792-1475 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_16933 \d{1,5}_([A-Z][a-
z]{1,20}_){5}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_10446 \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_13824 \d{1,
5}_([A-Z][a-z]{1,20}_){1}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_10173-1992 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_10148-1029.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-2-5.xml",
class_name="NistschemaSvIvListStringPattern2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_nistxml_sv_iv_list_string_pattern_1_1(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_19751 \d{1,
5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_11837-1623 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_14030 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13653-1327 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18424-
1338 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_19584-1412 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_11267 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_16578 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14818-1281.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-1-1.xml",
class_name="NistschemaSvIvListStringPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_nistxml_sv_iv_list_string_pattern_1_2(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_19751 \d{1,
5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_11837-1623 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_14030 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13653-1327 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18424-
1338 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_19584-1412 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_11267 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_16578 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14818-1281.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-1-2.xml",
class_name="NistschemaSvIvListStringPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_nistxml_sv_iv_list_string_pattern_1_3(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_19751 \d{1,
5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_11837-1623 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_14030 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13653-1327 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18424-
1338 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_19584-1412 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_11267 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_16578 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14818-1281.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-1-3.xml",
class_name="NistschemaSvIvListStringPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_nistxml_sv_iv_list_string_pattern_1_4(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_19751 \d{1,
5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_11837-1623 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_14030 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13653-1327 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18424-
1338 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_19584-1412 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_11267 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_16578 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14818-1281.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-1-4.xml",
class_name="NistschemaSvIvListStringPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_pattern_nistxml_sv_iv_list_string_pattern_1_5(mode, save_output, output_format):
r"""
Type list/string is restricted by facet pattern with value \d{1,5}_([A
-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_19751 \d{1,
5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){1},_[A-
Z]{2}_11837-1623 \d{1,5}_([A-Z][a-z]{1,20}_){2}Street_([A-Z][a-
z]{1,20}_){2},_[A-Z]{2}_14030 \d{1,5}_([A-Z][a-
z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_13653-1327 \d{1,5
}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_18424-
1338 \d{1,5}_([A-Z][a-z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-
Z]{2}_19584-1412 \d{1,5}_([A-Z][a-z]{1,20}_){3}Street_([A-Z][a-
z]{1,20}_){3},_[A-Z]{2}_11267 \d{1,5}_([A-Z][a-
z]{1,20}_){4}Street_([A-Z][a-z]{1,20}_){3},_[A-Z]{2}_16578 \d{1,5}_([A
-Z][a-z]{1,20}_){2}Street_([A-Z][a-z]{1,20}_){2},_[A-Z]{2}_14818-1281.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-pattern-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-pattern-1-5.xml",
class_name="NistschemaSvIvListStringPattern1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_4_nistxml_sv_iv_list_string_length_5_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-5-1.xml",
class_name="NistschemaSvIvListStringLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_4_nistxml_sv_iv_list_string_length_5_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-5-2.xml",
class_name="NistschemaSvIvListStringLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_4_nistxml_sv_iv_list_string_length_5_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-5-3.xml",
class_name="NistschemaSvIvListStringLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_4_nistxml_sv_iv_list_string_length_5_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-5-4.xml",
class_name="NistschemaSvIvListStringLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_4_nistxml_sv_iv_list_string_length_5_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-5-5.xml",
class_name="NistschemaSvIvListStringLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_3_nistxml_sv_iv_list_string_length_4_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-4-1.xml",
class_name="NistschemaSvIvListStringLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_3_nistxml_sv_iv_list_string_length_4_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-4-2.xml",
class_name="NistschemaSvIvListStringLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_3_nistxml_sv_iv_list_string_length_4_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-4-3.xml",
class_name="NistschemaSvIvListStringLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_3_nistxml_sv_iv_list_string_length_4_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-4-4.xml",
class_name="NistschemaSvIvListStringLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_3_nistxml_sv_iv_list_string_length_4_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-4-5.xml",
class_name="NistschemaSvIvListStringLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_2_nistxml_sv_iv_list_string_length_3_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-3-1.xml",
class_name="NistschemaSvIvListStringLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_2_nistxml_sv_iv_list_string_length_3_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-3-2.xml",
class_name="NistschemaSvIvListStringLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_2_nistxml_sv_iv_list_string_length_3_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-3-3.xml",
class_name="NistschemaSvIvListStringLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_2_nistxml_sv_iv_list_string_length_3_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-3-4.xml",
class_name="NistschemaSvIvListStringLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_2_nistxml_sv_iv_list_string_length_3_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-3-5.xml",
class_name="NistschemaSvIvListStringLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_1_nistxml_sv_iv_list_string_length_2_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-2-1.xml",
class_name="NistschemaSvIvListStringLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_1_nistxml_sv_iv_list_string_length_2_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-2-2.xml",
class_name="NistschemaSvIvListStringLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_1_nistxml_sv_iv_list_string_length_2_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-2-3.xml",
class_name="NistschemaSvIvListStringLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_1_nistxml_sv_iv_list_string_length_2_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-2-4.xml",
class_name="NistschemaSvIvListStringLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_1_nistxml_sv_iv_list_string_length_2_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-2-5.xml",
class_name="NistschemaSvIvListStringLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_nistxml_sv_iv_list_string_length_1_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-1-1.xml",
class_name="NistschemaSvIvListStringLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_nistxml_sv_iv_list_string_length_1_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-1-2.xml",
class_name="NistschemaSvIvListStringLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_nistxml_sv_iv_list_string_length_1_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-1-3.xml",
class_name="NistschemaSvIvListStringLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_nistxml_sv_iv_list_string_length_1_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-1-4.xml",
class_name="NistschemaSvIvListStringLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_length_nistxml_sv_iv_list_string_length_1_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet length with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-length-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-length-1-5.xml",
class_name="NistschemaSvIvListStringLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_4_nistxml_sv_iv_list_string_min_length_5_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-5-1.xml",
class_name="NistschemaSvIvListStringMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_4_nistxml_sv_iv_list_string_min_length_5_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-5-2.xml",
class_name="NistschemaSvIvListStringMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_4_nistxml_sv_iv_list_string_min_length_5_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-5-3.xml",
class_name="NistschemaSvIvListStringMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_4_nistxml_sv_iv_list_string_min_length_5_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-5-4.xml",
class_name="NistschemaSvIvListStringMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_4_nistxml_sv_iv_list_string_min_length_5_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-5-5.xml",
class_name="NistschemaSvIvListStringMinLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_3_nistxml_sv_iv_list_string_min_length_4_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-4-1.xml",
class_name="NistschemaSvIvListStringMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_3_nistxml_sv_iv_list_string_min_length_4_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-4-2.xml",
class_name="NistschemaSvIvListStringMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_3_nistxml_sv_iv_list_string_min_length_4_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-4-3.xml",
class_name="NistschemaSvIvListStringMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_3_nistxml_sv_iv_list_string_min_length_4_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-4-4.xml",
class_name="NistschemaSvIvListStringMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_3_nistxml_sv_iv_list_string_min_length_4_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-4-5.xml",
class_name="NistschemaSvIvListStringMinLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_2_nistxml_sv_iv_list_string_min_length_3_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-3-1.xml",
class_name="NistschemaSvIvListStringMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_2_nistxml_sv_iv_list_string_min_length_3_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-3-2.xml",
class_name="NistschemaSvIvListStringMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_2_nistxml_sv_iv_list_string_min_length_3_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-3-3.xml",
class_name="NistschemaSvIvListStringMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_2_nistxml_sv_iv_list_string_min_length_3_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-3-4.xml",
class_name="NistschemaSvIvListStringMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_2_nistxml_sv_iv_list_string_min_length_3_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-3-5.xml",
class_name="NistschemaSvIvListStringMinLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_1_nistxml_sv_iv_list_string_min_length_2_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-2-1.xml",
class_name="NistschemaSvIvListStringMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_1_nistxml_sv_iv_list_string_min_length_2_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-2-2.xml",
class_name="NistschemaSvIvListStringMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_1_nistxml_sv_iv_list_string_min_length_2_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-2-3.xml",
class_name="NistschemaSvIvListStringMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_1_nistxml_sv_iv_list_string_min_length_2_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-2-4.xml",
class_name="NistschemaSvIvListStringMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_1_nistxml_sv_iv_list_string_min_length_2_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-2-5.xml",
class_name="NistschemaSvIvListStringMinLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_nistxml_sv_iv_list_string_min_length_1_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-1-1.xml",
class_name="NistschemaSvIvListStringMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_nistxml_sv_iv_list_string_min_length_1_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-1-2.xml",
class_name="NistschemaSvIvListStringMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_nistxml_sv_iv_list_string_min_length_1_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-1-3.xml",
class_name="NistschemaSvIvListStringMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_nistxml_sv_iv_list_string_min_length_1_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-1-4.xml",
class_name="NistschemaSvIvListStringMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_min_length_nistxml_sv_iv_list_string_min_length_1_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet minLength with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-minLength-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-minLength-1-5.xml",
class_name="NistschemaSvIvListStringMinLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_4_nistxml_sv_iv_list_string_max_length_5_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-5-1.xml",
class_name="NistschemaSvIvListStringMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_4_nistxml_sv_iv_list_string_max_length_5_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-5-2.xml",
class_name="NistschemaSvIvListStringMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_4_nistxml_sv_iv_list_string_max_length_5_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-5-3.xml",
class_name="NistschemaSvIvListStringMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_4_nistxml_sv_iv_list_string_max_length_5_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-5-4.xml",
class_name="NistschemaSvIvListStringMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_4_nistxml_sv_iv_list_string_max_length_5_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 10.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-5.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-5-5.xml",
class_name="NistschemaSvIvListStringMaxLength5",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_3_nistxml_sv_iv_list_string_max_length_4_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-4-1.xml",
class_name="NistschemaSvIvListStringMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_3_nistxml_sv_iv_list_string_max_length_4_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-4-2.xml",
class_name="NistschemaSvIvListStringMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_3_nistxml_sv_iv_list_string_max_length_4_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-4-3.xml",
class_name="NistschemaSvIvListStringMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_3_nistxml_sv_iv_list_string_max_length_4_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-4-4.xml",
class_name="NistschemaSvIvListStringMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_3_nistxml_sv_iv_list_string_max_length_4_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 8.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-4.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-4-5.xml",
class_name="NistschemaSvIvListStringMaxLength4",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_2_nistxml_sv_iv_list_string_max_length_3_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-3-1.xml",
class_name="NistschemaSvIvListStringMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_2_nistxml_sv_iv_list_string_max_length_3_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-3-2.xml",
class_name="NistschemaSvIvListStringMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_2_nistxml_sv_iv_list_string_max_length_3_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-3-3.xml",
class_name="NistschemaSvIvListStringMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_2_nistxml_sv_iv_list_string_max_length_3_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-3-4.xml",
class_name="NistschemaSvIvListStringMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_2_nistxml_sv_iv_list_string_max_length_3_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 7.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-3.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-3-5.xml",
class_name="NistschemaSvIvListStringMaxLength3",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_1_nistxml_sv_iv_list_string_max_length_2_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-2-1.xml",
class_name="NistschemaSvIvListStringMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_1_nistxml_sv_iv_list_string_max_length_2_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-2-2.xml",
class_name="NistschemaSvIvListStringMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_1_nistxml_sv_iv_list_string_max_length_2_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-2-3.xml",
class_name="NistschemaSvIvListStringMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_1_nistxml_sv_iv_list_string_max_length_2_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-2-4.xml",
class_name="NistschemaSvIvListStringMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_1_nistxml_sv_iv_list_string_max_length_2_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 6.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-2.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-2-5.xml",
class_name="NistschemaSvIvListStringMaxLength2",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_nistxml_sv_iv_list_string_max_length_1_1(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-1-1.xml",
class_name="NistschemaSvIvListStringMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_nistxml_sv_iv_list_string_max_length_1_2(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-1-2.xml",
class_name="NistschemaSvIvListStringMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_nistxml_sv_iv_list_string_max_length_1_3(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-1-3.xml",
class_name="NistschemaSvIvListStringMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_nistxml_sv_iv_list_string_max_length_1_4(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-1-4.xml",
class_name="NistschemaSvIvListStringMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_string_max_length_nistxml_sv_iv_list_string_max_length_1_5(mode, save_output, output_format):
"""
Type list/string is restricted by facet maxLength with value 5.
"""
assert_bindings(
schema="nistData/list/string/Schema+Instance/NISTSchema-SV-IV-list-string-maxLength-1.xsd",
instance="nistData/list/string/Schema+Instance/NISTXML-SV-IV-list-string-maxLength-1-5.xml",
class_name="NistschemaSvIvListStringMaxLength1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_g_month_white_space_nistxml_sv_iv_list_g_month_white_space_1_1(mode, save_output, output_format):
"""
Type list/gMonth is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/gMonth/Schema+Instance/NISTSchema-SV-IV-list-gMonth-whiteSpace-1.xsd",
instance="nistData/list/gMonth/Schema+Instance/NISTXML-SV-IV-list-gMonth-whiteSpace-1-1.xml",
class_name="NistschemaSvIvListGMonthWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_g_month_white_space_nistxml_sv_iv_list_g_month_white_space_1_2(mode, save_output, output_format):
"""
Type list/gMonth is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/gMonth/Schema+Instance/NISTSchema-SV-IV-list-gMonth-whiteSpace-1.xsd",
instance="nistData/list/gMonth/Schema+Instance/NISTXML-SV-IV-list-gMonth-whiteSpace-1-2.xml",
class_name="NistschemaSvIvListGMonthWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_g_month_white_space_nistxml_sv_iv_list_g_month_white_space_1_3(mode, save_output, output_format):
"""
Type list/gMonth is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/gMonth/Schema+Instance/NISTSchema-SV-IV-list-gMonth-whiteSpace-1.xsd",
instance="nistData/list/gMonth/Schema+Instance/NISTXML-SV-IV-list-gMonth-whiteSpace-1-3.xml",
class_name="NistschemaSvIvListGMonthWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_g_month_white_space_nistxml_sv_iv_list_g_month_white_space_1_4(mode, save_output, output_format):
"""
Type list/gMonth is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/gMonth/Schema+Instance/NISTSchema-SV-IV-list-gMonth-whiteSpace-1.xsd",
instance="nistData/list/gMonth/Schema+Instance/NISTXML-SV-IV-list-gMonth-whiteSpace-1-4.xml",
class_name="NistschemaSvIvListGMonthWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_list_g_month_white_space_nistxml_sv_iv_list_g_month_white_space_1_5(mode, save_output, output_format):
"""
Type list/gMonth is restricted by facet whiteSpace with value
collapse.
"""
assert_bindings(
schema="nistData/list/gMonth/Schema+Instance/NISTSchema-SV-IV-list-gMonth-whiteSpace-1.xsd",
instance="nistData/list/gMonth/Schema+Instance/NISTXML-SV-IV-list-gMonth-whiteSpace-1-5.xml",
class_name="NistschemaSvIvListGMonthWhiteSpace1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
) | 0.49292 | 0.275045 |
import re
import warnings
from math import inf
from comath.segment import LineSegment
__LOGICAL_OPS = set(('$or', '$and', '$not', '$nor'))
__COMPAR_OPS = set(('$eq', '$gt', '$gte', '$lt', '$lte', '$ne', '$in', '$nin'))
def _contains_logical_op(matchop):
return len(matchop.keys() & __LOGICAL_OPS) > 0
def _val_in_inter(val, intersection):
if intersection:
return val in intersection
return True
def _build_op_kinds(compar_ops, compar_vals):
equ = []
gts = {}
lts = {}
nins = set()
ins = []
for op, val in zip(compar_ops, compar_vals):
if op == '$eq':
equ.append(val)
if op in ['$gt', '$gte']:
try:
gts[val].add(op)
except KeyError:
gts[val] = set([op])
if op in ['$lt', '$lte']:
try:
lts[val].add(op)
except KeyError:
lts[val] = set([op])
if op == '$ne':
nins.add(val)
if op == '$nin':
nins = nins.union(val)
if op == '$in':
ins.append(val)
return equ, gts, lts, nins, ins
def _resolve_compar_ops(compar_ops, compar_vals):
# we don't mess with nested stuff...
if any([isinstance(val, dict) for val in compar_vals]):
raise ValueError("Complex matchops! Doing a simple and!")
# we sort the operators into kinds...
equ, gts, lts, nins, ins = _build_op_kinds(compar_ops, compar_vals)
# resolving stuff with $eq in them is easy... it overrides everything.
if len(set(equ)) > 1:
warnings.warn("More than one $eq for the same field in Matchops joined"
" by &, with different values. "
"Resulting Matchop matches the empty set.")
raise ValueError("More than one $eq! Doing a simple and!")
res = {}
# now we generate the joined query using only implicit ands
if len(gts) > 0:
max_gt = max(gts.keys())
if len(gts[max_gt]) == 1:
gt_op = gts[max_gt].pop()
else:
gt_op = '$gt'
res[gt_op] = max_gt
else:
gt_op = '$gte'
max_gt = -inf
if len(lts) > 0:
min_lt = min(lts)
if len(lts[min_lt]) == 1:
lt_op = lts[min_lt].pop()
else:
lt_op = '$lt'
res[lt_op] = min_lt
else:
lt_op = '$lte'
max_gt = inf
segment = LineSegment(max_gt, max_gt, gt_op == '$gte', lt_op == '$lte')
if len(nins) > 0:
res['$nin'] = list(nins)
ins_intersection = None
if len(ins) > 0:
ins_intersection = set(ins[0])
for i in range(1, len(ins)):
ins_intersection = ins_intersection & ins[i]
res['$in'] = ins_intersection
if ins_intersection:
if len(ins_intersection.intersection(nins)) > 1:
warnings.warn(
"Matchop and operation resulted in a Matchop demanding")
ins_intersection = segment & ins_intersection
if len(set(equ)) == 1:
res['$eq'] = equ[0]
if equ[0] in segment and _val_in_inter(equ[0], ins_intersection):
return {'$eq': equ[0]}
warnings.warn(
"$eq value not in resulting range of Matchops joined by &. "
"Resulting Matchop matches the empty set.")
return res
def _optimized_and(first, second, intersection):
new_op = {}
non_compar_seen = set()
for key in intersection:
new_expr = {}
compar_ops = []
compar_vals = []
for matchop in [first, second]:
if isinstance(matchop[key], dict):
for subkey in matchop[key]:
if subkey in __COMPAR_OPS:
compar_ops.append(subkey)
compar_vals.append(matchop[key][subkey])
else:
if subkey in non_compar_seen:
raise ValueError(
"Non-comparison operators in intersection. "
"Performing a simple and.")
non_compar_seen.add(subkey)
new_expr[subkey] = matchop[key][subkey]
else:
compar_ops.append('$eq')
compar_vals.append(matchop[key])
resolved_comp = _resolve_compar_ops(compar_ops, compar_vals)
for subkey in resolved_comp:
new_expr[subkey] = resolved_comp[subkey]
new_op[key] = new_expr
for matchop in [first, second]:
for key in matchop.keys() - intersection:
new_op[key] = matchop[key]
return new_op
class Matchop(dict):
"""Defines a matching operator for mongodb operations."""
def __and__(self, other):
if not isinstance(other, dict):
raise TypeError("unsupported operand type(s) for +: '{}' and '{}'"
.format(self.__class__, type(other)))
if _contains_logical_op(self) or _contains_logical_op(other):
return Matchop({'$and': [self, other]})
intersection = self.keys() & other.keys()
if len(intersection) == 0:
return Matchop({**self, **other}) # flake8: noqa:
try:
return _optimized_and(self, other, intersection)
except ValueError:
return Matchop({'$and': [self, other]})
def __or__(self, other):
if isinstance(other, dict):
return Matchop({'$or': [self, other]})
else:
raise TypeError("unsupported operand type(s) for +: '{}' and '{}'"
.format(self.__class__, type(other)))
def all_matchop():
"""Return a Matchop that matches all documents."""
return Matchop({})
def regex_matchop(field_name, pattern_obj):
"""Returns a Matchop matching documents where the field with the given
name matches the regex in the given Pattern object."""
return Matchop({
field_name: {'$regex': pattern_obj}
})
def substring_matchop(field_name, substring, ignore_case=True):
"""Returns a Matchop matching documents where the field with the given
name contains the given string."""
if ignore_case:
pattern_obj = re.compile(substring, re.I)
else:
pattern_obj = re.compile(substring)
return regex_matchop(field_name, pattern_obj) | mongozen/matchop/_matchop.py |
import re
import warnings
from math import inf
from comath.segment import LineSegment
__LOGICAL_OPS = set(('$or', '$and', '$not', '$nor'))
__COMPAR_OPS = set(('$eq', '$gt', '$gte', '$lt', '$lte', '$ne', '$in', '$nin'))
def _contains_logical_op(matchop):
return len(matchop.keys() & __LOGICAL_OPS) > 0
def _val_in_inter(val, intersection):
if intersection:
return val in intersection
return True
def _build_op_kinds(compar_ops, compar_vals):
equ = []
gts = {}
lts = {}
nins = set()
ins = []
for op, val in zip(compar_ops, compar_vals):
if op == '$eq':
equ.append(val)
if op in ['$gt', '$gte']:
try:
gts[val].add(op)
except KeyError:
gts[val] = set([op])
if op in ['$lt', '$lte']:
try:
lts[val].add(op)
except KeyError:
lts[val] = set([op])
if op == '$ne':
nins.add(val)
if op == '$nin':
nins = nins.union(val)
if op == '$in':
ins.append(val)
return equ, gts, lts, nins, ins
def _resolve_compar_ops(compar_ops, compar_vals):
# we don't mess with nested stuff...
if any([isinstance(val, dict) for val in compar_vals]):
raise ValueError("Complex matchops! Doing a simple and!")
# we sort the operators into kinds...
equ, gts, lts, nins, ins = _build_op_kinds(compar_ops, compar_vals)
# resolving stuff with $eq in them is easy... it overrides everything.
if len(set(equ)) > 1:
warnings.warn("More than one $eq for the same field in Matchops joined"
" by &, with different values. "
"Resulting Matchop matches the empty set.")
raise ValueError("More than one $eq! Doing a simple and!")
res = {}
# now we generate the joined query using only implicit ands
if len(gts) > 0:
max_gt = max(gts.keys())
if len(gts[max_gt]) == 1:
gt_op = gts[max_gt].pop()
else:
gt_op = '$gt'
res[gt_op] = max_gt
else:
gt_op = '$gte'
max_gt = -inf
if len(lts) > 0:
min_lt = min(lts)
if len(lts[min_lt]) == 1:
lt_op = lts[min_lt].pop()
else:
lt_op = '$lt'
res[lt_op] = min_lt
else:
lt_op = '$lte'
max_gt = inf
segment = LineSegment(max_gt, max_gt, gt_op == '$gte', lt_op == '$lte')
if len(nins) > 0:
res['$nin'] = list(nins)
ins_intersection = None
if len(ins) > 0:
ins_intersection = set(ins[0])
for i in range(1, len(ins)):
ins_intersection = ins_intersection & ins[i]
res['$in'] = ins_intersection
if ins_intersection:
if len(ins_intersection.intersection(nins)) > 1:
warnings.warn(
"Matchop and operation resulted in a Matchop demanding")
ins_intersection = segment & ins_intersection
if len(set(equ)) == 1:
res['$eq'] = equ[0]
if equ[0] in segment and _val_in_inter(equ[0], ins_intersection):
return {'$eq': equ[0]}
warnings.warn(
"$eq value not in resulting range of Matchops joined by &. "
"Resulting Matchop matches the empty set.")
return res
def _optimized_and(first, second, intersection):
new_op = {}
non_compar_seen = set()
for key in intersection:
new_expr = {}
compar_ops = []
compar_vals = []
for matchop in [first, second]:
if isinstance(matchop[key], dict):
for subkey in matchop[key]:
if subkey in __COMPAR_OPS:
compar_ops.append(subkey)
compar_vals.append(matchop[key][subkey])
else:
if subkey in non_compar_seen:
raise ValueError(
"Non-comparison operators in intersection. "
"Performing a simple and.")
non_compar_seen.add(subkey)
new_expr[subkey] = matchop[key][subkey]
else:
compar_ops.append('$eq')
compar_vals.append(matchop[key])
resolved_comp = _resolve_compar_ops(compar_ops, compar_vals)
for subkey in resolved_comp:
new_expr[subkey] = resolved_comp[subkey]
new_op[key] = new_expr
for matchop in [first, second]:
for key in matchop.keys() - intersection:
new_op[key] = matchop[key]
return new_op
class Matchop(dict):
"""Defines a matching operator for mongodb operations."""
def __and__(self, other):
if not isinstance(other, dict):
raise TypeError("unsupported operand type(s) for +: '{}' and '{}'"
.format(self.__class__, type(other)))
if _contains_logical_op(self) or _contains_logical_op(other):
return Matchop({'$and': [self, other]})
intersection = self.keys() & other.keys()
if len(intersection) == 0:
return Matchop({**self, **other}) # flake8: noqa:
try:
return _optimized_and(self, other, intersection)
except ValueError:
return Matchop({'$and': [self, other]})
def __or__(self, other):
if isinstance(other, dict):
return Matchop({'$or': [self, other]})
else:
raise TypeError("unsupported operand type(s) for +: '{}' and '{}'"
.format(self.__class__, type(other)))
def all_matchop():
"""Return a Matchop that matches all documents."""
return Matchop({})
def regex_matchop(field_name, pattern_obj):
"""Returns a Matchop matching documents where the field with the given
name matches the regex in the given Pattern object."""
return Matchop({
field_name: {'$regex': pattern_obj}
})
def substring_matchop(field_name, substring, ignore_case=True):
"""Returns a Matchop matching documents where the field with the given
name contains the given string."""
if ignore_case:
pattern_obj = re.compile(substring, re.I)
else:
pattern_obj = re.compile(substring)
return regex_matchop(field_name, pattern_obj) | 0.521227 | 0.262931 |
import json
from django.contrib.gis.geos import GEOSGeometry
from stac_api.models import BBOX_CH
from stac_api.utils import fromisoformat
geometries = {
'switzerland': GEOSGeometry(BBOX_CH),
'switzerland-west':
GEOSGeometry(
'SRID=4326;POLYGON(('
'5.710217406117146 47.84846875331844,'
'7.940442015492146 47.84846875331844,'
'7.940442015492146 45.773562697134,'
'5.710217406117146 45.773562697134,'
'5.710217406117146 47.84846875331844))'
),
'switzerland-east':
GEOSGeometry(
'SRID=4326;POLYGON(('
'8.094250609242145 47.84846875331844,'
'10.708996702992145 47.84846875331844,'
'10.708996702992145 45.773562697134,'
'8.094250609242145 45.773562697134,'
'8.094250609242145 47.84846875331844))'
),
'switzerland-north':
GEOSGeometry(
'SRID=4326;POLYGON(('
'5.798108031117146 47.84846875331844,'
'10.708996702992145 47.84846875331844,'
'10.708996702992145 46.89614858846383,'
'5.798108031117146 46.89614858846383,'
'5.798108031117146 47.84846875331844))'
),
'switzerland-south':
GEOSGeometry(
'SRID=4326;POLYGON(('
'5.798108031117146 46.89614858846383,'
'10.708996702992145 46.89614858846383,'
'10.708996702992145 45.67385578908906,'
'5.798108031117146 45.67385578908906,'
'5.798108031117146 46.89614858846383))'
),
'paris':
GEOSGeometry(
'SRID=4326;POLYGON(('
'1.6892213123671462 49.086733408488925,'
'2.8317994373671462 49.086733408488925,'
'2.8317994373671462 48.52233957365349,'
'1.6892213123671462 48.52233957365349,'
'1.6892213123671462 49.086733408488925))'
),
'covers-switzerland':
GEOSGeometry(
'SRID=4326;POLYGON(('
'4.96 44.82,'
'11.49 44.82,'
'11.49 49.81,'
'4.96 49.81,'
'4.96 44.82))'
)
}
links = {
'link-1': {
'rel': 'describedBy',
'href': 'https://www.example.com/described-by',
'title': 'This is an extra item link',
'link_type': 'description'
}
}
links_invalid = {
'link-invalid': {
'title': 'invalid item link relation',
'rel': 'invalid relation',
'href': 'not a url',
}
}
items = {
'item-1': {
'name': 'item-1',
'geometry':
GEOSGeometry(
json.dumps({
"coordinates": [[
[5.644711, 46.775054],
[5.644711, 48.014995],
[6.602408, 48.014995],
[7.602408, 49.014995],
[5.644711, 46.775054],
]],
"type": "Polygon"
})
),
'properties_title': 'My item 1',
'properties_datetime': fromisoformat('2020-10-28T13:05:10Z'),
'links': links.values()
},
'item-2': {
'name': 'item-2',
'geometry':
GEOSGeometry(
json.dumps({
"coordinates": [[
[5.644711, 46.775054],
[5.644711, 48.014995],
[6.602408, 48.014995],
[7.602408, 49.014995],
[5.644711, 46.775054],
]],
"type": "Polygon"
})
),
'properties_title': 'My item 2',
'properties_start_datetime': fromisoformat('2020-10-28T13:05:10Z'),
'properties_end_datetime': fromisoformat('2020-10-28T14:05:10Z')
},
'item-invalid': {
'name': 'item invalid name',
'geometry': {
"coordinates": [[
[10000000, 46.775054],
[5.644711, 48.014995],
[6.602408, 48.014995],
[7.602408, 444444444],
[5.644711, 46.775054],
]],
"type": "Polygon"
},
'properties_title': [23, 56],
'properties_start_datetime': 'not a datetime',
},
'item-invalid-link': {
'name': 'item-invalid-link',
'geometry': {
"coordinates": [[
[5.644711, 46.775054],
[5.644711, 48.014995],
[6.602408, 48.014995],
[7.602408, 49.014995],
[5.644711, 46.775054],
]],
"type": "Polygon"
},
'properties': {
'datetime': fromisoformat('2020-10-28T13:05:10Z')
},
'links': links_invalid.values()
},
'item-switzerland': {
'name': 'item-switzerland',
'geometry': geometries['switzerland'],
'properties_datetime': fromisoformat('2020-10-28T13:05:10Z')
},
'item-switzerland-west': {
'name': 'item-switzerland-west',
'geometry': geometries['switzerland-west'],
'properties_datetime': fromisoformat('2020-10-28T13:05:10Z')
},
'item-switzerland-east': {
'name': 'item-switzerland-east',
'geometry': geometries['switzerland-east'],
'properties_datetime': fromisoformat('2020-10-28T13:05:10Z')
},
'item-switzerland-north': {
'name': 'item-switzerland-north',
'geometry': geometries['switzerland-north'],
'properties_datetime': fromisoformat('2020-10-28T13:05:10Z')
},
'item-switzerland-south': {
'name': 'item-switzerland-south',
'geometry': geometries['switzerland-south'],
'properties_datetime': fromisoformat('2020-10-28T13:05:10Z')
},
'item-paris': {
'name': 'item-paris',
'geometry': geometries['paris'],
'properties_datetime': fromisoformat('2020-10-28T13:05:10Z')
},
'item-covers-switzerland': {
'name': 'item-covers_switzerland',
'geometry': geometries['covers-switzerland'],
'properties_datetime': fromisoformat('2020-10-28T13:05:10Z')
}
} | app/tests/sample_data/item_samples.py | import json
from django.contrib.gis.geos import GEOSGeometry
from stac_api.models import BBOX_CH
from stac_api.utils import fromisoformat
geometries = {
'switzerland': GEOSGeometry(BBOX_CH),
'switzerland-west':
GEOSGeometry(
'SRID=4326;POLYGON(('
'5.710217406117146 47.84846875331844,'
'7.940442015492146 47.84846875331844,'
'7.940442015492146 45.773562697134,'
'5.710217406117146 45.773562697134,'
'5.710217406117146 47.84846875331844))'
),
'switzerland-east':
GEOSGeometry(
'SRID=4326;POLYGON(('
'8.094250609242145 47.84846875331844,'
'10.708996702992145 47.84846875331844,'
'10.708996702992145 45.773562697134,'
'8.094250609242145 45.773562697134,'
'8.094250609242145 47.84846875331844))'
),
'switzerland-north':
GEOSGeometry(
'SRID=4326;POLYGON(('
'5.798108031117146 47.84846875331844,'
'10.708996702992145 47.84846875331844,'
'10.708996702992145 46.89614858846383,'
'5.798108031117146 46.89614858846383,'
'5.798108031117146 47.84846875331844))'
),
'switzerland-south':
GEOSGeometry(
'SRID=4326;POLYGON(('
'5.798108031117146 46.89614858846383,'
'10.708996702992145 46.89614858846383,'
'10.708996702992145 45.67385578908906,'
'5.798108031117146 45.67385578908906,'
'5.798108031117146 46.89614858846383))'
),
'paris':
GEOSGeometry(
'SRID=4326;POLYGON(('
'1.6892213123671462 49.086733408488925,'
'2.8317994373671462 49.086733408488925,'
'2.8317994373671462 48.52233957365349,'
'1.6892213123671462 48.52233957365349,'
'1.6892213123671462 49.086733408488925))'
),
'covers-switzerland':
GEOSGeometry(
'SRID=4326;POLYGON(('
'4.96 44.82,'
'11.49 44.82,'
'11.49 49.81,'
'4.96 49.81,'
'4.96 44.82))'
)
}
links = {
'link-1': {
'rel': 'describedBy',
'href': 'https://www.example.com/described-by',
'title': 'This is an extra item link',
'link_type': 'description'
}
}
links_invalid = {
'link-invalid': {
'title': 'invalid item link relation',
'rel': 'invalid relation',
'href': 'not a url',
}
}
items = {
'item-1': {
'name': 'item-1',
'geometry':
GEOSGeometry(
json.dumps({
"coordinates": [[
[5.644711, 46.775054],
[5.644711, 48.014995],
[6.602408, 48.014995],
[7.602408, 49.014995],
[5.644711, 46.775054],
]],
"type": "Polygon"
})
),
'properties_title': 'My item 1',
'properties_datetime': fromisoformat('2020-10-28T13:05:10Z'),
'links': links.values()
},
'item-2': {
'name': 'item-2',
'geometry':
GEOSGeometry(
json.dumps({
"coordinates": [[
[5.644711, 46.775054],
[5.644711, 48.014995],
[6.602408, 48.014995],
[7.602408, 49.014995],
[5.644711, 46.775054],
]],
"type": "Polygon"
})
),
'properties_title': 'My item 2',
'properties_start_datetime': fromisoformat('2020-10-28T13:05:10Z'),
'properties_end_datetime': fromisoformat('2020-10-28T14:05:10Z')
},
'item-invalid': {
'name': 'item invalid name',
'geometry': {
"coordinates": [[
[10000000, 46.775054],
[5.644711, 48.014995],
[6.602408, 48.014995],
[7.602408, 444444444],
[5.644711, 46.775054],
]],
"type": "Polygon"
},
'properties_title': [23, 56],
'properties_start_datetime': 'not a datetime',
},
'item-invalid-link': {
'name': 'item-invalid-link',
'geometry': {
"coordinates": [[
[5.644711, 46.775054],
[5.644711, 48.014995],
[6.602408, 48.014995],
[7.602408, 49.014995],
[5.644711, 46.775054],
]],
"type": "Polygon"
},
'properties': {
'datetime': fromisoformat('2020-10-28T13:05:10Z')
},
'links': links_invalid.values()
},
'item-switzerland': {
'name': 'item-switzerland',
'geometry': geometries['switzerland'],
'properties_datetime': fromisoformat('2020-10-28T13:05:10Z')
},
'item-switzerland-west': {
'name': 'item-switzerland-west',
'geometry': geometries['switzerland-west'],
'properties_datetime': fromisoformat('2020-10-28T13:05:10Z')
},
'item-switzerland-east': {
'name': 'item-switzerland-east',
'geometry': geometries['switzerland-east'],
'properties_datetime': fromisoformat('2020-10-28T13:05:10Z')
},
'item-switzerland-north': {
'name': 'item-switzerland-north',
'geometry': geometries['switzerland-north'],
'properties_datetime': fromisoformat('2020-10-28T13:05:10Z')
},
'item-switzerland-south': {
'name': 'item-switzerland-south',
'geometry': geometries['switzerland-south'],
'properties_datetime': fromisoformat('2020-10-28T13:05:10Z')
},
'item-paris': {
'name': 'item-paris',
'geometry': geometries['paris'],
'properties_datetime': fromisoformat('2020-10-28T13:05:10Z')
},
'item-covers-switzerland': {
'name': 'item-covers_switzerland',
'geometry': geometries['covers-switzerland'],
'properties_datetime': fromisoformat('2020-10-28T13:05:10Z')
}
} | 0.4206 | 0.153676 |
import os
import geoip2.database
from django.conf import settings
class Geoip2(object):
def __init__(self):
city_mmdb_dir = os.path.join(settings.BASE_DIR, 'STATICFILES', 'STATIC', 'GeoLite2-City.mmdb')
self.city_reader = geoip2.database.Reader(city_mmdb_dir)
asn_mmdb_dir = os.path.join(settings.BASE_DIR, 'STATICFILES', 'STATIC', 'GeoLite2-ASN.mmdb')
self.asn_reader = geoip2.database.Reader(asn_mmdb_dir)
country_mmdb_dir = os.path.join(settings.BASE_DIR, 'STATICFILES', 'STATIC', 'GeoLite2-Country.mmdb')
self.country_reader = geoip2.database.Reader(country_mmdb_dir)
def get_geo(self, ip, lang="zh-CN"):
try:
response = self.country_reader.country(ip)
except Exception as E:
if lang == "zh-CN":
return ["内网IP", "", "", "本地"]
else:
return ["Intranet", "", "", "Local"]
try:
country = response.country.names.get(lang)
if country is None:
raise KeyError
except Exception as E:
try:
country = response.country.names.get("en")
if country is None:
country = ""
except Exception as E:
country = ""
try:
city = self.city_reader.city(ip).city.names.get(lang)
if city is None:
raise KeyError
except Exception as E:
try:
city = self.city_reader.city(ip).city.names.get("en")
if city is None:
city = ""
except Exception as E:
city = ""
try:
province = self.city_reader.city(ip).subdivisions.most_specific.names.get(lang)
if province is None:
raise KeyError
except Exception as E:
try:
province = self.city_reader.city(ip).subdivisions.most_specific.names.get("en")
if province is None:
province = ""
except Exception as E:
province = ""
try:
isp = self.asn_reader.asn(ip).autonomous_system_organization
if isp is None:
isp = ""
except Exception as E:
isp = ""
return [country, province, city, isp]
geoip2_instance = Geoip2() | Lib/External/geoip2.py | import os
import geoip2.database
from django.conf import settings
class Geoip2(object):
def __init__(self):
city_mmdb_dir = os.path.join(settings.BASE_DIR, 'STATICFILES', 'STATIC', 'GeoLite2-City.mmdb')
self.city_reader = geoip2.database.Reader(city_mmdb_dir)
asn_mmdb_dir = os.path.join(settings.BASE_DIR, 'STATICFILES', 'STATIC', 'GeoLite2-ASN.mmdb')
self.asn_reader = geoip2.database.Reader(asn_mmdb_dir)
country_mmdb_dir = os.path.join(settings.BASE_DIR, 'STATICFILES', 'STATIC', 'GeoLite2-Country.mmdb')
self.country_reader = geoip2.database.Reader(country_mmdb_dir)
def get_geo(self, ip, lang="zh-CN"):
try:
response = self.country_reader.country(ip)
except Exception as E:
if lang == "zh-CN":
return ["内网IP", "", "", "本地"]
else:
return ["Intranet", "", "", "Local"]
try:
country = response.country.names.get(lang)
if country is None:
raise KeyError
except Exception as E:
try:
country = response.country.names.get("en")
if country is None:
country = ""
except Exception as E:
country = ""
try:
city = self.city_reader.city(ip).city.names.get(lang)
if city is None:
raise KeyError
except Exception as E:
try:
city = self.city_reader.city(ip).city.names.get("en")
if city is None:
city = ""
except Exception as E:
city = ""
try:
province = self.city_reader.city(ip).subdivisions.most_specific.names.get(lang)
if province is None:
raise KeyError
except Exception as E:
try:
province = self.city_reader.city(ip).subdivisions.most_specific.names.get("en")
if province is None:
province = ""
except Exception as E:
province = ""
try:
isp = self.asn_reader.asn(ip).autonomous_system_organization
if isp is None:
isp = ""
except Exception as E:
isp = ""
return [country, province, city, isp]
geoip2_instance = Geoip2() | 0.243463 | 0.068819 |
import logging
import os
import unittest
from time import sleep
import redis
from redis.sentinel import Sentinel
from open_redis.deployment import RedisDeployment, RedisSentinel
file_dir = os.path.realpath(__file__).rsplit('/', 1)[0] + "/"
class TestRedisDeploy(unittest.TestCase):
def setUp(self):
for server in RedisDeployment.list_running_instances():
server.stop()
for server in RedisSentinel.list_running_instances():
server.stop()
sleep(1) # TODO: make stop() blocking
def test_start_stop(self):
server = RedisDeployment('~/redis-test-client')
server.start()
sleep(1) # TODO: make start() blocking
server.stop()
self.assertTrue(len(RedisDeployment.list_running_instances()) == 0)
def test_start_stop_daemon(self):
# This test also checks configs works
deployment = RedisDeployment('~/redis-test-daemon', conf=file_dir + 'include-configs')
deployment.start()
deployment.stop()
sleep(1)
self.assertTrue(len(RedisDeployment.list_running_instances()) == 0)
def test_client_connects(self):
server = RedisDeployment('~/redis-test-client', port=7653)
server.start()
sleep(2)
r = redis.StrictRedis(host='localhost', port=7653, db=0)
self.assertTrue(r.set('test', 'me'))
self.assertTrue(str(r.get('test').decode('utf-8')) == 'me')
server.stop()
def test_simple_sentinel(self):
# Setup Master & Slave
master = RedisDeployment('~/redis-master', port=3428)
salve = RedisDeployment('~/redis-slave', port=3429)
master.start()
salve.start(master_ip='127.0.0.1', master_port=3428)
# Setup Sentinel
redis_sentinel = RedisSentinel('~/redis-sentinel')
redis_sentinel.start(master_ip='127.0.0.1',master_port=3428, master_name='mymaster')
sleep(3)
## len(RedisSentinel.list_running_instances()) == 1
## len(RedisDeployment.list_running_instances()) == 2
# Client API
sentinel = Sentinel([('localhost', redis_sentinel.port)], socket_timeout=0.1)
master_client = sentinel.master_for('mymaster')
slave_client = sentinel.slave_for('mymaster')
master_client.set('foo', 'bar')
slave_client.get('foo') # bar
self.assertTrue(len(RedisSentinel.list_running_instances()) == 1)
self.assertTrue(len(RedisDeployment.list_running_instances()) == 2)
self.assertTrue(str(slave_client.get('foo').decode('utf-8')) == 'bar')
# Close down the servers
master.stop()
salve.stop()
redis_sentinel.stop()
def test_travis_runs(self):
# derpy derpy town.
self.assertTrue(True)
if __name__ == '__main__':
unittest.main() | tests/basic_usage.py | import logging
import os
import unittest
from time import sleep
import redis
from redis.sentinel import Sentinel
from open_redis.deployment import RedisDeployment, RedisSentinel
file_dir = os.path.realpath(__file__).rsplit('/', 1)[0] + "/"
class TestRedisDeploy(unittest.TestCase):
def setUp(self):
for server in RedisDeployment.list_running_instances():
server.stop()
for server in RedisSentinel.list_running_instances():
server.stop()
sleep(1) # TODO: make stop() blocking
def test_start_stop(self):
server = RedisDeployment('~/redis-test-client')
server.start()
sleep(1) # TODO: make start() blocking
server.stop()
self.assertTrue(len(RedisDeployment.list_running_instances()) == 0)
def test_start_stop_daemon(self):
# This test also checks configs works
deployment = RedisDeployment('~/redis-test-daemon', conf=file_dir + 'include-configs')
deployment.start()
deployment.stop()
sleep(1)
self.assertTrue(len(RedisDeployment.list_running_instances()) == 0)
def test_client_connects(self):
server = RedisDeployment('~/redis-test-client', port=7653)
server.start()
sleep(2)
r = redis.StrictRedis(host='localhost', port=7653, db=0)
self.assertTrue(r.set('test', 'me'))
self.assertTrue(str(r.get('test').decode('utf-8')) == 'me')
server.stop()
def test_simple_sentinel(self):
# Setup Master & Slave
master = RedisDeployment('~/redis-master', port=3428)
salve = RedisDeployment('~/redis-slave', port=3429)
master.start()
salve.start(master_ip='127.0.0.1', master_port=3428)
# Setup Sentinel
redis_sentinel = RedisSentinel('~/redis-sentinel')
redis_sentinel.start(master_ip='127.0.0.1',master_port=3428, master_name='mymaster')
sleep(3)
## len(RedisSentinel.list_running_instances()) == 1
## len(RedisDeployment.list_running_instances()) == 2
# Client API
sentinel = Sentinel([('localhost', redis_sentinel.port)], socket_timeout=0.1)
master_client = sentinel.master_for('mymaster')
slave_client = sentinel.slave_for('mymaster')
master_client.set('foo', 'bar')
slave_client.get('foo') # bar
self.assertTrue(len(RedisSentinel.list_running_instances()) == 1)
self.assertTrue(len(RedisDeployment.list_running_instances()) == 2)
self.assertTrue(str(slave_client.get('foo').decode('utf-8')) == 'bar')
# Close down the servers
master.stop()
salve.stop()
redis_sentinel.stop()
def test_travis_runs(self):
# derpy derpy town.
self.assertTrue(True)
if __name__ == '__main__':
unittest.main() | 0.166879 | 0.344361 |
from typing import Callable, Optional, Tuple
import cv2 as cv
import numpy as np
def resize(
image: np.array,
shape: Optional[Tuple[int, int]] = None,
min_dim: Optional[int] = None,
**kwargs,
) -> np.array:
"""
Resize input image
`shape` or `min_dim` needs to be specified with `partial` before
this function can be used in a Wildebeest pipeline.
`kwargs` is included only for compatibility with the
`CustomReportingPipeline` class.
Parameters
----------
image
NumPy array with two spatial dimensions and optionally an
additional channel dimension
shape
Desired output shape in pixels in the form (height, width)
min_dim
Desired minimum spatial dimension in pixels; image will be
resized so that it has this length along its smaller spatial
dimension while preseving aspect ratio as closely as possible.
Exactly one of `shape` and `min_dim` must be `None`.
"""
_validate_resize_inputs(shape, min_dim)
if min_dim is not None:
shape = _find_min_dim_shape(image, min_dim)
return cv.resize(image, dsize=shape[::-1])
def _validate_resize_inputs(shape, min_dim) -> None:
if (shape is None) + (min_dim is None) != 1:
raise ValueError('Exactly one of `shape` and `min_dim` must be None')
def centercrop(image: np.array, reduction_factor: float, **kwargs) -> np.array:
"""
Crop the center out of an image
`kwargs` is included only for compatibility with the
`CustomReportingPipeline` class.
Parameters
----------
image
Numpy array of an image. Function will handle 2D greyscale
images, RGB, and RGBA image arrays
reduction_factor
scale of center cropped box, 1.0 would be the full image
value of .4 means a box of .4*width and .4*height
"""
height, width, *channels = image.shape
w_scale = width * reduction_factor
h_scale = height * reduction_factor
left = int((width - w_scale) // 2)
top = int((height - h_scale) // 2)
right = int((width + w_scale) // 2)
bottom = int((height + h_scale) // 2)
return image[top:bottom, left:right]
def trim_padding(
image: np.array, comparison_op: Callable, thresh: int, **kwargs
) -> np.array:
"""
Remove padding from an image
Remove rows and columns on the edges of the input image where the
brightness on a scale of 0 to 1 satisfies `comparison_op` with
respect to `thresh`. Brightness is evaluated by converting to
grayscale and normalizing if necessary. For instance, using
`thresh=.95` and `comparison_op=operator.gt` will result in removing
near-white padding, while using using `thresh=.05` and
`comparison_op=operator.lt` will remove near-black padding.
`kwargs` is included only for compatibility with the
`CustomReportingPipeline` class.
Assumes:
Image is grayscale, RGB, or RGBA.
Pixel values are scaled between either 0 and 1 or 0 and 255. If
image is scaled between 0 and 255, then some pixel has a value
greater than 1.
Parameters
----------
image
Numpy array of an image.
comparison_op
How to compare pixel values to `thresh`
thresh
Value to compare pixel values against
"""
im_gray = convert_to_grayscale(image)
im_gray = normalize_pixel_values(im_gray)
keep = ~comparison_op(im_gray, thresh)
x, y, w, h = cv.boundingRect(cv.findNonZero(keep.astype(int)))
return image[y : y + h, x : x + w]
def normalize_pixel_values(image: np.array) -> np.array:
"""
Normalize image so that pixel values are between 0 and 1
Assumes pixel values are scaled between either 0 and 1 or 0 and 255.
"""
if image.max() > 1:
return image / 255
else:
return image
def convert_to_grayscale(image: np.array) -> np.array:
"""
Convert image to grayscale.
Assumes image is grayscale, RGB, or RGBA.
"""
grayscale = image.ndim == 2
if grayscale:
im_gray = image
else:
rgba = image.shape[2] == 4
if rgba:
im_gray = cv.cvtColor(image, cv.COLOR_RGBA2GRAY)
else:
im_gray = cv.cvtColor(image, cv.COLOR_RGB2GRAY)
return im_gray
def _find_min_dim_shape(image, min_dim):
in_height, in_width = image.shape[:2]
aspect_ratio = in_width / in_height
format = 'tall' if aspect_ratio < 1 else 'wide'
if format == 'tall':
out_width = min_dim
out_height = round(out_width / aspect_ratio, 1)
else:
out_height = min_dim
out_width = round(out_height * aspect_ratio, 1)
return (int(out_height), int(out_width))
def flip_horiz(image: np.array) -> np.array:
"""Flip an image horizontally"""
return cv.flip(image, flipCode=1)
def flip_vert(image: np.array) -> np.array:
"""Flip an image vertically"""
return cv.flip(image, flipCode=0)
def rotate_90(image: np.array) -> np.array:
"""
Rotate an image 90 degrees counterclockwise
This function takes an image as numpy array and
and outputs the image rotated 90 degrees counterclockwise.
Assumes that the image is going to be rotated around center, and size of image
will remain unchanged.
This function takes numpy array of an image. Function will handle 2D greyscale
images, RGB, and RGBA image arrays.
"""
return cv.rotate(image, cv.ROTATE_90_COUNTERCLOCKWISE)
def rotate_180(image: np.array) -> np.array:
"""
Rotate an image 180 degrees
This function takes an image as numpy array and
and outputs the image rotated 180 degrees.
Assumes that the image is going to be rotated around center, and size of image
will remain unchanged.
This function takes numpy array of an image. Function will handle 2D greyscale
images, RGB, and RGBA image arrays.
"""
return cv.rotate(image, cv.ROTATE_180)
def rotate_270(image: np.array) -> np.array:
"""
Rotate an image 270 degrees counterclockwise
This function takes an image as numpy array and
and outputs the image rotated 270 degrees counterclockwise.
Assumes that the image is going to be rotated around center, and size of image
will remain unchanged.
This function takes numpy array of an image. Function will handle 2D greyscale
images, RGB, and RGBA image arrays.
"""
return cv.rotate(image, cv.ROTATE_90_CLOCKWISE) | wildebeest/ops/image/transforms.py | from typing import Callable, Optional, Tuple
import cv2 as cv
import numpy as np
def resize(
image: np.array,
shape: Optional[Tuple[int, int]] = None,
min_dim: Optional[int] = None,
**kwargs,
) -> np.array:
"""
Resize input image
`shape` or `min_dim` needs to be specified with `partial` before
this function can be used in a Wildebeest pipeline.
`kwargs` is included only for compatibility with the
`CustomReportingPipeline` class.
Parameters
----------
image
NumPy array with two spatial dimensions and optionally an
additional channel dimension
shape
Desired output shape in pixels in the form (height, width)
min_dim
Desired minimum spatial dimension in pixels; image will be
resized so that it has this length along its smaller spatial
dimension while preseving aspect ratio as closely as possible.
Exactly one of `shape` and `min_dim` must be `None`.
"""
_validate_resize_inputs(shape, min_dim)
if min_dim is not None:
shape = _find_min_dim_shape(image, min_dim)
return cv.resize(image, dsize=shape[::-1])
def _validate_resize_inputs(shape, min_dim) -> None:
if (shape is None) + (min_dim is None) != 1:
raise ValueError('Exactly one of `shape` and `min_dim` must be None')
def centercrop(image: np.array, reduction_factor: float, **kwargs) -> np.array:
"""
Crop the center out of an image
`kwargs` is included only for compatibility with the
`CustomReportingPipeline` class.
Parameters
----------
image
Numpy array of an image. Function will handle 2D greyscale
images, RGB, and RGBA image arrays
reduction_factor
scale of center cropped box, 1.0 would be the full image
value of .4 means a box of .4*width and .4*height
"""
height, width, *channels = image.shape
w_scale = width * reduction_factor
h_scale = height * reduction_factor
left = int((width - w_scale) // 2)
top = int((height - h_scale) // 2)
right = int((width + w_scale) // 2)
bottom = int((height + h_scale) // 2)
return image[top:bottom, left:right]
def trim_padding(
image: np.array, comparison_op: Callable, thresh: int, **kwargs
) -> np.array:
"""
Remove padding from an image
Remove rows and columns on the edges of the input image where the
brightness on a scale of 0 to 1 satisfies `comparison_op` with
respect to `thresh`. Brightness is evaluated by converting to
grayscale and normalizing if necessary. For instance, using
`thresh=.95` and `comparison_op=operator.gt` will result in removing
near-white padding, while using using `thresh=.05` and
`comparison_op=operator.lt` will remove near-black padding.
`kwargs` is included only for compatibility with the
`CustomReportingPipeline` class.
Assumes:
Image is grayscale, RGB, or RGBA.
Pixel values are scaled between either 0 and 1 or 0 and 255. If
image is scaled between 0 and 255, then some pixel has a value
greater than 1.
Parameters
----------
image
Numpy array of an image.
comparison_op
How to compare pixel values to `thresh`
thresh
Value to compare pixel values against
"""
im_gray = convert_to_grayscale(image)
im_gray = normalize_pixel_values(im_gray)
keep = ~comparison_op(im_gray, thresh)
x, y, w, h = cv.boundingRect(cv.findNonZero(keep.astype(int)))
return image[y : y + h, x : x + w]
def normalize_pixel_values(image: np.array) -> np.array:
"""
Normalize image so that pixel values are between 0 and 1
Assumes pixel values are scaled between either 0 and 1 or 0 and 255.
"""
if image.max() > 1:
return image / 255
else:
return image
def convert_to_grayscale(image: np.array) -> np.array:
"""
Convert image to grayscale.
Assumes image is grayscale, RGB, or RGBA.
"""
grayscale = image.ndim == 2
if grayscale:
im_gray = image
else:
rgba = image.shape[2] == 4
if rgba:
im_gray = cv.cvtColor(image, cv.COLOR_RGBA2GRAY)
else:
im_gray = cv.cvtColor(image, cv.COLOR_RGB2GRAY)
return im_gray
def _find_min_dim_shape(image, min_dim):
in_height, in_width = image.shape[:2]
aspect_ratio = in_width / in_height
format = 'tall' if aspect_ratio < 1 else 'wide'
if format == 'tall':
out_width = min_dim
out_height = round(out_width / aspect_ratio, 1)
else:
out_height = min_dim
out_width = round(out_height * aspect_ratio, 1)
return (int(out_height), int(out_width))
def flip_horiz(image: np.array) -> np.array:
"""Flip an image horizontally"""
return cv.flip(image, flipCode=1)
def flip_vert(image: np.array) -> np.array:
"""Flip an image vertically"""
return cv.flip(image, flipCode=0)
def rotate_90(image: np.array) -> np.array:
"""
Rotate an image 90 degrees counterclockwise
This function takes an image as numpy array and
and outputs the image rotated 90 degrees counterclockwise.
Assumes that the image is going to be rotated around center, and size of image
will remain unchanged.
This function takes numpy array of an image. Function will handle 2D greyscale
images, RGB, and RGBA image arrays.
"""
return cv.rotate(image, cv.ROTATE_90_COUNTERCLOCKWISE)
def rotate_180(image: np.array) -> np.array:
"""
Rotate an image 180 degrees
This function takes an image as numpy array and
and outputs the image rotated 180 degrees.
Assumes that the image is going to be rotated around center, and size of image
will remain unchanged.
This function takes numpy array of an image. Function will handle 2D greyscale
images, RGB, and RGBA image arrays.
"""
return cv.rotate(image, cv.ROTATE_180)
def rotate_270(image: np.array) -> np.array:
"""
Rotate an image 270 degrees counterclockwise
This function takes an image as numpy array and
and outputs the image rotated 270 degrees counterclockwise.
Assumes that the image is going to be rotated around center, and size of image
will remain unchanged.
This function takes numpy array of an image. Function will handle 2D greyscale
images, RGB, and RGBA image arrays.
"""
return cv.rotate(image, cv.ROTATE_90_CLOCKWISE) | 0.961534 | 0.704109 |
from app import app
from flask_wtf import FlaskForm
from wtforms import (
StringField,
TextAreaField,
SubmitField,
IntegerField,
SelectField,
HiddenField,
PasswordField,
BooleanField
)
from wtforms.validators import DataRequired, Optional
from flask_babel import lazy_gettext as _l
from app.utils import OPERATORS, read_vendors
DICTIONARIES_PATH = app.config.get('DICTIONARIES_PATH')
class NoValidationSelectField(SelectField):
def pre_validate(self, form):
return True
def post_validate(self, form, validation_stopped):
return True
class NasForm(FlaskForm):
VENDORS = read_vendors(DICTIONARIES_PATH)
name = StringField(
_l('NAS Name'),
validators=[DataRequired(_l('This field is required.'))]
)
server = StringField(
_l('Server')
)
ports = IntegerField(
_l('Ports'),
validators=[Optional()]
)
secret = StringField(
_l('Secret'),
validators=[DataRequired(_l('This field is required.'))]
)
short_name = StringField(
_l('Short Name'),
validators=[DataRequired(_l('This field is required.'))]
)
type = NoValidationSelectField(_l('Type'), choices=VENDORS or [])
custom_type = StringField(_l('Type'))
community = StringField(_l('Community'))
description = TextAreaField(_l('Description'))
submit = SubmitField(_l('Submit'))
class GroupForm(FlaskForm):
name = StringField(
_l('Group Name'),
validators=[DataRequired(_l('This field is required.'))]
)
description = TextAreaField(_l('Description'))
submit = SubmitField(_l('Submit'))
class UserForm(FlaskForm):
username = StringField(
_l('Username'),
validators=[DataRequired(_l('This field is required.'))]
)
email = StringField(_l('Email'))
password = PasswordField(_l('Password'))
active = BooleanField(_l('Active'), default=True)
group = SelectField(_l('Group'), choices=[])
name = StringField(_l('Name'))
phone = StringField(_l('Phone'))
address = TextAreaField(_l('Address'))
has_access = BooleanField(_l('Can login into this system?'), default=False)
class AttributeForm(FlaskForm):
VENDORS = read_vendors(DICTIONARIES_PATH)
vendor = NoValidationSelectField(
_l('Vendor'), choices=VENDORS or [],
id='vendor_field'
)
attribute = NoValidationSelectField(
_l('Attribute'), choices=[],
validators=[DataRequired(_l('This field is required.'))],
id='attribute_field'
)
custom_attribute = StringField(_l('Attribute'), id='custom_attribute_field')
operation = SelectField(
_l('Operation'), choices=OPERATORS,
validators=[DataRequired(_l('This field is required.'))]
)
value = NoValidationSelectField(_l('Value'), choices=[], id='value_field')
custom_value = StringField(_l('Value'), id='custom_value_field')
processed_fields = HiddenField(
_l('Processed Fields'), id='proc_fields',
default='ca-cv'
) | flask_app/app/forms/radius.py | from app import app
from flask_wtf import FlaskForm
from wtforms import (
StringField,
TextAreaField,
SubmitField,
IntegerField,
SelectField,
HiddenField,
PasswordField,
BooleanField
)
from wtforms.validators import DataRequired, Optional
from flask_babel import lazy_gettext as _l
from app.utils import OPERATORS, read_vendors
DICTIONARIES_PATH = app.config.get('DICTIONARIES_PATH')
class NoValidationSelectField(SelectField):
def pre_validate(self, form):
return True
def post_validate(self, form, validation_stopped):
return True
class NasForm(FlaskForm):
VENDORS = read_vendors(DICTIONARIES_PATH)
name = StringField(
_l('NAS Name'),
validators=[DataRequired(_l('This field is required.'))]
)
server = StringField(
_l('Server')
)
ports = IntegerField(
_l('Ports'),
validators=[Optional()]
)
secret = StringField(
_l('Secret'),
validators=[DataRequired(_l('This field is required.'))]
)
short_name = StringField(
_l('Short Name'),
validators=[DataRequired(_l('This field is required.'))]
)
type = NoValidationSelectField(_l('Type'), choices=VENDORS or [])
custom_type = StringField(_l('Type'))
community = StringField(_l('Community'))
description = TextAreaField(_l('Description'))
submit = SubmitField(_l('Submit'))
class GroupForm(FlaskForm):
name = StringField(
_l('Group Name'),
validators=[DataRequired(_l('This field is required.'))]
)
description = TextAreaField(_l('Description'))
submit = SubmitField(_l('Submit'))
class UserForm(FlaskForm):
username = StringField(
_l('Username'),
validators=[DataRequired(_l('This field is required.'))]
)
email = StringField(_l('Email'))
password = PasswordField(_l('Password'))
active = BooleanField(_l('Active'), default=True)
group = SelectField(_l('Group'), choices=[])
name = StringField(_l('Name'))
phone = StringField(_l('Phone'))
address = TextAreaField(_l('Address'))
has_access = BooleanField(_l('Can login into this system?'), default=False)
class AttributeForm(FlaskForm):
VENDORS = read_vendors(DICTIONARIES_PATH)
vendor = NoValidationSelectField(
_l('Vendor'), choices=VENDORS or [],
id='vendor_field'
)
attribute = NoValidationSelectField(
_l('Attribute'), choices=[],
validators=[DataRequired(_l('This field is required.'))],
id='attribute_field'
)
custom_attribute = StringField(_l('Attribute'), id='custom_attribute_field')
operation = SelectField(
_l('Operation'), choices=OPERATORS,
validators=[DataRequired(_l('This field is required.'))]
)
value = NoValidationSelectField(_l('Value'), choices=[], id='value_field')
custom_value = StringField(_l('Value'), id='custom_value_field')
processed_fields = HiddenField(
_l('Processed Fields'), id='proc_fields',
default='ca-cv'
) | 0.554953 | 0.098773 |
from __future__ import print_function
import datetime
import requests
from bs4 import BeautifulSoup
import sys
import time
import unicodecsv as csv
MAXLIMIT = 20000
url = "http://www.woolworths.co.za/store/cat/Food/_/N-1z13sk4?No={start_index}&Nr=NOT%28isSkuActive%3A0%29&Nrpp=1000"
def exstr(tag):
if tag:
return tag.text.strip()
return None
def extract(soup):
data = []
products = soup.findAll(attrs={"itemtype" : "http://schema.org/Product"})
for product in products:
name = exstr(product.find(attrs={"itemprop" : "name"}))
price = exstr(product.find(attrs={"itemprop" : "price", "class" : "price"}))
buy_save = exstr(product.find(attrs={"itemprop" : "price", "class" : "buySavePrice"}))
image = product.find(attrs={"itemprop" : "image"})["src"]
sku = product.find(attrs={"class" : "shoppingListCommerceWrapper"})["id"]
data.append([name, price, buy_save, sku, datetime.datetime.now()])
return data
def clean(soup):
def remove_all(tags):
[a.extract() for a in tags]
remove_all(soup.select("#qtyContainer"))
remove_all(soup.select("script"))
remove_all(soup.select("link"))
remove_all(soup.select("meta"))
remove_all(soup.select(".headerNavWrapper"))
remove_all(soup.select("head"))
remove_all(soup.select(".siteNav"))
remove_all(soup.select(".siteHeader"))
remove_all(soup.select("nav"))
remove_all(soup.select(".userDetails"))
remove_all(soup.select("#cartDetails"))
remove_all(soup.select(".subMenu"))
remove_all(soup.select(".hoverDetails"))
remove_all(soup.select(".productColours"))
remove_all(soup.select(".qtyBasket"))
remove_all(soup.select(".addLists"))
remove_all(soup.select("style"))
with open("out.html", "w") as fp:
fp.write(unicode(soup.prettify()).encode("utf8"))
if __name__ == "__main__":
with open("prices_all.csv", "a") as fp:
writer = csv.writer(fp)
count = 1
while True:
try:
new_url = url.format(start_index=count)
print(new_url)
html = requests.get(new_url, timeout=25).content
soup = BeautifulSoup(html, "html.parser")
data = extract(soup)
writer.writerows(data)
if len(data) < 1000:
break
count += 1000
if count > MAXLIMIT: break
except requests.exceptions.Timeout:
time.sleep(10) | scrape_all.py | from __future__ import print_function
import datetime
import requests
from bs4 import BeautifulSoup
import sys
import time
import unicodecsv as csv
MAXLIMIT = 20000
url = "http://www.woolworths.co.za/store/cat/Food/_/N-1z13sk4?No={start_index}&Nr=NOT%28isSkuActive%3A0%29&Nrpp=1000"
def exstr(tag):
if tag:
return tag.text.strip()
return None
def extract(soup):
data = []
products = soup.findAll(attrs={"itemtype" : "http://schema.org/Product"})
for product in products:
name = exstr(product.find(attrs={"itemprop" : "name"}))
price = exstr(product.find(attrs={"itemprop" : "price", "class" : "price"}))
buy_save = exstr(product.find(attrs={"itemprop" : "price", "class" : "buySavePrice"}))
image = product.find(attrs={"itemprop" : "image"})["src"]
sku = product.find(attrs={"class" : "shoppingListCommerceWrapper"})["id"]
data.append([name, price, buy_save, sku, datetime.datetime.now()])
return data
def clean(soup):
def remove_all(tags):
[a.extract() for a in tags]
remove_all(soup.select("#qtyContainer"))
remove_all(soup.select("script"))
remove_all(soup.select("link"))
remove_all(soup.select("meta"))
remove_all(soup.select(".headerNavWrapper"))
remove_all(soup.select("head"))
remove_all(soup.select(".siteNav"))
remove_all(soup.select(".siteHeader"))
remove_all(soup.select("nav"))
remove_all(soup.select(".userDetails"))
remove_all(soup.select("#cartDetails"))
remove_all(soup.select(".subMenu"))
remove_all(soup.select(".hoverDetails"))
remove_all(soup.select(".productColours"))
remove_all(soup.select(".qtyBasket"))
remove_all(soup.select(".addLists"))
remove_all(soup.select("style"))
with open("out.html", "w") as fp:
fp.write(unicode(soup.prettify()).encode("utf8"))
if __name__ == "__main__":
with open("prices_all.csv", "a") as fp:
writer = csv.writer(fp)
count = 1
while True:
try:
new_url = url.format(start_index=count)
print(new_url)
html = requests.get(new_url, timeout=25).content
soup = BeautifulSoup(html, "html.parser")
data = extract(soup)
writer.writerows(data)
if len(data) < 1000:
break
count += 1000
if count > MAXLIMIT: break
except requests.exceptions.Timeout:
time.sleep(10) | 0.191857 | 0.078184 |
# X86 registers
X86_REG_INVALID = 0
X86_REG_AH = 1
X86_REG_AL = 2
X86_REG_AX = 3
X86_REG_BH = 4
X86_REG_BL = 5
X86_REG_BP = 6
X86_REG_BPL = 7
X86_REG_BX = 8
X86_REG_CH = 9
X86_REG_CL = 10
X86_REG_CS = 11
X86_REG_CX = 12
X86_REG_DH = 13
X86_REG_DI = 14
X86_REG_DIL = 15
X86_REG_DL = 16
X86_REG_DS = 17
X86_REG_DX = 18
X86_REG_EAX = 19
X86_REG_EBP = 20
X86_REG_EBX = 21
X86_REG_ECX = 22
X86_REG_EDI = 23
X86_REG_EDX = 24
X86_REG_EFLAGS = 25
X86_REG_EIP = 26
X86_REG_EIZ = 27
X86_REG_ES = 28
X86_REG_ESI = 29
X86_REG_ESP = 30
X86_REG_FPSW = 31
X86_REG_FS = 32
X86_REG_GS = 33
X86_REG_IP = 34
X86_REG_RAX = 35
X86_REG_RBP = 36
X86_REG_RBX = 37
X86_REG_RCX = 38
X86_REG_RDI = 39
X86_REG_RDX = 40
X86_REG_RIP = 41
X86_REG_RIZ = 42
X86_REG_RSI = 43
X86_REG_RSP = 44
X86_REG_SI = 45
X86_REG_SIL = 46
X86_REG_SP = 47
X86_REG_SPL = 48
X86_REG_SS = 49
X86_REG_CR0 = 50
X86_REG_CR1 = 51
X86_REG_CR2 = 52
X86_REG_CR3 = 53
X86_REG_CR4 = 54
X86_REG_CR5 = 55
X86_REG_CR6 = 56
X86_REG_CR7 = 57
X86_REG_CR8 = 58
X86_REG_CR9 = 59
X86_REG_CR10 = 60
X86_REG_CR11 = 61
X86_REG_CR12 = 62
X86_REG_CR13 = 63
X86_REG_CR14 = 64
X86_REG_CR15 = 65
X86_REG_DR0 = 66
X86_REG_DR1 = 67
X86_REG_DR2 = 68
X86_REG_DR3 = 69
X86_REG_DR4 = 70
X86_REG_DR5 = 71
X86_REG_DR6 = 72
X86_REG_DR7 = 73
X86_REG_FP0 = 74
X86_REG_FP1 = 75
X86_REG_FP2 = 76
X86_REG_FP3 = 77
X86_REG_FP4 = 78
X86_REG_FP5 = 79
X86_REG_FP6 = 80
X86_REG_FP7 = 81
X86_REG_K0 = 82
X86_REG_K1 = 83
X86_REG_K2 = 84
X86_REG_K3 = 85
X86_REG_K4 = 86
X86_REG_K5 = 87
X86_REG_K6 = 88
X86_REG_K7 = 89
X86_REG_MM0 = 90
X86_REG_MM1 = 91
X86_REG_MM2 = 92
X86_REG_MM3 = 93
X86_REG_MM4 = 94
X86_REG_MM5 = 95
X86_REG_MM6 = 96
X86_REG_MM7 = 97
X86_REG_R8 = 98
X86_REG_R9 = 99
X86_REG_R10 = 100
X86_REG_R11 = 101
X86_REG_R12 = 102
X86_REG_R13 = 103
X86_REG_R14 = 104
X86_REG_R15 = 105
X86_REG_ST0 = 106
X86_REG_ST1 = 107
X86_REG_ST2 = 108
X86_REG_ST3 = 109
X86_REG_ST4 = 110
X86_REG_ST5 = 111
X86_REG_ST6 = 112
X86_REG_ST7 = 113
X86_REG_XMM0 = 114
X86_REG_XMM1 = 115
X86_REG_XMM2 = 116
X86_REG_XMM3 = 117
X86_REG_XMM4 = 118
X86_REG_XMM5 = 119
X86_REG_XMM6 = 120
X86_REG_XMM7 = 121
X86_REG_XMM8 = 122
X86_REG_XMM9 = 123
X86_REG_XMM10 = 124
X86_REG_XMM11 = 125
X86_REG_XMM12 = 126
X86_REG_XMM13 = 127
X86_REG_XMM14 = 128
X86_REG_XMM15 = 129
X86_REG_XMM16 = 130
X86_REG_XMM17 = 131
X86_REG_XMM18 = 132
X86_REG_XMM19 = 133
X86_REG_XMM20 = 134
X86_REG_XMM21 = 135
X86_REG_XMM22 = 136
X86_REG_XMM23 = 137
X86_REG_XMM24 = 138
X86_REG_XMM25 = 139
X86_REG_XMM26 = 140
X86_REG_XMM27 = 141
X86_REG_XMM28 = 142
X86_REG_XMM29 = 143
X86_REG_XMM30 = 144
X86_REG_XMM31 = 145
X86_REG_YMM0 = 146
X86_REG_YMM1 = 147
X86_REG_YMM2 = 148
X86_REG_YMM3 = 149
X86_REG_YMM4 = 150
X86_REG_YMM5 = 151
X86_REG_YMM6 = 152
X86_REG_YMM7 = 153
X86_REG_YMM8 = 154
X86_REG_YMM9 = 155
X86_REG_YMM10 = 156
X86_REG_YMM11 = 157
X86_REG_YMM12 = 158
X86_REG_YMM13 = 159
X86_REG_YMM14 = 160
X86_REG_YMM15 = 161
X86_REG_YMM16 = 162
X86_REG_YMM17 = 163
X86_REG_YMM18 = 164
X86_REG_YMM19 = 165
X86_REG_YMM20 = 166
X86_REG_YMM21 = 167
X86_REG_YMM22 = 168
X86_REG_YMM23 = 169
X86_REG_YMM24 = 170
X86_REG_YMM25 = 171
X86_REG_YMM26 = 172
X86_REG_YMM27 = 173
X86_REG_YMM28 = 174
X86_REG_YMM29 = 175
X86_REG_YMM30 = 176
X86_REG_YMM31 = 177
X86_REG_ZMM0 = 178
X86_REG_ZMM1 = 179
X86_REG_ZMM2 = 180
X86_REG_ZMM3 = 181
X86_REG_ZMM4 = 182
X86_REG_ZMM5 = 183
X86_REG_ZMM6 = 184
X86_REG_ZMM7 = 185
X86_REG_ZMM8 = 186
X86_REG_ZMM9 = 187
X86_REG_ZMM10 = 188
X86_REG_ZMM11 = 189
X86_REG_ZMM12 = 190
X86_REG_ZMM13 = 191
X86_REG_ZMM14 = 192
X86_REG_ZMM15 = 193
X86_REG_ZMM16 = 194
X86_REG_ZMM17 = 195
X86_REG_ZMM18 = 196
X86_REG_ZMM19 = 197
X86_REG_ZMM20 = 198
X86_REG_ZMM21 = 199
X86_REG_ZMM22 = 200
X86_REG_ZMM23 = 201
X86_REG_ZMM24 = 202
X86_REG_ZMM25 = 203
X86_REG_ZMM26 = 204
X86_REG_ZMM27 = 205
X86_REG_ZMM28 = 206
X86_REG_ZMM29 = 207
X86_REG_ZMM30 = 208
X86_REG_ZMM31 = 209
X86_REG_R8B = 210
X86_REG_R9B = 211
X86_REG_R10B = 212
X86_REG_R11B = 213
X86_REG_R12B = 214
X86_REG_R13B = 215
X86_REG_R14B = 216
X86_REG_R15B = 217
X86_REG_R8D = 218
X86_REG_R9D = 219
X86_REG_R10D = 220
X86_REG_R11D = 221
X86_REG_R12D = 222
X86_REG_R13D = 223
X86_REG_R14D = 224
X86_REG_R15D = 225
X86_REG_R8W = 226
X86_REG_R9W = 227
X86_REG_R10W = 228
X86_REG_R11W = 229
X86_REG_R12W = 230
X86_REG_R13W = 231
X86_REG_R14W = 232
X86_REG_R15W = 233
X86_REG_ENDING = 234
# Operand type for instruction's operands
X86_OP_INVALID = 0
X86_OP_REG = 1
X86_OP_IMM = 2
X86_OP_FP = 3
X86_OP_MEM = 4
# AVX broadcast type
X86_AVX_BCAST_INVALID = 0
X86_AVX_BCAST_2 = 1
X86_AVX_BCAST_4 = 2
X86_AVX_BCAST_8 = 3
X86_AVX_BCAST_16 = 4
# SSE Code Condition type
X86_SSE_CC_INVALID = 0
X86_SSE_CC_EQ = 1
X86_SSE_CC_LT = 2
X86_SSE_CC_LE = 3
X86_SSE_CC_UNORD = 4
X86_SSE_CC_NEQ = 5
X86_SSE_CC_NLT = 6
X86_SSE_CC_NLE = 7
X86_SSE_CC_ORD = 8
X86_SSE_CC_EQ_UQ = 9
X86_SSE_CC_NGE = 10
X86_SSE_CC_NGT = 11
X86_SSE_CC_FALSE = 12
X86_SSE_CC_NEQ_OQ = 13
X86_SSE_CC_GE = 14
X86_SSE_CC_GT = 15
X86_SSE_CC_TRUE = 16
# AVX Code Condition type
X86_AVX_CC_INVALID = 0
X86_AVX_CC_EQ = 1
X86_AVX_CC_LT = 2
X86_AVX_CC_LE = 3
X86_AVX_CC_UNORD = 4
X86_AVX_CC_NEQ = 5
X86_AVX_CC_NLT = 6
X86_AVX_CC_NLE = 7
X86_AVX_CC_ORD = 8
X86_AVX_CC_EQ_UQ = 9
X86_AVX_CC_NGE = 10
X86_AVX_CC_NGT = 11
X86_AVX_CC_FALSE = 12
X86_AVX_CC_NEQ_OQ = 13
X86_AVX_CC_GE = 14
X86_AVX_CC_GT = 15
X86_AVX_CC_TRUE = 16
X86_AVX_CC_EQ_OS = 17
X86_AVX_CC_LT_OQ = 18
X86_AVX_CC_LE_OQ = 19
X86_AVX_CC_UNORD_S = 20
X86_AVX_CC_NEQ_US = 21
X86_AVX_CC_NLT_UQ = 22
X86_AVX_CC_NLE_UQ = 23
X86_AVX_CC_ORD_S = 24
X86_AVX_CC_EQ_US = 25
X86_AVX_CC_NGE_UQ = 26
X86_AVX_CC_NGT_UQ = 27
X86_AVX_CC_FALSE_OS = 28
X86_AVX_CC_NEQ_OS = 29
X86_AVX_CC_GE_OQ = 30
X86_AVX_CC_GT_OQ = 31
X86_AVX_CC_TRUE_US = 32
# AVX static rounding mode type
X86_AVX_RM_INVALID = 0
X86_AVX_RM_RN = 1
X86_AVX_RM_RD = 2
X86_AVX_RM_RU = 3
X86_AVX_RM_RZ = 4
# X86 instructions
X86_INS_INVALID = 0
X86_INS_AAA = 1
X86_INS_AAD = 2
X86_INS_AAM = 3
X86_INS_AAS = 4
X86_INS_FABS = 5
X86_INS_ADC = 6
X86_INS_ADCX = 7
X86_INS_ADD = 8
X86_INS_ADDPD = 9
X86_INS_ADDPS = 10
X86_INS_ADDSD = 11
X86_INS_ADDSS = 12
X86_INS_ADDSUBPD = 13
X86_INS_ADDSUBPS = 14
X86_INS_FADD = 15
X86_INS_FIADD = 16
X86_INS_FADDP = 17
X86_INS_ADOX = 18
X86_INS_AESDECLAST = 19
X86_INS_AESDEC = 20
X86_INS_AESENCLAST = 21
X86_INS_AESENC = 22
X86_INS_AESIMC = 23
X86_INS_AESKEYGENASSIST = 24
X86_INS_AND = 25
X86_INS_ANDN = 26
X86_INS_ANDNPD = 27
X86_INS_ANDNPS = 28
X86_INS_ANDPD = 29
X86_INS_ANDPS = 30
X86_INS_ARPL = 31
X86_INS_BEXTR = 32
X86_INS_BLCFILL = 33
X86_INS_BLCI = 34
X86_INS_BLCIC = 35
X86_INS_BLCMSK = 36
X86_INS_BLCS = 37
X86_INS_BLENDPD = 38
X86_INS_BLENDPS = 39
X86_INS_BLENDVPD = 40
X86_INS_BLENDVPS = 41
X86_INS_BLSFILL = 42
X86_INS_BLSI = 43
X86_INS_BLSIC = 44
X86_INS_BLSMSK = 45
X86_INS_BLSR = 46
X86_INS_BOUND = 47
X86_INS_BSF = 48
X86_INS_BSR = 49
X86_INS_BSWAP = 50
X86_INS_BT = 51
X86_INS_BTC = 52
X86_INS_BTR = 53
X86_INS_BTS = 54
X86_INS_BZHI = 55
X86_INS_CALL = 56
X86_INS_CBW = 57
X86_INS_CDQ = 58
X86_INS_CDQE = 59
X86_INS_FCHS = 60
X86_INS_CLAC = 61
X86_INS_CLC = 62
X86_INS_CLD = 63
X86_INS_CLFLUSH = 64
X86_INS_CLGI = 65
X86_INS_CLI = 66
X86_INS_CLTS = 67
X86_INS_CMC = 68
X86_INS_CMOVA = 69
X86_INS_CMOVAE = 70
X86_INS_CMOVB = 71
X86_INS_CMOVBE = 72
X86_INS_FCMOVBE = 73
X86_INS_FCMOVB = 74
X86_INS_CMOVE = 75
X86_INS_FCMOVE = 76
X86_INS_CMOVG = 77
X86_INS_CMOVGE = 78
X86_INS_CMOVL = 79
X86_INS_CMOVLE = 80
X86_INS_FCMOVNBE = 81
X86_INS_FCMOVNB = 82
X86_INS_CMOVNE = 83
X86_INS_FCMOVNE = 84
X86_INS_CMOVNO = 85
X86_INS_CMOVNP = 86
X86_INS_FCMOVNU = 87
X86_INS_CMOVNS = 88
X86_INS_CMOVO = 89
X86_INS_CMOVP = 90
X86_INS_FCMOVU = 91
X86_INS_CMOVS = 92
X86_INS_CMP = 93
X86_INS_CMPPD = 94
X86_INS_CMPPS = 95
X86_INS_CMPSB = 96
X86_INS_CMPSD = 97
X86_INS_CMPSQ = 98
X86_INS_CMPSS = 99
X86_INS_CMPSW = 100
X86_INS_CMPXCHG16B = 101
X86_INS_CMPXCHG = 102
X86_INS_CMPXCHG8B = 103
X86_INS_COMISD = 104
X86_INS_COMISS = 105
X86_INS_FCOMP = 106
X86_INS_FCOMPI = 107
X86_INS_FCOMI = 108
X86_INS_FCOM = 109
X86_INS_FCOS = 110
X86_INS_CPUID = 111
X86_INS_CQO = 112
X86_INS_CRC32 = 113
X86_INS_CVTDQ2PD = 114
X86_INS_CVTDQ2PS = 115
X86_INS_CVTPD2DQ = 116
X86_INS_CVTPD2PS = 117
X86_INS_CVTPS2DQ = 118
X86_INS_CVTPS2PD = 119
X86_INS_CVTSD2SI = 120
X86_INS_CVTSD2SS = 121
X86_INS_CVTSI2SD = 122
X86_INS_CVTSI2SS = 123
X86_INS_CVTSS2SD = 124
X86_INS_CVTSS2SI = 125
X86_INS_CVTTPD2DQ = 126
X86_INS_CVTTPS2DQ = 127
X86_INS_CVTTSD2SI = 128
X86_INS_CVTTSS2SI = 129
X86_INS_CWD = 130
X86_INS_CWDE = 131
X86_INS_DAA = 132
X86_INS_DAS = 133
X86_INS_DATA16 = 134
X86_INS_DEC = 135
X86_INS_DIV = 136
X86_INS_DIVPD = 137
X86_INS_DIVPS = 138
X86_INS_FDIVR = 139
X86_INS_FIDIVR = 140
X86_INS_FDIVRP = 141
X86_INS_DIVSD = 142
X86_INS_DIVSS = 143
X86_INS_FDIV = 144
X86_INS_FIDIV = 145
X86_INS_FDIVP = 146
X86_INS_DPPD = 147
X86_INS_DPPS = 148
X86_INS_RET = 149
X86_INS_ENCLS = 150
X86_INS_ENCLU = 151
X86_INS_ENTER = 152
X86_INS_EXTRACTPS = 153
X86_INS_EXTRQ = 154
X86_INS_F2XM1 = 155
X86_INS_LCALL = 156
X86_INS_LJMP = 157
X86_INS_FBLD = 158
X86_INS_FBSTP = 159
X86_INS_FCOMPP = 160
X86_INS_FDECSTP = 161
X86_INS_FEMMS = 162
X86_INS_FFREE = 163
X86_INS_FICOM = 164
X86_INS_FICOMP = 165
X86_INS_FINCSTP = 166
X86_INS_FLDCW = 167
X86_INS_FLDENV = 168
X86_INS_FLDL2E = 169
X86_INS_FLDL2T = 170
X86_INS_FLDLG2 = 171
X86_INS_FLDLN2 = 172
X86_INS_FLDPI = 173
X86_INS_FNCLEX = 174
X86_INS_FNINIT = 175
X86_INS_FNOP = 176
X86_INS_FNSTCW = 177
X86_INS_FNSTSW = 178
X86_INS_FPATAN = 179
X86_INS_FPREM = 180
X86_INS_FPREM1 = 181
X86_INS_FPTAN = 182
X86_INS_FRNDINT = 183
X86_INS_FRSTOR = 184
X86_INS_FNSAVE = 185
X86_INS_FSCALE = 186
X86_INS_FSETPM = 187
X86_INS_FSINCOS = 188
X86_INS_FNSTENV = 189
X86_INS_FXAM = 190
X86_INS_FXRSTOR = 191
X86_INS_FXRSTOR64 = 192
X86_INS_FXSAVE = 193
X86_INS_FXSAVE64 = 194
X86_INS_FXTRACT = 195
X86_INS_FYL2X = 196
X86_INS_FYL2XP1 = 197
X86_INS_MOVAPD = 198
X86_INS_MOVAPS = 199
X86_INS_ORPD = 200
X86_INS_ORPS = 201
X86_INS_VMOVAPD = 202
X86_INS_VMOVAPS = 203
X86_INS_XORPD = 204
X86_INS_XORPS = 205
X86_INS_GETSEC = 206
X86_INS_HADDPD = 207
X86_INS_HADDPS = 208
X86_INS_HLT = 209
X86_INS_HSUBPD = 210
X86_INS_HSUBPS = 211
X86_INS_IDIV = 212
X86_INS_FILD = 213
X86_INS_IMUL = 214
X86_INS_IN = 215
X86_INS_INC = 216
X86_INS_INSB = 217
X86_INS_INSERTPS = 218
X86_INS_INSERTQ = 219
X86_INS_INSD = 220
X86_INS_INSW = 221
X86_INS_INT = 222
X86_INS_INT1 = 223
X86_INS_INT3 = 224
X86_INS_INTO = 225
X86_INS_INVD = 226
X86_INS_INVEPT = 227
X86_INS_INVLPG = 228
X86_INS_INVLPGA = 229
X86_INS_INVPCID = 230
X86_INS_INVVPID = 231
X86_INS_IRET = 232
X86_INS_IRETD = 233
X86_INS_IRETQ = 234
X86_INS_FISTTP = 235
X86_INS_FIST = 236
X86_INS_FISTP = 237
X86_INS_UCOMISD = 238
X86_INS_UCOMISS = 239
X86_INS_VCMP = 240
X86_INS_VCOMISD = 241
X86_INS_VCOMISS = 242
X86_INS_VCVTSD2SS = 243
X86_INS_VCVTSI2SD = 244
X86_INS_VCVTSI2SS = 245
X86_INS_VCVTSS2SD = 246
X86_INS_VCVTTSD2SI = 247
X86_INS_VCVTTSD2USI = 248
X86_INS_VCVTTSS2SI = 249
X86_INS_VCVTTSS2USI = 250
X86_INS_VCVTUSI2SD = 251
X86_INS_VCVTUSI2SS = 252
X86_INS_VUCOMISD = 253
X86_INS_VUCOMISS = 254
X86_INS_JAE = 255
X86_INS_JA = 256
X86_INS_JBE = 257
X86_INS_JB = 258
X86_INS_JCXZ = 259
X86_INS_JECXZ = 260
X86_INS_JE = 261
X86_INS_JGE = 262
X86_INS_JG = 263
X86_INS_JLE = 264
X86_INS_JL = 265
X86_INS_JMP = 266
X86_INS_JNE = 267
X86_INS_JNO = 268
X86_INS_JNP = 269
X86_INS_JNS = 270
X86_INS_JO = 271
X86_INS_JP = 272
X86_INS_JRCXZ = 273
X86_INS_JS = 274
X86_INS_KANDB = 275
X86_INS_KANDD = 276
X86_INS_KANDNB = 277
X86_INS_KANDND = 278
X86_INS_KANDNQ = 279
X86_INS_KANDNW = 280
X86_INS_KANDQ = 281
X86_INS_KANDW = 282
X86_INS_KMOVB = 283
X86_INS_KMOVD = 284
X86_INS_KMOVQ = 285
X86_INS_KMOVW = 286
X86_INS_KNOTB = 287
X86_INS_KNOTD = 288
X86_INS_KNOTQ = 289
X86_INS_KNOTW = 290
X86_INS_KORB = 291
X86_INS_KORD = 292
X86_INS_KORQ = 293
X86_INS_KORTESTW = 294
X86_INS_KORW = 295
X86_INS_KSHIFTLW = 296
X86_INS_KSHIFTRW = 297
X86_INS_KUNPCKBW = 298
X86_INS_KXNORB = 299
X86_INS_KXNORD = 300
X86_INS_KXNORQ = 301
X86_INS_KXNORW = 302
X86_INS_KXORB = 303
X86_INS_KXORD = 304
X86_INS_KXORQ = 305
X86_INS_KXORW = 306
X86_INS_LAHF = 307
X86_INS_LAR = 308
X86_INS_LDDQU = 309
X86_INS_LDMXCSR = 310
X86_INS_LDS = 311
X86_INS_FLDZ = 312
X86_INS_FLD1 = 313
X86_INS_FLD = 314
X86_INS_LEA = 315
X86_INS_LEAVE = 316
X86_INS_LES = 317
X86_INS_LFENCE = 318
X86_INS_LFS = 319
X86_INS_LGDT = 320
X86_INS_LGS = 321
X86_INS_LIDT = 322
X86_INS_LLDT = 323
X86_INS_LMSW = 324
X86_INS_OR = 325
X86_INS_LOCK = 326
X86_INS_SUB = 327
X86_INS_XOR = 328
X86_INS_LODSB = 329
X86_INS_LODSD = 330
X86_INS_LODSQ = 331
X86_INS_LODSW = 332
X86_INS_LOOP = 333
X86_INS_LOOPE = 334
X86_INS_LOOPNE = 335
X86_INS_RETF = 336
X86_INS_RETFQ = 337
X86_INS_LSL = 338
X86_INS_LSS = 339
X86_INS_LTR = 340
X86_INS_XADD = 341
X86_INS_LZCNT = 342
X86_INS_MASKMOVDQU = 343
X86_INS_MAXPD = 344
X86_INS_MAXPS = 345
X86_INS_MAXSD = 346
X86_INS_MAXSS = 347
X86_INS_MFENCE = 348
X86_INS_MINPD = 349
X86_INS_MINPS = 350
X86_INS_MINSD = 351
X86_INS_MINSS = 352
X86_INS_CVTPD2PI = 353
X86_INS_CVTPI2PD = 354
X86_INS_CVTPI2PS = 355
X86_INS_CVTPS2PI = 356
X86_INS_CVTTPD2PI = 357
X86_INS_CVTTPS2PI = 358
X86_INS_EMMS = 359
X86_INS_MASKMOVQ = 360
X86_INS_MOVD = 361
X86_INS_MOVDQ2Q = 362
X86_INS_MOVNTQ = 363
X86_INS_MOVQ2DQ = 364
X86_INS_MOVQ = 365
X86_INS_PABSB = 366
X86_INS_PABSD = 367
X86_INS_PABSW = 368
X86_INS_PACKSSDW = 369
X86_INS_PACKSSWB = 370
X86_INS_PACKUSWB = 371
X86_INS_PADDB = 372
X86_INS_PADDD = 373
X86_INS_PADDQ = 374
X86_INS_PADDSB = 375
X86_INS_PADDSW = 376
X86_INS_PADDUSB = 377
X86_INS_PADDUSW = 378
X86_INS_PADDW = 379
X86_INS_PALIGNR = 380
X86_INS_PANDN = 381
X86_INS_PAND = 382
X86_INS_PAVGB = 383
X86_INS_PAVGW = 384
X86_INS_PCMPEQB = 385
X86_INS_PCMPEQD = 386
X86_INS_PCMPEQW = 387
X86_INS_PCMPGTB = 388
X86_INS_PCMPGTD = 389
X86_INS_PCMPGTW = 390
X86_INS_PEXTRW = 391
X86_INS_PHADDSW = 392
X86_INS_PHADDW = 393
X86_INS_PHADDD = 394
X86_INS_PHSUBD = 395
X86_INS_PHSUBSW = 396
X86_INS_PHSUBW = 397
X86_INS_PINSRW = 398
X86_INS_PMADDUBSW = 399
X86_INS_PMADDWD = 400
X86_INS_PMAXSW = 401
X86_INS_PMAXUB = 402
X86_INS_PMINSW = 403
X86_INS_PMINUB = 404
X86_INS_PMOVMSKB = 405
X86_INS_PMULHRSW = 406
X86_INS_PMULHUW = 407
X86_INS_PMULHW = 408
X86_INS_PMULLW = 409
X86_INS_PMULUDQ = 410
X86_INS_POR = 411
X86_INS_PSADBW = 412
X86_INS_PSHUFB = 413
X86_INS_PSHUFW = 414
X86_INS_PSIGNB = 415
X86_INS_PSIGND = 416
X86_INS_PSIGNW = 417
X86_INS_PSLLD = 418
X86_INS_PSLLQ = 419
X86_INS_PSLLW = 420
X86_INS_PSRAD = 421
X86_INS_PSRAW = 422
X86_INS_PSRLD = 423
X86_INS_PSRLQ = 424
X86_INS_PSRLW = 425
X86_INS_PSUBB = 426
X86_INS_PSUBD = 427
X86_INS_PSUBQ = 428
X86_INS_PSUBSB = 429
X86_INS_PSUBSW = 430
X86_INS_PSUBUSB = 431
X86_INS_PSUBUSW = 432
X86_INS_PSUBW = 433
X86_INS_PUNPCKHBW = 434
X86_INS_PUNPCKHDQ = 435
X86_INS_PUNPCKHWD = 436
X86_INS_PUNPCKLBW = 437
X86_INS_PUNPCKLDQ = 438
X86_INS_PUNPCKLWD = 439
X86_INS_PXOR = 440
X86_INS_MONITOR = 441
X86_INS_MONTMUL = 442
X86_INS_MOV = 443
X86_INS_MOVABS = 444
X86_INS_MOVBE = 445
X86_INS_MOVDDUP = 446
X86_INS_MOVDQA = 447
X86_INS_MOVDQU = 448
X86_INS_MOVHLPS = 449
X86_INS_MOVHPD = 450
X86_INS_MOVHPS = 451
X86_INS_MOVLHPS = 452
X86_INS_MOVLPD = 453
X86_INS_MOVLPS = 454
X86_INS_MOVMSKPD = 455
X86_INS_MOVMSKPS = 456
X86_INS_MOVNTDQA = 457
X86_INS_MOVNTDQ = 458
X86_INS_MOVNTI = 459
X86_INS_MOVNTPD = 460
X86_INS_MOVNTPS = 461
X86_INS_MOVNTSD = 462
X86_INS_MOVNTSS = 463
X86_INS_MOVSB = 464
X86_INS_MOVSD = 465
X86_INS_MOVSHDUP = 466
X86_INS_MOVSLDUP = 467
X86_INS_MOVSQ = 468
X86_INS_MOVSS = 469
X86_INS_MOVSW = 470
X86_INS_MOVSX = 471
X86_INS_MOVSXD = 472
X86_INS_MOVUPD = 473
X86_INS_MOVUPS = 474
X86_INS_MOVZX = 475
X86_INS_MPSADBW = 476
X86_INS_MUL = 477
X86_INS_MULPD = 478
X86_INS_MULPS = 479
X86_INS_MULSD = 480
X86_INS_MULSS = 481
X86_INS_MULX = 482
X86_INS_FMUL = 483
X86_INS_FIMUL = 484
X86_INS_FMULP = 485
X86_INS_MWAIT = 486
X86_INS_NEG = 487
X86_INS_NOP = 488
X86_INS_NOT = 489
X86_INS_OUT = 490
X86_INS_OUTSB = 491
X86_INS_OUTSD = 492
X86_INS_OUTSW = 493
X86_INS_PACKUSDW = 494
X86_INS_PAUSE = 495
X86_INS_PAVGUSB = 496
X86_INS_PBLENDVB = 497
X86_INS_PBLENDW = 498
X86_INS_PCLMULQDQ = 499
X86_INS_PCMPEQQ = 500
X86_INS_PCMPESTRI = 501
X86_INS_PCMPESTRM = 502
X86_INS_PCMPGTQ = 503
X86_INS_PCMPISTRI = 504
X86_INS_PCMPISTRM = 505
X86_INS_PDEP = 506
X86_INS_PEXT = 507
X86_INS_PEXTRB = 508
X86_INS_PEXTRD = 509
X86_INS_PEXTRQ = 510
X86_INS_PF2ID = 511
X86_INS_PF2IW = 512
X86_INS_PFACC = 513
X86_INS_PFADD = 514
X86_INS_PFCMPEQ = 515
X86_INS_PFCMPGE = 516
X86_INS_PFCMPGT = 517
X86_INS_PFMAX = 518
X86_INS_PFMIN = 519
X86_INS_PFMUL = 520
X86_INS_PFNACC = 521
X86_INS_PFPNACC = 522
X86_INS_PFRCPIT1 = 523
X86_INS_PFRCPIT2 = 524
X86_INS_PFRCP = 525
X86_INS_PFRSQIT1 = 526
X86_INS_PFRSQRT = 527
X86_INS_PFSUBR = 528
X86_INS_PFSUB = 529
X86_INS_PHMINPOSUW = 530
X86_INS_PI2FD = 531
X86_INS_PI2FW = 532
X86_INS_PINSRB = 533
X86_INS_PINSRD = 534
X86_INS_PINSRQ = 535
X86_INS_PMAXSB = 536
X86_INS_PMAXSD = 537
X86_INS_PMAXUD = 538
X86_INS_PMAXUW = 539
X86_INS_PMINSB = 540
X86_INS_PMINSD = 541
X86_INS_PMINUD = 542
X86_INS_PMINUW = 543
X86_INS_PMOVSXBD = 544
X86_INS_PMOVSXBQ = 545
X86_INS_PMOVSXBW = 546
X86_INS_PMOVSXDQ = 547
X86_INS_PMOVSXWD = 548
X86_INS_PMOVSXWQ = 549
X86_INS_PMOVZXBD = 550
X86_INS_PMOVZXBQ = 551
X86_INS_PMOVZXBW = 552
X86_INS_PMOVZXDQ = 553
X86_INS_PMOVZXWD = 554
X86_INS_PMOVZXWQ = 555
X86_INS_PMULDQ = 556
X86_INS_PMULHRW = 557
X86_INS_PMULLD = 558
X86_INS_POP = 559
X86_INS_POPAW = 560
X86_INS_POPAL = 561
X86_INS_POPCNT = 562
X86_INS_POPF = 563
X86_INS_POPFD = 564
X86_INS_POPFQ = 565
X86_INS_PREFETCH = 566
X86_INS_PREFETCHNTA = 567
X86_INS_PREFETCHT0 = 568
X86_INS_PREFETCHT1 = 569
X86_INS_PREFETCHT2 = 570
X86_INS_PREFETCHW = 571
X86_INS_PSHUFD = 572
X86_INS_PSHUFHW = 573
X86_INS_PSHUFLW = 574
X86_INS_PSLLDQ = 575
X86_INS_PSRLDQ = 576
X86_INS_PSWAPD = 577
X86_INS_PTEST = 578
X86_INS_PUNPCKHQDQ = 579
X86_INS_PUNPCKLQDQ = 580
X86_INS_PUSH = 581
X86_INS_PUSHAW = 582
X86_INS_PUSHAL = 583
X86_INS_PUSHF = 584
X86_INS_PUSHFD = 585
X86_INS_PUSHFQ = 586
X86_INS_RCL = 587
X86_INS_RCPPS = 588
X86_INS_RCPSS = 589
X86_INS_RCR = 590
X86_INS_RDFSBASE = 591
X86_INS_RDGSBASE = 592
X86_INS_RDMSR = 593
X86_INS_RDPMC = 594
X86_INS_RDRAND = 595
X86_INS_RDSEED = 596
X86_INS_RDTSC = 597
X86_INS_RDTSCP = 598
X86_INS_REPNE = 599
X86_INS_REP = 600
X86_INS_ROL = 601
X86_INS_ROR = 602
X86_INS_RORX = 603
X86_INS_ROUNDPD = 604
X86_INS_ROUNDPS = 605
X86_INS_ROUNDSD = 606
X86_INS_ROUNDSS = 607
X86_INS_RSM = 608
X86_INS_RSQRTPS = 609
X86_INS_RSQRTSS = 610
X86_INS_SAHF = 611
X86_INS_SAL = 612
X86_INS_SALC = 613
X86_INS_SAR = 614
X86_INS_SARX = 615
X86_INS_SBB = 616
X86_INS_SCASB = 617
X86_INS_SCASD = 618
X86_INS_SCASQ = 619
X86_INS_SCASW = 620
X86_INS_SETAE = 621
X86_INS_SETA = 622
X86_INS_SETBE = 623
X86_INS_SETB = 624
X86_INS_SETE = 625
X86_INS_SETGE = 626
X86_INS_SETG = 627
X86_INS_SETLE = 628
X86_INS_SETL = 629
X86_INS_SETNE = 630
X86_INS_SETNO = 631
X86_INS_SETNP = 632
X86_INS_SETNS = 633
X86_INS_SETO = 634
X86_INS_SETP = 635
X86_INS_SETS = 636
X86_INS_SFENCE = 637
X86_INS_SGDT = 638
X86_INS_SHA1MSG1 = 639
X86_INS_SHA1MSG2 = 640
X86_INS_SHA1NEXTE = 641
X86_INS_SHA1RNDS4 = 642
X86_INS_SHA256MSG1 = 643
X86_INS_SHA256MSG2 = 644
X86_INS_SHA256RNDS2 = 645
X86_INS_SHL = 646
X86_INS_SHLD = 647
X86_INS_SHLX = 648
X86_INS_SHR = 649
X86_INS_SHRD = 650
X86_INS_SHRX = 651
X86_INS_SHUFPD = 652
X86_INS_SHUFPS = 653
X86_INS_SIDT = 654
X86_INS_FSIN = 655
X86_INS_SKINIT = 656
X86_INS_SLDT = 657
X86_INS_SMSW = 658
X86_INS_SQRTPD = 659
X86_INS_SQRTPS = 660
X86_INS_SQRTSD = 661
X86_INS_SQRTSS = 662
X86_INS_FSQRT = 663
X86_INS_STAC = 664
X86_INS_STC = 665
X86_INS_STD = 666
X86_INS_STGI = 667
X86_INS_STI = 668
X86_INS_STMXCSR = 669
X86_INS_STOSB = 670
X86_INS_STOSD = 671
X86_INS_STOSQ = 672
X86_INS_STOSW = 673
X86_INS_STR = 674
X86_INS_FST = 675
X86_INS_FSTP = 676
X86_INS_FSTPNCE = 677
X86_INS_SUBPD = 678
X86_INS_SUBPS = 679
X86_INS_FSUBR = 680
X86_INS_FISUBR = 681
X86_INS_FSUBRP = 682
X86_INS_SUBSD = 683
X86_INS_SUBSS = 684
X86_INS_FSUB = 685
X86_INS_FISUB = 686
X86_INS_FSUBP = 687
X86_INS_SWAPGS = 688
X86_INS_SYSCALL = 689
X86_INS_SYSENTER = 690
X86_INS_SYSEXIT = 691
X86_INS_SYSRET = 692
X86_INS_T1MSKC = 693
X86_INS_TEST = 694
X86_INS_UD2 = 695
X86_INS_FTST = 696
X86_INS_TZCNT = 697
X86_INS_TZMSK = 698
X86_INS_FUCOMPI = 699
X86_INS_FUCOMI = 700
X86_INS_FUCOMPP = 701
X86_INS_FUCOMP = 702
X86_INS_FUCOM = 703
X86_INS_UD2B = 704
X86_INS_UNPCKHPD = 705
X86_INS_UNPCKHPS = 706
X86_INS_UNPCKLPD = 707
X86_INS_UNPCKLPS = 708
X86_INS_VADDPD = 709
X86_INS_VADDPS = 710
X86_INS_VADDSD = 711
X86_INS_VADDSS = 712
X86_INS_VADDSUBPD = 713
X86_INS_VADDSUBPS = 714
X86_INS_VAESDECLAST = 715
X86_INS_VAESDEC = 716
X86_INS_VAESENCLAST = 717
X86_INS_VAESENC = 718
X86_INS_VAESIMC = 719
X86_INS_VAESKEYGENASSIST = 720
X86_INS_VALIGND = 721
X86_INS_VALIGNQ = 722
X86_INS_VANDNPD = 723
X86_INS_VANDNPS = 724
X86_INS_VANDPD = 725
X86_INS_VANDPS = 726
X86_INS_VBLENDMPD = 727
X86_INS_VBLENDMPS = 728
X86_INS_VBLENDPD = 729
X86_INS_VBLENDPS = 730
X86_INS_VBLENDVPD = 731
X86_INS_VBLENDVPS = 732
X86_INS_VBROADCASTF128 = 733
X86_INS_VBROADCASTI128 = 734
X86_INS_VBROADCASTI32X4 = 735
X86_INS_VBROADCASTI64X4 = 736
X86_INS_VBROADCASTSD = 737
X86_INS_VBROADCASTSS = 738
X86_INS_VCMPPD = 739
X86_INS_VCMPPS = 740
X86_INS_VCMPSD = 741
X86_INS_VCMPSS = 742
X86_INS_VCVTDQ2PD = 743
X86_INS_VCVTDQ2PS = 744
X86_INS_VCVTPD2DQX = 745
X86_INS_VCVTPD2DQ = 746
X86_INS_VCVTPD2PSX = 747
X86_INS_VCVTPD2PS = 748
X86_INS_VCVTPD2UDQ = 749
X86_INS_VCVTPH2PS = 750
X86_INS_VCVTPS2DQ = 751
X86_INS_VCVTPS2PD = 752
X86_INS_VCVTPS2PH = 753
X86_INS_VCVTPS2UDQ = 754
X86_INS_VCVTSD2SI = 755
X86_INS_VCVTSD2USI = 756
X86_INS_VCVTSS2SI = 757
X86_INS_VCVTSS2USI = 758
X86_INS_VCVTTPD2DQX = 759
X86_INS_VCVTTPD2DQ = 760
X86_INS_VCVTTPD2UDQ = 761
X86_INS_VCVTTPS2DQ = 762
X86_INS_VCVTTPS2UDQ = 763
X86_INS_VCVTUDQ2PD = 764
X86_INS_VCVTUDQ2PS = 765
X86_INS_VDIVPD = 766
X86_INS_VDIVPS = 767
X86_INS_VDIVSD = 768
X86_INS_VDIVSS = 769
X86_INS_VDPPD = 770
X86_INS_VDPPS = 771
X86_INS_VERR = 772
X86_INS_VERW = 773
X86_INS_VEXTRACTF128 = 774
X86_INS_VEXTRACTF32X4 = 775
X86_INS_VEXTRACTF64X4 = 776
X86_INS_VEXTRACTI128 = 777
X86_INS_VEXTRACTI32X4 = 778
X86_INS_VEXTRACTI64X4 = 779
X86_INS_VEXTRACTPS = 780
X86_INS_VFMADD132PD = 781
X86_INS_VFMADD132PS = 782
X86_INS_VFMADD213PD = 783
X86_INS_VFMADD213PS = 784
X86_INS_VFMADDPD = 785
X86_INS_VFMADD231PD = 786
X86_INS_VFMADDPS = 787
X86_INS_VFMADD231PS = 788
X86_INS_VFMADDSD = 789
X86_INS_VFMADD213SD = 790
X86_INS_VFMADD132SD = 791
X86_INS_VFMADD231SD = 792
X86_INS_VFMADDSS = 793
X86_INS_VFMADD213SS = 794
X86_INS_VFMADD132SS = 795
X86_INS_VFMADD231SS = 796
X86_INS_VFMADDSUB132PD = 797
X86_INS_VFMADDSUB132PS = 798
X86_INS_VFMADDSUB213PD = 799
X86_INS_VFMADDSUB213PS = 800
X86_INS_VFMADDSUBPD = 801
X86_INS_VFMADDSUB231PD = 802
X86_INS_VFMADDSUBPS = 803
X86_INS_VFMADDSUB231PS = 804
X86_INS_VFMSUB132PD = 805
X86_INS_VFMSUB132PS = 806
X86_INS_VFMSUB213PD = 807
X86_INS_VFMSUB213PS = 808
X86_INS_VFMSUBADD132PD = 809
X86_INS_VFMSUBADD132PS = 810
X86_INS_VFMSUBADD213PD = 811
X86_INS_VFMSUBADD213PS = 812
X86_INS_VFMSUBADDPD = 813
X86_INS_VFMSUBADD231PD = 814
X86_INS_VFMSUBADDPS = 815
X86_INS_VFMSUBADD231PS = 816
X86_INS_VFMSUBPD = 817
X86_INS_VFMSUB231PD = 818
X86_INS_VFMSUBPS = 819
X86_INS_VFMSUB231PS = 820
X86_INS_VFMSUBSD = 821
X86_INS_VFMSUB213SD = 822
X86_INS_VFMSUB132SD = 823
X86_INS_VFMSUB231SD = 824
X86_INS_VFMSUBSS = 825
X86_INS_VFMSUB213SS = 826
X86_INS_VFMSUB132SS = 827
X86_INS_VFMSUB231SS = 828
X86_INS_VFNMADD132PD = 829
X86_INS_VFNMADD132PS = 830
X86_INS_VFNMADD213PD = 831
X86_INS_VFNMADD213PS = 832
X86_INS_VFNMADDPD = 833
X86_INS_VFNMADD231PD = 834
X86_INS_VFNMADDPS = 835
X86_INS_VFNMADD231PS = 836
X86_INS_VFNMADDSD = 837
X86_INS_VFNMADD213SD = 838
X86_INS_VFNMADD132SD = 839
X86_INS_VFNMADD231SD = 840
X86_INS_VFNMADDSS = 841
X86_INS_VFNMADD213SS = 842
X86_INS_VFNMADD132SS = 843
X86_INS_VFNMADD231SS = 844
X86_INS_VFNMSUB132PD = 845
X86_INS_VFNMSUB132PS = 846
X86_INS_VFNMSUB213PD = 847
X86_INS_VFNMSUB213PS = 848
X86_INS_VFNMSUBPD = 849
X86_INS_VFNMSUB231PD = 850
X86_INS_VFNMSUBPS = 851
X86_INS_VFNMSUB231PS = 852
X86_INS_VFNMSUBSD = 853
X86_INS_VFNMSUB213SD = 854
X86_INS_VFNMSUB132SD = 855
X86_INS_VFNMSUB231SD = 856
X86_INS_VFNMSUBSS = 857
X86_INS_VFNMSUB213SS = 858
X86_INS_VFNMSUB132SS = 859
X86_INS_VFNMSUB231SS = 860
X86_INS_VFRCZPD = 861
X86_INS_VFRCZPS = 862
X86_INS_VFRCZSD = 863
X86_INS_VFRCZSS = 864
X86_INS_VORPD = 865
X86_INS_VORPS = 866
X86_INS_VXORPD = 867
X86_INS_VXORPS = 868
X86_INS_VGATHERDPD = 869
X86_INS_VGATHERDPS = 870
X86_INS_VGATHERPF0DPD = 871
X86_INS_VGATHERPF0DPS = 872
X86_INS_VGATHERPF0QPD = 873
X86_INS_VGATHERPF0QPS = 874
X86_INS_VGATHERPF1DPD = 875
X86_INS_VGATHERPF1DPS = 876
X86_INS_VGATHERPF1QPD = 877
X86_INS_VGATHERPF1QPS = 878
X86_INS_VGATHERQPD = 879
X86_INS_VGATHERQPS = 880
X86_INS_VHADDPD = 881
X86_INS_VHADDPS = 882
X86_INS_VHSUBPD = 883
X86_INS_VHSUBPS = 884
X86_INS_VINSERTF128 = 885
X86_INS_VINSERTF32X4 = 886
X86_INS_VINSERTF64X4 = 887
X86_INS_VINSERTI128 = 888
X86_INS_VINSERTI32X4 = 889
X86_INS_VINSERTI64X4 = 890
X86_INS_VINSERTPS = 891
X86_INS_VLDDQU = 892
X86_INS_VLDMXCSR = 893
X86_INS_VMASKMOVDQU = 894
X86_INS_VMASKMOVPD = 895
X86_INS_VMASKMOVPS = 896
X86_INS_VMAXPD = 897
X86_INS_VMAXPS = 898
X86_INS_VMAXSD = 899
X86_INS_VMAXSS = 900
X86_INS_VMCALL = 901
X86_INS_VMCLEAR = 902
X86_INS_VMFUNC = 903
X86_INS_VMINPD = 904
X86_INS_VMINPS = 905
X86_INS_VMINSD = 906
X86_INS_VMINSS = 907
X86_INS_VMLAUNCH = 908
X86_INS_VMLOAD = 909
X86_INS_VMMCALL = 910
X86_INS_VMOVQ = 911
X86_INS_VMOVDDUP = 912
X86_INS_VMOVD = 913
X86_INS_VMOVDQA32 = 914
X86_INS_VMOVDQA64 = 915
X86_INS_VMOVDQA = 916
X86_INS_VMOVDQU16 = 917
X86_INS_VMOVDQU32 = 918
X86_INS_VMOVDQU64 = 919
X86_INS_VMOVDQU8 = 920
X86_INS_VMOVDQU = 921
X86_INS_VMOVHLPS = 922
X86_INS_VMOVHPD = 923
X86_INS_VMOVHPS = 924
X86_INS_VMOVLHPS = 925
X86_INS_VMOVLPD = 926
X86_INS_VMOVLPS = 927
X86_INS_VMOVMSKPD = 928
X86_INS_VMOVMSKPS = 929
X86_INS_VMOVNTDQA = 930
X86_INS_VMOVNTDQ = 931
X86_INS_VMOVNTPD = 932
X86_INS_VMOVNTPS = 933
X86_INS_VMOVSD = 934
X86_INS_VMOVSHDUP = 935
X86_INS_VMOVSLDUP = 936
X86_INS_VMOVSS = 937
X86_INS_VMOVUPD = 938
X86_INS_VMOVUPS = 939
X86_INS_VMPSADBW = 940
X86_INS_VMPTRLD = 941
X86_INS_VMPTRST = 942
X86_INS_VMREAD = 943
X86_INS_VMRESUME = 944
X86_INS_VMRUN = 945
X86_INS_VMSAVE = 946
X86_INS_VMULPD = 947
X86_INS_VMULPS = 948
X86_INS_VMULSD = 949
X86_INS_VMULSS = 950
X86_INS_VMWRITE = 951
X86_INS_VMXOFF = 952
X86_INS_VMXON = 953
X86_INS_VPABSB = 954
X86_INS_VPABSD = 955
X86_INS_VPABSQ = 956
X86_INS_VPABSW = 957
X86_INS_VPACKSSDW = 958
X86_INS_VPACKSSWB = 959
X86_INS_VPACKUSDW = 960
X86_INS_VPACKUSWB = 961
X86_INS_VPADDB = 962
X86_INS_VPADDD = 963
X86_INS_VPADDQ = 964
X86_INS_VPADDSB = 965
X86_INS_VPADDSW = 966
X86_INS_VPADDUSB = 967
X86_INS_VPADDUSW = 968
X86_INS_VPADDW = 969
X86_INS_VPALIGNR = 970
X86_INS_VPANDD = 971
X86_INS_VPANDND = 972
X86_INS_VPANDNQ = 973
X86_INS_VPANDN = 974
X86_INS_VPANDQ = 975
X86_INS_VPAND = 976
X86_INS_VPAVGB = 977
X86_INS_VPAVGW = 978
X86_INS_VPBLENDD = 979
X86_INS_VPBLENDMD = 980
X86_INS_VPBLENDMQ = 981
X86_INS_VPBLENDVB = 982
X86_INS_VPBLENDW = 983
X86_INS_VPBROADCASTB = 984
X86_INS_VPBROADCASTD = 985
X86_INS_VPBROADCASTMB2Q = 986
X86_INS_VPBROADCASTMW2D = 987
X86_INS_VPBROADCASTQ = 988
X86_INS_VPBROADCASTW = 989
X86_INS_VPCLMULQDQ = 990
X86_INS_VPCMOV = 991
X86_INS_VPCMP = 992
X86_INS_VPCMPD = 993
X86_INS_VPCMPEQB = 994
X86_INS_VPCMPEQD = 995
X86_INS_VPCMPEQQ = 996
X86_INS_VPCMPEQW = 997
X86_INS_VPCMPESTRI = 998
X86_INS_VPCMPESTRM = 999
X86_INS_VPCMPGTB = 1000
X86_INS_VPCMPGTD = 1001
X86_INS_VPCMPGTQ = 1002
X86_INS_VPCMPGTW = 1003
X86_INS_VPCMPISTRI = 1004
X86_INS_VPCMPISTRM = 1005
X86_INS_VPCMPQ = 1006
X86_INS_VPCMPUD = 1007
X86_INS_VPCMPUQ = 1008
X86_INS_VPCOMB = 1009
X86_INS_VPCOMD = 1010
X86_INS_VPCOMQ = 1011
X86_INS_VPCOMUB = 1012
X86_INS_VPCOMUD = 1013
X86_INS_VPCOMUQ = 1014
X86_INS_VPCOMUW = 1015
X86_INS_VPCOMW = 1016
X86_INS_VPCONFLICTD = 1017
X86_INS_VPCONFLICTQ = 1018
X86_INS_VPERM2F128 = 1019
X86_INS_VPERM2I128 = 1020
X86_INS_VPERMD = 1021
X86_INS_VPERMI2D = 1022
X86_INS_VPERMI2PD = 1023
X86_INS_VPERMI2PS = 1024
X86_INS_VPERMI2Q = 1025
X86_INS_VPERMIL2PD = 1026
X86_INS_VPERMIL2PS = 1027
X86_INS_VPERMILPD = 1028
X86_INS_VPERMILPS = 1029
X86_INS_VPERMPD = 1030
X86_INS_VPERMPS = 1031
X86_INS_VPERMQ = 1032
X86_INS_VPERMT2D = 1033
X86_INS_VPERMT2PD = 1034
X86_INS_VPERMT2PS = 1035
X86_INS_VPERMT2Q = 1036
X86_INS_VPEXTRB = 1037
X86_INS_VPEXTRD = 1038
X86_INS_VPEXTRQ = 1039
X86_INS_VPEXTRW = 1040
X86_INS_VPGATHERDD = 1041
X86_INS_VPGATHERDQ = 1042
X86_INS_VPGATHERQD = 1043
X86_INS_VPGATHERQQ = 1044
X86_INS_VPHADDBD = 1045
X86_INS_VPHADDBQ = 1046
X86_INS_VPHADDBW = 1047
X86_INS_VPHADDDQ = 1048
X86_INS_VPHADDD = 1049
X86_INS_VPHADDSW = 1050
X86_INS_VPHADDUBD = 1051
X86_INS_VPHADDUBQ = 1052
X86_INS_VPHADDUBW = 1053
X86_INS_VPHADDUDQ = 1054
X86_INS_VPHADDUWD = 1055
X86_INS_VPHADDUWQ = 1056
X86_INS_VPHADDWD = 1057
X86_INS_VPHADDWQ = 1058
X86_INS_VPHADDW = 1059
X86_INS_VPHMINPOSUW = 1060
X86_INS_VPHSUBBW = 1061
X86_INS_VPHSUBDQ = 1062
X86_INS_VPHSUBD = 1063
X86_INS_VPHSUBSW = 1064
X86_INS_VPHSUBWD = 1065
X86_INS_VPHSUBW = 1066
X86_INS_VPINSRB = 1067
X86_INS_VPINSRD = 1068
X86_INS_VPINSRQ = 1069
X86_INS_VPINSRW = 1070
X86_INS_VPLZCNTD = 1071
X86_INS_VPLZCNTQ = 1072
X86_INS_VPMACSDD = 1073
X86_INS_VPMACSDQH = 1074
X86_INS_VPMACSDQL = 1075
X86_INS_VPMACSSDD = 1076
X86_INS_VPMACSSDQH = 1077
X86_INS_VPMACSSDQL = 1078
X86_INS_VPMACSSWD = 1079
X86_INS_VPMACSSWW = 1080
X86_INS_VPMACSWD = 1081
X86_INS_VPMACSWW = 1082
X86_INS_VPMADCSSWD = 1083
X86_INS_VPMADCSWD = 1084
X86_INS_VPMADDUBSW = 1085
X86_INS_VPMADDWD = 1086
X86_INS_VPMASKMOVD = 1087
X86_INS_VPMASKMOVQ = 1088
X86_INS_VPMAXSB = 1089
X86_INS_VPMAXSD = 1090
X86_INS_VPMAXSQ = 1091
X86_INS_VPMAXSW = 1092
X86_INS_VPMAXUB = 1093
X86_INS_VPMAXUD = 1094
X86_INS_VPMAXUQ = 1095
X86_INS_VPMAXUW = 1096
X86_INS_VPMINSB = 1097
X86_INS_VPMINSD = 1098
X86_INS_VPMINSQ = 1099
X86_INS_VPMINSW = 1100
X86_INS_VPMINUB = 1101
X86_INS_VPMINUD = 1102
X86_INS_VPMINUQ = 1103
X86_INS_VPMINUW = 1104
X86_INS_VPMOVDB = 1105
X86_INS_VPMOVDW = 1106
X86_INS_VPMOVMSKB = 1107
X86_INS_VPMOVQB = 1108
X86_INS_VPMOVQD = 1109
X86_INS_VPMOVQW = 1110
X86_INS_VPMOVSDB = 1111
X86_INS_VPMOVSDW = 1112
X86_INS_VPMOVSQB = 1113
X86_INS_VPMOVSQD = 1114
X86_INS_VPMOVSQW = 1115
X86_INS_VPMOVSXBD = 1116
X86_INS_VPMOVSXBQ = 1117
X86_INS_VPMOVSXBW = 1118
X86_INS_VPMOVSXDQ = 1119
X86_INS_VPMOVSXWD = 1120
X86_INS_VPMOVSXWQ = 1121
X86_INS_VPMOVUSDB = 1122
X86_INS_VPMOVUSDW = 1123
X86_INS_VPMOVUSQB = 1124
X86_INS_VPMOVUSQD = 1125
X86_INS_VPMOVUSQW = 1126
X86_INS_VPMOVZXBD = 1127
X86_INS_VPMOVZXBQ = 1128
X86_INS_VPMOVZXBW = 1129
X86_INS_VPMOVZXDQ = 1130
X86_INS_VPMOVZXWD = 1131
X86_INS_VPMOVZXWQ = 1132
X86_INS_VPMULDQ = 1133
X86_INS_VPMULHRSW = 1134
X86_INS_VPMULHUW = 1135
X86_INS_VPMULHW = 1136
X86_INS_VPMULLD = 1137
X86_INS_VPMULLW = 1138
X86_INS_VPMULUDQ = 1139
X86_INS_VPORD = 1140
X86_INS_VPORQ = 1141
X86_INS_VPOR = 1142
X86_INS_VPPERM = 1143
X86_INS_VPROTB = 1144
X86_INS_VPROTD = 1145
X86_INS_VPROTQ = 1146
X86_INS_VPROTW = 1147
X86_INS_VPSADBW = 1148
X86_INS_VPSCATTERDD = 1149
X86_INS_VPSCATTERDQ = 1150
X86_INS_VPSCATTERQD = 1151
X86_INS_VPSCATTERQQ = 1152
X86_INS_VPSHAB = 1153
X86_INS_VPSHAD = 1154
X86_INS_VPSHAQ = 1155
X86_INS_VPSHAW = 1156
X86_INS_VPSHLB = 1157
X86_INS_VPSHLD = 1158
X86_INS_VPSHLQ = 1159
X86_INS_VPSHLW = 1160
X86_INS_VPSHUFB = 1161
X86_INS_VPSHUFD = 1162
X86_INS_VPSHUFHW = 1163
X86_INS_VPSHUFLW = 1164
X86_INS_VPSIGNB = 1165
X86_INS_VPSIGND = 1166
X86_INS_VPSIGNW = 1167
X86_INS_VPSLLDQ = 1168
X86_INS_VPSLLD = 1169
X86_INS_VPSLLQ = 1170
X86_INS_VPSLLVD = 1171
X86_INS_VPSLLVQ = 1172
X86_INS_VPSLLW = 1173
X86_INS_VPSRAD = 1174
X86_INS_VPSRAQ = 1175
X86_INS_VPSRAVD = 1176
X86_INS_VPSRAVQ = 1177
X86_INS_VPSRAW = 1178
X86_INS_VPSRLDQ = 1179
X86_INS_VPSRLD = 1180
X86_INS_VPSRLQ = 1181
X86_INS_VPSRLVD = 1182
X86_INS_VPSRLVQ = 1183
X86_INS_VPSRLW = 1184
X86_INS_VPSUBB = 1185
X86_INS_VPSUBD = 1186
X86_INS_VPSUBQ = 1187
X86_INS_VPSUBSB = 1188
X86_INS_VPSUBSW = 1189
X86_INS_VPSUBUSB = 1190
X86_INS_VPSUBUSW = 1191
X86_INS_VPSUBW = 1192
X86_INS_VPTESTMD = 1193
X86_INS_VPTESTMQ = 1194
X86_INS_VPTESTNMD = 1195
X86_INS_VPTESTNMQ = 1196
X86_INS_VPTEST = 1197
X86_INS_VPUNPCKHBW = 1198
X86_INS_VPUNPCKHDQ = 1199
X86_INS_VPUNPCKHQDQ = 1200
X86_INS_VPUNPCKHWD = 1201
X86_INS_VPUNPCKLBW = 1202
X86_INS_VPUNPCKLDQ = 1203
X86_INS_VPUNPCKLQDQ = 1204
X86_INS_VPUNPCKLWD = 1205
X86_INS_VPXORD = 1206
X86_INS_VPXORQ = 1207
X86_INS_VPXOR = 1208
X86_INS_VRCP14PD = 1209
X86_INS_VRCP14PS = 1210
X86_INS_VRCP14SD = 1211
X86_INS_VRCP14SS = 1212
X86_INS_VRCP28PD = 1213
X86_INS_VRCP28PS = 1214
X86_INS_VRCP28SD = 1215
X86_INS_VRCP28SS = 1216
X86_INS_VRCPPS = 1217
X86_INS_VRCPSS = 1218
X86_INS_VRNDSCALEPD = 1219
X86_INS_VRNDSCALEPS = 1220
X86_INS_VRNDSCALESD = 1221
X86_INS_VRNDSCALESS = 1222
X86_INS_VROUNDPD = 1223
X86_INS_VROUNDPS = 1224
X86_INS_VROUNDSD = 1225
X86_INS_VROUNDSS = 1226
X86_INS_VRSQRT14PD = 1227
X86_INS_VRSQRT14PS = 1228
X86_INS_VRSQRT14SD = 1229
X86_INS_VRSQRT14SS = 1230
X86_INS_VRSQRT28PD = 1231
X86_INS_VRSQRT28PS = 1232
X86_INS_VRSQRT28SD = 1233
X86_INS_VRSQRT28SS = 1234
X86_INS_VRSQRTPS = 1235
X86_INS_VRSQRTSS = 1236
X86_INS_VSCATTERDPD = 1237
X86_INS_VSCATTERDPS = 1238
X86_INS_VSCATTERPF0DPD = 1239
X86_INS_VSCATTERPF0DPS = 1240
X86_INS_VSCATTERPF0QPD = 1241
X86_INS_VSCATTERPF0QPS = 1242
X86_INS_VSCATTERPF1DPD = 1243
X86_INS_VSCATTERPF1DPS = 1244
X86_INS_VSCATTERPF1QPD = 1245
X86_INS_VSCATTERPF1QPS = 1246
X86_INS_VSCATTERQPD = 1247
X86_INS_VSCATTERQPS = 1248
X86_INS_VSHUFPD = 1249
X86_INS_VSHUFPS = 1250
X86_INS_VSQRTPD = 1251
X86_INS_VSQRTPS = 1252
X86_INS_VSQRTSD = 1253
X86_INS_VSQRTSS = 1254
X86_INS_VSTMXCSR = 1255
X86_INS_VSUBPD = 1256
X86_INS_VSUBPS = 1257
X86_INS_VSUBSD = 1258
X86_INS_VSUBSS = 1259
X86_INS_VTESTPD = 1260
X86_INS_VTESTPS = 1261
X86_INS_VUNPCKHPD = 1262
X86_INS_VUNPCKHPS = 1263
X86_INS_VUNPCKLPD = 1264
X86_INS_VUNPCKLPS = 1265
X86_INS_VZEROALL = 1266
X86_INS_VZEROUPPER = 1267
X86_INS_WAIT = 1268
X86_INS_WBINVD = 1269
X86_INS_WRFSBASE = 1270
X86_INS_WRGSBASE = 1271
X86_INS_WRMSR = 1272
X86_INS_XABORT = 1273
X86_INS_XACQUIRE = 1274
X86_INS_XBEGIN = 1275
X86_INS_XCHG = 1276
X86_INS_FXCH = 1277
X86_INS_XCRYPTCBC = 1278
X86_INS_XCRYPTCFB = 1279
X86_INS_XCRYPTCTR = 1280
X86_INS_XCRYPTECB = 1281
X86_INS_XCRYPTOFB = 1282
X86_INS_XEND = 1283
X86_INS_XGETBV = 1284
X86_INS_XLATB = 1285
X86_INS_XRELEASE = 1286
X86_INS_XRSTOR = 1287
X86_INS_XRSTOR64 = 1288
X86_INS_XSAVE = 1289
X86_INS_XSAVE64 = 1290
X86_INS_XSAVEOPT = 1291
X86_INS_XSAVEOPT64 = 1292
X86_INS_XSETBV = 1293
X86_INS_XSHA1 = 1294
X86_INS_XSHA256 = 1295
X86_INS_XSTORE = 1296
X86_INS_XTEST = 1297
X86_INS_ENDING = 1298
# Group of X86 instructions
X86_GRP_INVALID = 0
X86_GRP_3DNOW = 1
X86_GRP_AES = 2
X86_GRP_ADX = 3
X86_GRP_AVX = 4
X86_GRP_AVX2 = 5
X86_GRP_AVX512 = 6
X86_GRP_BMI = 7
X86_GRP_BMI2 = 8
X86_GRP_CMOV = 9
X86_GRP_F16C = 10
X86_GRP_FMA = 11
X86_GRP_FMA4 = 12
X86_GRP_FSGSBASE = 13
X86_GRP_HLE = 14
X86_GRP_MMX = 15
X86_GRP_MODE32 = 16
X86_GRP_MODE64 = 17
X86_GRP_RTM = 18
X86_GRP_SHA = 19
X86_GRP_SSE1 = 20
X86_GRP_SSE2 = 21
X86_GRP_SSE3 = 22
X86_GRP_SSE41 = 23
X86_GRP_SSE42 = 24
X86_GRP_SSE4A = 25
X86_GRP_SSSE3 = 26
X86_GRP_PCLMUL = 27
X86_GRP_XOP = 28
X86_GRP_CDI = 29
X86_GRP_ERI = 30
X86_GRP_TBM = 31
X86_GRP_16BITMODE = 32
X86_GRP_NOT64BITMODE = 33
X86_GRP_SGX = 34
X86_GRP_DQI = 35
X86_GRP_BWI = 36
X86_GRP_PFI = 37
X86_GRP_VLX = 38
X86_GRP_SMAP = 39
X86_GRP_NOVLX = 40
X86_GRP_JUMP = 41
X86_GRP_VM = 42
X86_GRP_INT = 43
X86_GRP_IRET = 44
X86_GRP_CALL = 45
X86_GRP_RET = 46
X86_GRP_ENDING = 47 | bindings/python/capstone/x86_const.py |
# X86 registers
X86_REG_INVALID = 0
X86_REG_AH = 1
X86_REG_AL = 2
X86_REG_AX = 3
X86_REG_BH = 4
X86_REG_BL = 5
X86_REG_BP = 6
X86_REG_BPL = 7
X86_REG_BX = 8
X86_REG_CH = 9
X86_REG_CL = 10
X86_REG_CS = 11
X86_REG_CX = 12
X86_REG_DH = 13
X86_REG_DI = 14
X86_REG_DIL = 15
X86_REG_DL = 16
X86_REG_DS = 17
X86_REG_DX = 18
X86_REG_EAX = 19
X86_REG_EBP = 20
X86_REG_EBX = 21
X86_REG_ECX = 22
X86_REG_EDI = 23
X86_REG_EDX = 24
X86_REG_EFLAGS = 25
X86_REG_EIP = 26
X86_REG_EIZ = 27
X86_REG_ES = 28
X86_REG_ESI = 29
X86_REG_ESP = 30
X86_REG_FPSW = 31
X86_REG_FS = 32
X86_REG_GS = 33
X86_REG_IP = 34
X86_REG_RAX = 35
X86_REG_RBP = 36
X86_REG_RBX = 37
X86_REG_RCX = 38
X86_REG_RDI = 39
X86_REG_RDX = 40
X86_REG_RIP = 41
X86_REG_RIZ = 42
X86_REG_RSI = 43
X86_REG_RSP = 44
X86_REG_SI = 45
X86_REG_SIL = 46
X86_REG_SP = 47
X86_REG_SPL = 48
X86_REG_SS = 49
X86_REG_CR0 = 50
X86_REG_CR1 = 51
X86_REG_CR2 = 52
X86_REG_CR3 = 53
X86_REG_CR4 = 54
X86_REG_CR5 = 55
X86_REG_CR6 = 56
X86_REG_CR7 = 57
X86_REG_CR8 = 58
X86_REG_CR9 = 59
X86_REG_CR10 = 60
X86_REG_CR11 = 61
X86_REG_CR12 = 62
X86_REG_CR13 = 63
X86_REG_CR14 = 64
X86_REG_CR15 = 65
X86_REG_DR0 = 66
X86_REG_DR1 = 67
X86_REG_DR2 = 68
X86_REG_DR3 = 69
X86_REG_DR4 = 70
X86_REG_DR5 = 71
X86_REG_DR6 = 72
X86_REG_DR7 = 73
X86_REG_FP0 = 74
X86_REG_FP1 = 75
X86_REG_FP2 = 76
X86_REG_FP3 = 77
X86_REG_FP4 = 78
X86_REG_FP5 = 79
X86_REG_FP6 = 80
X86_REG_FP7 = 81
X86_REG_K0 = 82
X86_REG_K1 = 83
X86_REG_K2 = 84
X86_REG_K3 = 85
X86_REG_K4 = 86
X86_REG_K5 = 87
X86_REG_K6 = 88
X86_REG_K7 = 89
X86_REG_MM0 = 90
X86_REG_MM1 = 91
X86_REG_MM2 = 92
X86_REG_MM3 = 93
X86_REG_MM4 = 94
X86_REG_MM5 = 95
X86_REG_MM6 = 96
X86_REG_MM7 = 97
X86_REG_R8 = 98
X86_REG_R9 = 99
X86_REG_R10 = 100
X86_REG_R11 = 101
X86_REG_R12 = 102
X86_REG_R13 = 103
X86_REG_R14 = 104
X86_REG_R15 = 105
X86_REG_ST0 = 106
X86_REG_ST1 = 107
X86_REG_ST2 = 108
X86_REG_ST3 = 109
X86_REG_ST4 = 110
X86_REG_ST5 = 111
X86_REG_ST6 = 112
X86_REG_ST7 = 113
X86_REG_XMM0 = 114
X86_REG_XMM1 = 115
X86_REG_XMM2 = 116
X86_REG_XMM3 = 117
X86_REG_XMM4 = 118
X86_REG_XMM5 = 119
X86_REG_XMM6 = 120
X86_REG_XMM7 = 121
X86_REG_XMM8 = 122
X86_REG_XMM9 = 123
X86_REG_XMM10 = 124
X86_REG_XMM11 = 125
X86_REG_XMM12 = 126
X86_REG_XMM13 = 127
X86_REG_XMM14 = 128
X86_REG_XMM15 = 129
X86_REG_XMM16 = 130
X86_REG_XMM17 = 131
X86_REG_XMM18 = 132
X86_REG_XMM19 = 133
X86_REG_XMM20 = 134
X86_REG_XMM21 = 135
X86_REG_XMM22 = 136
X86_REG_XMM23 = 137
X86_REG_XMM24 = 138
X86_REG_XMM25 = 139
X86_REG_XMM26 = 140
X86_REG_XMM27 = 141
X86_REG_XMM28 = 142
X86_REG_XMM29 = 143
X86_REG_XMM30 = 144
X86_REG_XMM31 = 145
X86_REG_YMM0 = 146
X86_REG_YMM1 = 147
X86_REG_YMM2 = 148
X86_REG_YMM3 = 149
X86_REG_YMM4 = 150
X86_REG_YMM5 = 151
X86_REG_YMM6 = 152
X86_REG_YMM7 = 153
X86_REG_YMM8 = 154
X86_REG_YMM9 = 155
X86_REG_YMM10 = 156
X86_REG_YMM11 = 157
X86_REG_YMM12 = 158
X86_REG_YMM13 = 159
X86_REG_YMM14 = 160
X86_REG_YMM15 = 161
X86_REG_YMM16 = 162
X86_REG_YMM17 = 163
X86_REG_YMM18 = 164
X86_REG_YMM19 = 165
X86_REG_YMM20 = 166
X86_REG_YMM21 = 167
X86_REG_YMM22 = 168
X86_REG_YMM23 = 169
X86_REG_YMM24 = 170
X86_REG_YMM25 = 171
X86_REG_YMM26 = 172
X86_REG_YMM27 = 173
X86_REG_YMM28 = 174
X86_REG_YMM29 = 175
X86_REG_YMM30 = 176
X86_REG_YMM31 = 177
X86_REG_ZMM0 = 178
X86_REG_ZMM1 = 179
X86_REG_ZMM2 = 180
X86_REG_ZMM3 = 181
X86_REG_ZMM4 = 182
X86_REG_ZMM5 = 183
X86_REG_ZMM6 = 184
X86_REG_ZMM7 = 185
X86_REG_ZMM8 = 186
X86_REG_ZMM9 = 187
X86_REG_ZMM10 = 188
X86_REG_ZMM11 = 189
X86_REG_ZMM12 = 190
X86_REG_ZMM13 = 191
X86_REG_ZMM14 = 192
X86_REG_ZMM15 = 193
X86_REG_ZMM16 = 194
X86_REG_ZMM17 = 195
X86_REG_ZMM18 = 196
X86_REG_ZMM19 = 197
X86_REG_ZMM20 = 198
X86_REG_ZMM21 = 199
X86_REG_ZMM22 = 200
X86_REG_ZMM23 = 201
X86_REG_ZMM24 = 202
X86_REG_ZMM25 = 203
X86_REG_ZMM26 = 204
X86_REG_ZMM27 = 205
X86_REG_ZMM28 = 206
X86_REG_ZMM29 = 207
X86_REG_ZMM30 = 208
X86_REG_ZMM31 = 209
X86_REG_R8B = 210
X86_REG_R9B = 211
X86_REG_R10B = 212
X86_REG_R11B = 213
X86_REG_R12B = 214
X86_REG_R13B = 215
X86_REG_R14B = 216
X86_REG_R15B = 217
X86_REG_R8D = 218
X86_REG_R9D = 219
X86_REG_R10D = 220
X86_REG_R11D = 221
X86_REG_R12D = 222
X86_REG_R13D = 223
X86_REG_R14D = 224
X86_REG_R15D = 225
X86_REG_R8W = 226
X86_REG_R9W = 227
X86_REG_R10W = 228
X86_REG_R11W = 229
X86_REG_R12W = 230
X86_REG_R13W = 231
X86_REG_R14W = 232
X86_REG_R15W = 233
X86_REG_ENDING = 234
# Operand type for instruction's operands
X86_OP_INVALID = 0
X86_OP_REG = 1
X86_OP_IMM = 2
X86_OP_FP = 3
X86_OP_MEM = 4
# AVX broadcast type
X86_AVX_BCAST_INVALID = 0
X86_AVX_BCAST_2 = 1
X86_AVX_BCAST_4 = 2
X86_AVX_BCAST_8 = 3
X86_AVX_BCAST_16 = 4
# SSE Code Condition type
X86_SSE_CC_INVALID = 0
X86_SSE_CC_EQ = 1
X86_SSE_CC_LT = 2
X86_SSE_CC_LE = 3
X86_SSE_CC_UNORD = 4
X86_SSE_CC_NEQ = 5
X86_SSE_CC_NLT = 6
X86_SSE_CC_NLE = 7
X86_SSE_CC_ORD = 8
X86_SSE_CC_EQ_UQ = 9
X86_SSE_CC_NGE = 10
X86_SSE_CC_NGT = 11
X86_SSE_CC_FALSE = 12
X86_SSE_CC_NEQ_OQ = 13
X86_SSE_CC_GE = 14
X86_SSE_CC_GT = 15
X86_SSE_CC_TRUE = 16
# AVX Code Condition type
X86_AVX_CC_INVALID = 0
X86_AVX_CC_EQ = 1
X86_AVX_CC_LT = 2
X86_AVX_CC_LE = 3
X86_AVX_CC_UNORD = 4
X86_AVX_CC_NEQ = 5
X86_AVX_CC_NLT = 6
X86_AVX_CC_NLE = 7
X86_AVX_CC_ORD = 8
X86_AVX_CC_EQ_UQ = 9
X86_AVX_CC_NGE = 10
X86_AVX_CC_NGT = 11
X86_AVX_CC_FALSE = 12
X86_AVX_CC_NEQ_OQ = 13
X86_AVX_CC_GE = 14
X86_AVX_CC_GT = 15
X86_AVX_CC_TRUE = 16
X86_AVX_CC_EQ_OS = 17
X86_AVX_CC_LT_OQ = 18
X86_AVX_CC_LE_OQ = 19
X86_AVX_CC_UNORD_S = 20
X86_AVX_CC_NEQ_US = 21
X86_AVX_CC_NLT_UQ = 22
X86_AVX_CC_NLE_UQ = 23
X86_AVX_CC_ORD_S = 24
X86_AVX_CC_EQ_US = 25
X86_AVX_CC_NGE_UQ = 26
X86_AVX_CC_NGT_UQ = 27
X86_AVX_CC_FALSE_OS = 28
X86_AVX_CC_NEQ_OS = 29
X86_AVX_CC_GE_OQ = 30
X86_AVX_CC_GT_OQ = 31
X86_AVX_CC_TRUE_US = 32
# AVX static rounding mode type
X86_AVX_RM_INVALID = 0
X86_AVX_RM_RN = 1
X86_AVX_RM_RD = 2
X86_AVX_RM_RU = 3
X86_AVX_RM_RZ = 4
# X86 instructions
X86_INS_INVALID = 0
X86_INS_AAA = 1
X86_INS_AAD = 2
X86_INS_AAM = 3
X86_INS_AAS = 4
X86_INS_FABS = 5
X86_INS_ADC = 6
X86_INS_ADCX = 7
X86_INS_ADD = 8
X86_INS_ADDPD = 9
X86_INS_ADDPS = 10
X86_INS_ADDSD = 11
X86_INS_ADDSS = 12
X86_INS_ADDSUBPD = 13
X86_INS_ADDSUBPS = 14
X86_INS_FADD = 15
X86_INS_FIADD = 16
X86_INS_FADDP = 17
X86_INS_ADOX = 18
X86_INS_AESDECLAST = 19
X86_INS_AESDEC = 20
X86_INS_AESENCLAST = 21
X86_INS_AESENC = 22
X86_INS_AESIMC = 23
X86_INS_AESKEYGENASSIST = 24
X86_INS_AND = 25
X86_INS_ANDN = 26
X86_INS_ANDNPD = 27
X86_INS_ANDNPS = 28
X86_INS_ANDPD = 29
X86_INS_ANDPS = 30
X86_INS_ARPL = 31
X86_INS_BEXTR = 32
X86_INS_BLCFILL = 33
X86_INS_BLCI = 34
X86_INS_BLCIC = 35
X86_INS_BLCMSK = 36
X86_INS_BLCS = 37
X86_INS_BLENDPD = 38
X86_INS_BLENDPS = 39
X86_INS_BLENDVPD = 40
X86_INS_BLENDVPS = 41
X86_INS_BLSFILL = 42
X86_INS_BLSI = 43
X86_INS_BLSIC = 44
X86_INS_BLSMSK = 45
X86_INS_BLSR = 46
X86_INS_BOUND = 47
X86_INS_BSF = 48
X86_INS_BSR = 49
X86_INS_BSWAP = 50
X86_INS_BT = 51
X86_INS_BTC = 52
X86_INS_BTR = 53
X86_INS_BTS = 54
X86_INS_BZHI = 55
X86_INS_CALL = 56
X86_INS_CBW = 57
X86_INS_CDQ = 58
X86_INS_CDQE = 59
X86_INS_FCHS = 60
X86_INS_CLAC = 61
X86_INS_CLC = 62
X86_INS_CLD = 63
X86_INS_CLFLUSH = 64
X86_INS_CLGI = 65
X86_INS_CLI = 66
X86_INS_CLTS = 67
X86_INS_CMC = 68
X86_INS_CMOVA = 69
X86_INS_CMOVAE = 70
X86_INS_CMOVB = 71
X86_INS_CMOVBE = 72
X86_INS_FCMOVBE = 73
X86_INS_FCMOVB = 74
X86_INS_CMOVE = 75
X86_INS_FCMOVE = 76
X86_INS_CMOVG = 77
X86_INS_CMOVGE = 78
X86_INS_CMOVL = 79
X86_INS_CMOVLE = 80
X86_INS_FCMOVNBE = 81
X86_INS_FCMOVNB = 82
X86_INS_CMOVNE = 83
X86_INS_FCMOVNE = 84
X86_INS_CMOVNO = 85
X86_INS_CMOVNP = 86
X86_INS_FCMOVNU = 87
X86_INS_CMOVNS = 88
X86_INS_CMOVO = 89
X86_INS_CMOVP = 90
X86_INS_FCMOVU = 91
X86_INS_CMOVS = 92
X86_INS_CMP = 93
X86_INS_CMPPD = 94
X86_INS_CMPPS = 95
X86_INS_CMPSB = 96
X86_INS_CMPSD = 97
X86_INS_CMPSQ = 98
X86_INS_CMPSS = 99
X86_INS_CMPSW = 100
X86_INS_CMPXCHG16B = 101
X86_INS_CMPXCHG = 102
X86_INS_CMPXCHG8B = 103
X86_INS_COMISD = 104
X86_INS_COMISS = 105
X86_INS_FCOMP = 106
X86_INS_FCOMPI = 107
X86_INS_FCOMI = 108
X86_INS_FCOM = 109
X86_INS_FCOS = 110
X86_INS_CPUID = 111
X86_INS_CQO = 112
X86_INS_CRC32 = 113
X86_INS_CVTDQ2PD = 114
X86_INS_CVTDQ2PS = 115
X86_INS_CVTPD2DQ = 116
X86_INS_CVTPD2PS = 117
X86_INS_CVTPS2DQ = 118
X86_INS_CVTPS2PD = 119
X86_INS_CVTSD2SI = 120
X86_INS_CVTSD2SS = 121
X86_INS_CVTSI2SD = 122
X86_INS_CVTSI2SS = 123
X86_INS_CVTSS2SD = 124
X86_INS_CVTSS2SI = 125
X86_INS_CVTTPD2DQ = 126
X86_INS_CVTTPS2DQ = 127
X86_INS_CVTTSD2SI = 128
X86_INS_CVTTSS2SI = 129
X86_INS_CWD = 130
X86_INS_CWDE = 131
X86_INS_DAA = 132
X86_INS_DAS = 133
X86_INS_DATA16 = 134
X86_INS_DEC = 135
X86_INS_DIV = 136
X86_INS_DIVPD = 137
X86_INS_DIVPS = 138
X86_INS_FDIVR = 139
X86_INS_FIDIVR = 140
X86_INS_FDIVRP = 141
X86_INS_DIVSD = 142
X86_INS_DIVSS = 143
X86_INS_FDIV = 144
X86_INS_FIDIV = 145
X86_INS_FDIVP = 146
X86_INS_DPPD = 147
X86_INS_DPPS = 148
X86_INS_RET = 149
X86_INS_ENCLS = 150
X86_INS_ENCLU = 151
X86_INS_ENTER = 152
X86_INS_EXTRACTPS = 153
X86_INS_EXTRQ = 154
X86_INS_F2XM1 = 155
X86_INS_LCALL = 156
X86_INS_LJMP = 157
X86_INS_FBLD = 158
X86_INS_FBSTP = 159
X86_INS_FCOMPP = 160
X86_INS_FDECSTP = 161
X86_INS_FEMMS = 162
X86_INS_FFREE = 163
X86_INS_FICOM = 164
X86_INS_FICOMP = 165
X86_INS_FINCSTP = 166
X86_INS_FLDCW = 167
X86_INS_FLDENV = 168
X86_INS_FLDL2E = 169
X86_INS_FLDL2T = 170
X86_INS_FLDLG2 = 171
X86_INS_FLDLN2 = 172
X86_INS_FLDPI = 173
X86_INS_FNCLEX = 174
X86_INS_FNINIT = 175
X86_INS_FNOP = 176
X86_INS_FNSTCW = 177
X86_INS_FNSTSW = 178
X86_INS_FPATAN = 179
X86_INS_FPREM = 180
X86_INS_FPREM1 = 181
X86_INS_FPTAN = 182
X86_INS_FRNDINT = 183
X86_INS_FRSTOR = 184
X86_INS_FNSAVE = 185
X86_INS_FSCALE = 186
X86_INS_FSETPM = 187
X86_INS_FSINCOS = 188
X86_INS_FNSTENV = 189
X86_INS_FXAM = 190
X86_INS_FXRSTOR = 191
X86_INS_FXRSTOR64 = 192
X86_INS_FXSAVE = 193
X86_INS_FXSAVE64 = 194
X86_INS_FXTRACT = 195
X86_INS_FYL2X = 196
X86_INS_FYL2XP1 = 197
X86_INS_MOVAPD = 198
X86_INS_MOVAPS = 199
X86_INS_ORPD = 200
X86_INS_ORPS = 201
X86_INS_VMOVAPD = 202
X86_INS_VMOVAPS = 203
X86_INS_XORPD = 204
X86_INS_XORPS = 205
X86_INS_GETSEC = 206
X86_INS_HADDPD = 207
X86_INS_HADDPS = 208
X86_INS_HLT = 209
X86_INS_HSUBPD = 210
X86_INS_HSUBPS = 211
X86_INS_IDIV = 212
X86_INS_FILD = 213
X86_INS_IMUL = 214
X86_INS_IN = 215
X86_INS_INC = 216
X86_INS_INSB = 217
X86_INS_INSERTPS = 218
X86_INS_INSERTQ = 219
X86_INS_INSD = 220
X86_INS_INSW = 221
X86_INS_INT = 222
X86_INS_INT1 = 223
X86_INS_INT3 = 224
X86_INS_INTO = 225
X86_INS_INVD = 226
X86_INS_INVEPT = 227
X86_INS_INVLPG = 228
X86_INS_INVLPGA = 229
X86_INS_INVPCID = 230
X86_INS_INVVPID = 231
X86_INS_IRET = 232
X86_INS_IRETD = 233
X86_INS_IRETQ = 234
X86_INS_FISTTP = 235
X86_INS_FIST = 236
X86_INS_FISTP = 237
X86_INS_UCOMISD = 238
X86_INS_UCOMISS = 239
X86_INS_VCMP = 240
X86_INS_VCOMISD = 241
X86_INS_VCOMISS = 242
X86_INS_VCVTSD2SS = 243
X86_INS_VCVTSI2SD = 244
X86_INS_VCVTSI2SS = 245
X86_INS_VCVTSS2SD = 246
X86_INS_VCVTTSD2SI = 247
X86_INS_VCVTTSD2USI = 248
X86_INS_VCVTTSS2SI = 249
X86_INS_VCVTTSS2USI = 250
X86_INS_VCVTUSI2SD = 251
X86_INS_VCVTUSI2SS = 252
X86_INS_VUCOMISD = 253
X86_INS_VUCOMISS = 254
X86_INS_JAE = 255
X86_INS_JA = 256
X86_INS_JBE = 257
X86_INS_JB = 258
X86_INS_JCXZ = 259
X86_INS_JECXZ = 260
X86_INS_JE = 261
X86_INS_JGE = 262
X86_INS_JG = 263
X86_INS_JLE = 264
X86_INS_JL = 265
X86_INS_JMP = 266
X86_INS_JNE = 267
X86_INS_JNO = 268
X86_INS_JNP = 269
X86_INS_JNS = 270
X86_INS_JO = 271
X86_INS_JP = 272
X86_INS_JRCXZ = 273
X86_INS_JS = 274
X86_INS_KANDB = 275
X86_INS_KANDD = 276
X86_INS_KANDNB = 277
X86_INS_KANDND = 278
X86_INS_KANDNQ = 279
X86_INS_KANDNW = 280
X86_INS_KANDQ = 281
X86_INS_KANDW = 282
X86_INS_KMOVB = 283
X86_INS_KMOVD = 284
X86_INS_KMOVQ = 285
X86_INS_KMOVW = 286
X86_INS_KNOTB = 287
X86_INS_KNOTD = 288
X86_INS_KNOTQ = 289
X86_INS_KNOTW = 290
X86_INS_KORB = 291
X86_INS_KORD = 292
X86_INS_KORQ = 293
X86_INS_KORTESTW = 294
X86_INS_KORW = 295
X86_INS_KSHIFTLW = 296
X86_INS_KSHIFTRW = 297
X86_INS_KUNPCKBW = 298
X86_INS_KXNORB = 299
X86_INS_KXNORD = 300
X86_INS_KXNORQ = 301
X86_INS_KXNORW = 302
X86_INS_KXORB = 303
X86_INS_KXORD = 304
X86_INS_KXORQ = 305
X86_INS_KXORW = 306
X86_INS_LAHF = 307
X86_INS_LAR = 308
X86_INS_LDDQU = 309
X86_INS_LDMXCSR = 310
X86_INS_LDS = 311
X86_INS_FLDZ = 312
X86_INS_FLD1 = 313
X86_INS_FLD = 314
X86_INS_LEA = 315
X86_INS_LEAVE = 316
X86_INS_LES = 317
X86_INS_LFENCE = 318
X86_INS_LFS = 319
X86_INS_LGDT = 320
X86_INS_LGS = 321
X86_INS_LIDT = 322
X86_INS_LLDT = 323
X86_INS_LMSW = 324
X86_INS_OR = 325
X86_INS_LOCK = 326
X86_INS_SUB = 327
X86_INS_XOR = 328
X86_INS_LODSB = 329
X86_INS_LODSD = 330
X86_INS_LODSQ = 331
X86_INS_LODSW = 332
X86_INS_LOOP = 333
X86_INS_LOOPE = 334
X86_INS_LOOPNE = 335
X86_INS_RETF = 336
X86_INS_RETFQ = 337
X86_INS_LSL = 338
X86_INS_LSS = 339
X86_INS_LTR = 340
X86_INS_XADD = 341
X86_INS_LZCNT = 342
X86_INS_MASKMOVDQU = 343
X86_INS_MAXPD = 344
X86_INS_MAXPS = 345
X86_INS_MAXSD = 346
X86_INS_MAXSS = 347
X86_INS_MFENCE = 348
X86_INS_MINPD = 349
X86_INS_MINPS = 350
X86_INS_MINSD = 351
X86_INS_MINSS = 352
X86_INS_CVTPD2PI = 353
X86_INS_CVTPI2PD = 354
X86_INS_CVTPI2PS = 355
X86_INS_CVTPS2PI = 356
X86_INS_CVTTPD2PI = 357
X86_INS_CVTTPS2PI = 358
X86_INS_EMMS = 359
X86_INS_MASKMOVQ = 360
X86_INS_MOVD = 361
X86_INS_MOVDQ2Q = 362
X86_INS_MOVNTQ = 363
X86_INS_MOVQ2DQ = 364
X86_INS_MOVQ = 365
X86_INS_PABSB = 366
X86_INS_PABSD = 367
X86_INS_PABSW = 368
X86_INS_PACKSSDW = 369
X86_INS_PACKSSWB = 370
X86_INS_PACKUSWB = 371
X86_INS_PADDB = 372
X86_INS_PADDD = 373
X86_INS_PADDQ = 374
X86_INS_PADDSB = 375
X86_INS_PADDSW = 376
X86_INS_PADDUSB = 377
X86_INS_PADDUSW = 378
X86_INS_PADDW = 379
X86_INS_PALIGNR = 380
X86_INS_PANDN = 381
X86_INS_PAND = 382
X86_INS_PAVGB = 383
X86_INS_PAVGW = 384
X86_INS_PCMPEQB = 385
X86_INS_PCMPEQD = 386
X86_INS_PCMPEQW = 387
X86_INS_PCMPGTB = 388
X86_INS_PCMPGTD = 389
X86_INS_PCMPGTW = 390
X86_INS_PEXTRW = 391
X86_INS_PHADDSW = 392
X86_INS_PHADDW = 393
X86_INS_PHADDD = 394
X86_INS_PHSUBD = 395
X86_INS_PHSUBSW = 396
X86_INS_PHSUBW = 397
X86_INS_PINSRW = 398
X86_INS_PMADDUBSW = 399
X86_INS_PMADDWD = 400
X86_INS_PMAXSW = 401
X86_INS_PMAXUB = 402
X86_INS_PMINSW = 403
X86_INS_PMINUB = 404
X86_INS_PMOVMSKB = 405
X86_INS_PMULHRSW = 406
X86_INS_PMULHUW = 407
X86_INS_PMULHW = 408
X86_INS_PMULLW = 409
X86_INS_PMULUDQ = 410
X86_INS_POR = 411
X86_INS_PSADBW = 412
X86_INS_PSHUFB = 413
X86_INS_PSHUFW = 414
X86_INS_PSIGNB = 415
X86_INS_PSIGND = 416
X86_INS_PSIGNW = 417
X86_INS_PSLLD = 418
X86_INS_PSLLQ = 419
X86_INS_PSLLW = 420
X86_INS_PSRAD = 421
X86_INS_PSRAW = 422
X86_INS_PSRLD = 423
X86_INS_PSRLQ = 424
X86_INS_PSRLW = 425
X86_INS_PSUBB = 426
X86_INS_PSUBD = 427
X86_INS_PSUBQ = 428
X86_INS_PSUBSB = 429
X86_INS_PSUBSW = 430
X86_INS_PSUBUSB = 431
X86_INS_PSUBUSW = 432
X86_INS_PSUBW = 433
X86_INS_PUNPCKHBW = 434
X86_INS_PUNPCKHDQ = 435
X86_INS_PUNPCKHWD = 436
X86_INS_PUNPCKLBW = 437
X86_INS_PUNPCKLDQ = 438
X86_INS_PUNPCKLWD = 439
X86_INS_PXOR = 440
X86_INS_MONITOR = 441
X86_INS_MONTMUL = 442
X86_INS_MOV = 443
X86_INS_MOVABS = 444
X86_INS_MOVBE = 445
X86_INS_MOVDDUP = 446
X86_INS_MOVDQA = 447
X86_INS_MOVDQU = 448
X86_INS_MOVHLPS = 449
X86_INS_MOVHPD = 450
X86_INS_MOVHPS = 451
X86_INS_MOVLHPS = 452
X86_INS_MOVLPD = 453
X86_INS_MOVLPS = 454
X86_INS_MOVMSKPD = 455
X86_INS_MOVMSKPS = 456
X86_INS_MOVNTDQA = 457
X86_INS_MOVNTDQ = 458
X86_INS_MOVNTI = 459
X86_INS_MOVNTPD = 460
X86_INS_MOVNTPS = 461
X86_INS_MOVNTSD = 462
X86_INS_MOVNTSS = 463
X86_INS_MOVSB = 464
X86_INS_MOVSD = 465
X86_INS_MOVSHDUP = 466
X86_INS_MOVSLDUP = 467
X86_INS_MOVSQ = 468
X86_INS_MOVSS = 469
X86_INS_MOVSW = 470
X86_INS_MOVSX = 471
X86_INS_MOVSXD = 472
X86_INS_MOVUPD = 473
X86_INS_MOVUPS = 474
X86_INS_MOVZX = 475
X86_INS_MPSADBW = 476
X86_INS_MUL = 477
X86_INS_MULPD = 478
X86_INS_MULPS = 479
X86_INS_MULSD = 480
X86_INS_MULSS = 481
X86_INS_MULX = 482
X86_INS_FMUL = 483
X86_INS_FIMUL = 484
X86_INS_FMULP = 485
X86_INS_MWAIT = 486
X86_INS_NEG = 487
X86_INS_NOP = 488
X86_INS_NOT = 489
X86_INS_OUT = 490
X86_INS_OUTSB = 491
X86_INS_OUTSD = 492
X86_INS_OUTSW = 493
X86_INS_PACKUSDW = 494
X86_INS_PAUSE = 495
X86_INS_PAVGUSB = 496
X86_INS_PBLENDVB = 497
X86_INS_PBLENDW = 498
X86_INS_PCLMULQDQ = 499
X86_INS_PCMPEQQ = 500
X86_INS_PCMPESTRI = 501
X86_INS_PCMPESTRM = 502
X86_INS_PCMPGTQ = 503
X86_INS_PCMPISTRI = 504
X86_INS_PCMPISTRM = 505
X86_INS_PDEP = 506
X86_INS_PEXT = 507
X86_INS_PEXTRB = 508
X86_INS_PEXTRD = 509
X86_INS_PEXTRQ = 510
X86_INS_PF2ID = 511
X86_INS_PF2IW = 512
X86_INS_PFACC = 513
X86_INS_PFADD = 514
X86_INS_PFCMPEQ = 515
X86_INS_PFCMPGE = 516
X86_INS_PFCMPGT = 517
X86_INS_PFMAX = 518
X86_INS_PFMIN = 519
X86_INS_PFMUL = 520
X86_INS_PFNACC = 521
X86_INS_PFPNACC = 522
X86_INS_PFRCPIT1 = 523
X86_INS_PFRCPIT2 = 524
X86_INS_PFRCP = 525
X86_INS_PFRSQIT1 = 526
X86_INS_PFRSQRT = 527
X86_INS_PFSUBR = 528
X86_INS_PFSUB = 529
X86_INS_PHMINPOSUW = 530
X86_INS_PI2FD = 531
X86_INS_PI2FW = 532
X86_INS_PINSRB = 533
X86_INS_PINSRD = 534
X86_INS_PINSRQ = 535
X86_INS_PMAXSB = 536
X86_INS_PMAXSD = 537
X86_INS_PMAXUD = 538
X86_INS_PMAXUW = 539
X86_INS_PMINSB = 540
X86_INS_PMINSD = 541
X86_INS_PMINUD = 542
X86_INS_PMINUW = 543
X86_INS_PMOVSXBD = 544
X86_INS_PMOVSXBQ = 545
X86_INS_PMOVSXBW = 546
X86_INS_PMOVSXDQ = 547
X86_INS_PMOVSXWD = 548
X86_INS_PMOVSXWQ = 549
X86_INS_PMOVZXBD = 550
X86_INS_PMOVZXBQ = 551
X86_INS_PMOVZXBW = 552
X86_INS_PMOVZXDQ = 553
X86_INS_PMOVZXWD = 554
X86_INS_PMOVZXWQ = 555
X86_INS_PMULDQ = 556
X86_INS_PMULHRW = 557
X86_INS_PMULLD = 558
X86_INS_POP = 559
X86_INS_POPAW = 560
X86_INS_POPAL = 561
X86_INS_POPCNT = 562
X86_INS_POPF = 563
X86_INS_POPFD = 564
X86_INS_POPFQ = 565
X86_INS_PREFETCH = 566
X86_INS_PREFETCHNTA = 567
X86_INS_PREFETCHT0 = 568
X86_INS_PREFETCHT1 = 569
X86_INS_PREFETCHT2 = 570
X86_INS_PREFETCHW = 571
X86_INS_PSHUFD = 572
X86_INS_PSHUFHW = 573
X86_INS_PSHUFLW = 574
X86_INS_PSLLDQ = 575
X86_INS_PSRLDQ = 576
X86_INS_PSWAPD = 577
X86_INS_PTEST = 578
X86_INS_PUNPCKHQDQ = 579
X86_INS_PUNPCKLQDQ = 580
X86_INS_PUSH = 581
X86_INS_PUSHAW = 582
X86_INS_PUSHAL = 583
X86_INS_PUSHF = 584
X86_INS_PUSHFD = 585
X86_INS_PUSHFQ = 586
X86_INS_RCL = 587
X86_INS_RCPPS = 588
X86_INS_RCPSS = 589
X86_INS_RCR = 590
X86_INS_RDFSBASE = 591
X86_INS_RDGSBASE = 592
X86_INS_RDMSR = 593
X86_INS_RDPMC = 594
X86_INS_RDRAND = 595
X86_INS_RDSEED = 596
X86_INS_RDTSC = 597
X86_INS_RDTSCP = 598
X86_INS_REPNE = 599
X86_INS_REP = 600
X86_INS_ROL = 601
X86_INS_ROR = 602
X86_INS_RORX = 603
X86_INS_ROUNDPD = 604
X86_INS_ROUNDPS = 605
X86_INS_ROUNDSD = 606
X86_INS_ROUNDSS = 607
X86_INS_RSM = 608
X86_INS_RSQRTPS = 609
X86_INS_RSQRTSS = 610
X86_INS_SAHF = 611
X86_INS_SAL = 612
X86_INS_SALC = 613
X86_INS_SAR = 614
X86_INS_SARX = 615
X86_INS_SBB = 616
X86_INS_SCASB = 617
X86_INS_SCASD = 618
X86_INS_SCASQ = 619
X86_INS_SCASW = 620
X86_INS_SETAE = 621
X86_INS_SETA = 622
X86_INS_SETBE = 623
X86_INS_SETB = 624
X86_INS_SETE = 625
X86_INS_SETGE = 626
X86_INS_SETG = 627
X86_INS_SETLE = 628
X86_INS_SETL = 629
X86_INS_SETNE = 630
X86_INS_SETNO = 631
X86_INS_SETNP = 632
X86_INS_SETNS = 633
X86_INS_SETO = 634
X86_INS_SETP = 635
X86_INS_SETS = 636
X86_INS_SFENCE = 637
X86_INS_SGDT = 638
X86_INS_SHA1MSG1 = 639
X86_INS_SHA1MSG2 = 640
X86_INS_SHA1NEXTE = 641
X86_INS_SHA1RNDS4 = 642
X86_INS_SHA256MSG1 = 643
X86_INS_SHA256MSG2 = 644
X86_INS_SHA256RNDS2 = 645
X86_INS_SHL = 646
X86_INS_SHLD = 647
X86_INS_SHLX = 648
X86_INS_SHR = 649
X86_INS_SHRD = 650
X86_INS_SHRX = 651
X86_INS_SHUFPD = 652
X86_INS_SHUFPS = 653
X86_INS_SIDT = 654
X86_INS_FSIN = 655
X86_INS_SKINIT = 656
X86_INS_SLDT = 657
X86_INS_SMSW = 658
X86_INS_SQRTPD = 659
X86_INS_SQRTPS = 660
X86_INS_SQRTSD = 661
X86_INS_SQRTSS = 662
X86_INS_FSQRT = 663
X86_INS_STAC = 664
X86_INS_STC = 665
X86_INS_STD = 666
X86_INS_STGI = 667
X86_INS_STI = 668
X86_INS_STMXCSR = 669
X86_INS_STOSB = 670
X86_INS_STOSD = 671
X86_INS_STOSQ = 672
X86_INS_STOSW = 673
X86_INS_STR = 674
X86_INS_FST = 675
X86_INS_FSTP = 676
X86_INS_FSTPNCE = 677
X86_INS_SUBPD = 678
X86_INS_SUBPS = 679
X86_INS_FSUBR = 680
X86_INS_FISUBR = 681
X86_INS_FSUBRP = 682
X86_INS_SUBSD = 683
X86_INS_SUBSS = 684
X86_INS_FSUB = 685
X86_INS_FISUB = 686
X86_INS_FSUBP = 687
X86_INS_SWAPGS = 688
X86_INS_SYSCALL = 689
X86_INS_SYSENTER = 690
X86_INS_SYSEXIT = 691
X86_INS_SYSRET = 692
X86_INS_T1MSKC = 693
X86_INS_TEST = 694
X86_INS_UD2 = 695
X86_INS_FTST = 696
X86_INS_TZCNT = 697
X86_INS_TZMSK = 698
X86_INS_FUCOMPI = 699
X86_INS_FUCOMI = 700
X86_INS_FUCOMPP = 701
X86_INS_FUCOMP = 702
X86_INS_FUCOM = 703
X86_INS_UD2B = 704
X86_INS_UNPCKHPD = 705
X86_INS_UNPCKHPS = 706
X86_INS_UNPCKLPD = 707
X86_INS_UNPCKLPS = 708
X86_INS_VADDPD = 709
X86_INS_VADDPS = 710
X86_INS_VADDSD = 711
X86_INS_VADDSS = 712
X86_INS_VADDSUBPD = 713
X86_INS_VADDSUBPS = 714
X86_INS_VAESDECLAST = 715
X86_INS_VAESDEC = 716
X86_INS_VAESENCLAST = 717
X86_INS_VAESENC = 718
X86_INS_VAESIMC = 719
X86_INS_VAESKEYGENASSIST = 720
X86_INS_VALIGND = 721
X86_INS_VALIGNQ = 722
X86_INS_VANDNPD = 723
X86_INS_VANDNPS = 724
X86_INS_VANDPD = 725
X86_INS_VANDPS = 726
X86_INS_VBLENDMPD = 727
X86_INS_VBLENDMPS = 728
X86_INS_VBLENDPD = 729
X86_INS_VBLENDPS = 730
X86_INS_VBLENDVPD = 731
X86_INS_VBLENDVPS = 732
X86_INS_VBROADCASTF128 = 733
X86_INS_VBROADCASTI128 = 734
X86_INS_VBROADCASTI32X4 = 735
X86_INS_VBROADCASTI64X4 = 736
X86_INS_VBROADCASTSD = 737
X86_INS_VBROADCASTSS = 738
X86_INS_VCMPPD = 739
X86_INS_VCMPPS = 740
X86_INS_VCMPSD = 741
X86_INS_VCMPSS = 742
X86_INS_VCVTDQ2PD = 743
X86_INS_VCVTDQ2PS = 744
X86_INS_VCVTPD2DQX = 745
X86_INS_VCVTPD2DQ = 746
X86_INS_VCVTPD2PSX = 747
X86_INS_VCVTPD2PS = 748
X86_INS_VCVTPD2UDQ = 749
X86_INS_VCVTPH2PS = 750
X86_INS_VCVTPS2DQ = 751
X86_INS_VCVTPS2PD = 752
X86_INS_VCVTPS2PH = 753
X86_INS_VCVTPS2UDQ = 754
X86_INS_VCVTSD2SI = 755
X86_INS_VCVTSD2USI = 756
X86_INS_VCVTSS2SI = 757
X86_INS_VCVTSS2USI = 758
X86_INS_VCVTTPD2DQX = 759
X86_INS_VCVTTPD2DQ = 760
X86_INS_VCVTTPD2UDQ = 761
X86_INS_VCVTTPS2DQ = 762
X86_INS_VCVTTPS2UDQ = 763
X86_INS_VCVTUDQ2PD = 764
X86_INS_VCVTUDQ2PS = 765
X86_INS_VDIVPD = 766
X86_INS_VDIVPS = 767
X86_INS_VDIVSD = 768
X86_INS_VDIVSS = 769
X86_INS_VDPPD = 770
X86_INS_VDPPS = 771
X86_INS_VERR = 772
X86_INS_VERW = 773
X86_INS_VEXTRACTF128 = 774
X86_INS_VEXTRACTF32X4 = 775
X86_INS_VEXTRACTF64X4 = 776
X86_INS_VEXTRACTI128 = 777
X86_INS_VEXTRACTI32X4 = 778
X86_INS_VEXTRACTI64X4 = 779
X86_INS_VEXTRACTPS = 780
X86_INS_VFMADD132PD = 781
X86_INS_VFMADD132PS = 782
X86_INS_VFMADD213PD = 783
X86_INS_VFMADD213PS = 784
X86_INS_VFMADDPD = 785
X86_INS_VFMADD231PD = 786
X86_INS_VFMADDPS = 787
X86_INS_VFMADD231PS = 788
X86_INS_VFMADDSD = 789
X86_INS_VFMADD213SD = 790
X86_INS_VFMADD132SD = 791
X86_INS_VFMADD231SD = 792
X86_INS_VFMADDSS = 793
X86_INS_VFMADD213SS = 794
X86_INS_VFMADD132SS = 795
X86_INS_VFMADD231SS = 796
X86_INS_VFMADDSUB132PD = 797
X86_INS_VFMADDSUB132PS = 798
X86_INS_VFMADDSUB213PD = 799
X86_INS_VFMADDSUB213PS = 800
X86_INS_VFMADDSUBPD = 801
X86_INS_VFMADDSUB231PD = 802
X86_INS_VFMADDSUBPS = 803
X86_INS_VFMADDSUB231PS = 804
X86_INS_VFMSUB132PD = 805
X86_INS_VFMSUB132PS = 806
X86_INS_VFMSUB213PD = 807
X86_INS_VFMSUB213PS = 808
X86_INS_VFMSUBADD132PD = 809
X86_INS_VFMSUBADD132PS = 810
X86_INS_VFMSUBADD213PD = 811
X86_INS_VFMSUBADD213PS = 812
X86_INS_VFMSUBADDPD = 813
X86_INS_VFMSUBADD231PD = 814
X86_INS_VFMSUBADDPS = 815
X86_INS_VFMSUBADD231PS = 816
X86_INS_VFMSUBPD = 817
X86_INS_VFMSUB231PD = 818
X86_INS_VFMSUBPS = 819
X86_INS_VFMSUB231PS = 820
X86_INS_VFMSUBSD = 821
X86_INS_VFMSUB213SD = 822
X86_INS_VFMSUB132SD = 823
X86_INS_VFMSUB231SD = 824
X86_INS_VFMSUBSS = 825
X86_INS_VFMSUB213SS = 826
X86_INS_VFMSUB132SS = 827
X86_INS_VFMSUB231SS = 828
X86_INS_VFNMADD132PD = 829
X86_INS_VFNMADD132PS = 830
X86_INS_VFNMADD213PD = 831
X86_INS_VFNMADD213PS = 832
X86_INS_VFNMADDPD = 833
X86_INS_VFNMADD231PD = 834
X86_INS_VFNMADDPS = 835
X86_INS_VFNMADD231PS = 836
X86_INS_VFNMADDSD = 837
X86_INS_VFNMADD213SD = 838
X86_INS_VFNMADD132SD = 839
X86_INS_VFNMADD231SD = 840
X86_INS_VFNMADDSS = 841
X86_INS_VFNMADD213SS = 842
X86_INS_VFNMADD132SS = 843
X86_INS_VFNMADD231SS = 844
X86_INS_VFNMSUB132PD = 845
X86_INS_VFNMSUB132PS = 846
X86_INS_VFNMSUB213PD = 847
X86_INS_VFNMSUB213PS = 848
X86_INS_VFNMSUBPD = 849
X86_INS_VFNMSUB231PD = 850
X86_INS_VFNMSUBPS = 851
X86_INS_VFNMSUB231PS = 852
X86_INS_VFNMSUBSD = 853
X86_INS_VFNMSUB213SD = 854
X86_INS_VFNMSUB132SD = 855
X86_INS_VFNMSUB231SD = 856
X86_INS_VFNMSUBSS = 857
X86_INS_VFNMSUB213SS = 858
X86_INS_VFNMSUB132SS = 859
X86_INS_VFNMSUB231SS = 860
X86_INS_VFRCZPD = 861
X86_INS_VFRCZPS = 862
X86_INS_VFRCZSD = 863
X86_INS_VFRCZSS = 864
X86_INS_VORPD = 865
X86_INS_VORPS = 866
X86_INS_VXORPD = 867
X86_INS_VXORPS = 868
X86_INS_VGATHERDPD = 869
X86_INS_VGATHERDPS = 870
X86_INS_VGATHERPF0DPD = 871
X86_INS_VGATHERPF0DPS = 872
X86_INS_VGATHERPF0QPD = 873
X86_INS_VGATHERPF0QPS = 874
X86_INS_VGATHERPF1DPD = 875
X86_INS_VGATHERPF1DPS = 876
X86_INS_VGATHERPF1QPD = 877
X86_INS_VGATHERPF1QPS = 878
X86_INS_VGATHERQPD = 879
X86_INS_VGATHERQPS = 880
X86_INS_VHADDPD = 881
X86_INS_VHADDPS = 882
X86_INS_VHSUBPD = 883
X86_INS_VHSUBPS = 884
X86_INS_VINSERTF128 = 885
X86_INS_VINSERTF32X4 = 886
X86_INS_VINSERTF64X4 = 887
X86_INS_VINSERTI128 = 888
X86_INS_VINSERTI32X4 = 889
X86_INS_VINSERTI64X4 = 890
X86_INS_VINSERTPS = 891
X86_INS_VLDDQU = 892
X86_INS_VLDMXCSR = 893
X86_INS_VMASKMOVDQU = 894
X86_INS_VMASKMOVPD = 895
X86_INS_VMASKMOVPS = 896
X86_INS_VMAXPD = 897
X86_INS_VMAXPS = 898
X86_INS_VMAXSD = 899
X86_INS_VMAXSS = 900
X86_INS_VMCALL = 901
X86_INS_VMCLEAR = 902
X86_INS_VMFUNC = 903
X86_INS_VMINPD = 904
X86_INS_VMINPS = 905
X86_INS_VMINSD = 906
X86_INS_VMINSS = 907
X86_INS_VMLAUNCH = 908
X86_INS_VMLOAD = 909
X86_INS_VMMCALL = 910
X86_INS_VMOVQ = 911
X86_INS_VMOVDDUP = 912
X86_INS_VMOVD = 913
X86_INS_VMOVDQA32 = 914
X86_INS_VMOVDQA64 = 915
X86_INS_VMOVDQA = 916
X86_INS_VMOVDQU16 = 917
X86_INS_VMOVDQU32 = 918
X86_INS_VMOVDQU64 = 919
X86_INS_VMOVDQU8 = 920
X86_INS_VMOVDQU = 921
X86_INS_VMOVHLPS = 922
X86_INS_VMOVHPD = 923
X86_INS_VMOVHPS = 924
X86_INS_VMOVLHPS = 925
X86_INS_VMOVLPD = 926
X86_INS_VMOVLPS = 927
X86_INS_VMOVMSKPD = 928
X86_INS_VMOVMSKPS = 929
X86_INS_VMOVNTDQA = 930
X86_INS_VMOVNTDQ = 931
X86_INS_VMOVNTPD = 932
X86_INS_VMOVNTPS = 933
X86_INS_VMOVSD = 934
X86_INS_VMOVSHDUP = 935
X86_INS_VMOVSLDUP = 936
X86_INS_VMOVSS = 937
X86_INS_VMOVUPD = 938
X86_INS_VMOVUPS = 939
X86_INS_VMPSADBW = 940
X86_INS_VMPTRLD = 941
X86_INS_VMPTRST = 942
X86_INS_VMREAD = 943
X86_INS_VMRESUME = 944
X86_INS_VMRUN = 945
X86_INS_VMSAVE = 946
X86_INS_VMULPD = 947
X86_INS_VMULPS = 948
X86_INS_VMULSD = 949
X86_INS_VMULSS = 950
X86_INS_VMWRITE = 951
X86_INS_VMXOFF = 952
X86_INS_VMXON = 953
X86_INS_VPABSB = 954
X86_INS_VPABSD = 955
X86_INS_VPABSQ = 956
X86_INS_VPABSW = 957
X86_INS_VPACKSSDW = 958
X86_INS_VPACKSSWB = 959
X86_INS_VPACKUSDW = 960
X86_INS_VPACKUSWB = 961
X86_INS_VPADDB = 962
X86_INS_VPADDD = 963
X86_INS_VPADDQ = 964
X86_INS_VPADDSB = 965
X86_INS_VPADDSW = 966
X86_INS_VPADDUSB = 967
X86_INS_VPADDUSW = 968
X86_INS_VPADDW = 969
X86_INS_VPALIGNR = 970
X86_INS_VPANDD = 971
X86_INS_VPANDND = 972
X86_INS_VPANDNQ = 973
X86_INS_VPANDN = 974
X86_INS_VPANDQ = 975
X86_INS_VPAND = 976
X86_INS_VPAVGB = 977
X86_INS_VPAVGW = 978
X86_INS_VPBLENDD = 979
X86_INS_VPBLENDMD = 980
X86_INS_VPBLENDMQ = 981
X86_INS_VPBLENDVB = 982
X86_INS_VPBLENDW = 983
X86_INS_VPBROADCASTB = 984
X86_INS_VPBROADCASTD = 985
X86_INS_VPBROADCASTMB2Q = 986
X86_INS_VPBROADCASTMW2D = 987
X86_INS_VPBROADCASTQ = 988
X86_INS_VPBROADCASTW = 989
X86_INS_VPCLMULQDQ = 990
X86_INS_VPCMOV = 991
X86_INS_VPCMP = 992
X86_INS_VPCMPD = 993
X86_INS_VPCMPEQB = 994
X86_INS_VPCMPEQD = 995
X86_INS_VPCMPEQQ = 996
X86_INS_VPCMPEQW = 997
X86_INS_VPCMPESTRI = 998
X86_INS_VPCMPESTRM = 999
X86_INS_VPCMPGTB = 1000
X86_INS_VPCMPGTD = 1001
X86_INS_VPCMPGTQ = 1002
X86_INS_VPCMPGTW = 1003
X86_INS_VPCMPISTRI = 1004
X86_INS_VPCMPISTRM = 1005
X86_INS_VPCMPQ = 1006
X86_INS_VPCMPUD = 1007
X86_INS_VPCMPUQ = 1008
X86_INS_VPCOMB = 1009
X86_INS_VPCOMD = 1010
X86_INS_VPCOMQ = 1011
X86_INS_VPCOMUB = 1012
X86_INS_VPCOMUD = 1013
X86_INS_VPCOMUQ = 1014
X86_INS_VPCOMUW = 1015
X86_INS_VPCOMW = 1016
X86_INS_VPCONFLICTD = 1017
X86_INS_VPCONFLICTQ = 1018
X86_INS_VPERM2F128 = 1019
X86_INS_VPERM2I128 = 1020
X86_INS_VPERMD = 1021
X86_INS_VPERMI2D = 1022
X86_INS_VPERMI2PD = 1023
X86_INS_VPERMI2PS = 1024
X86_INS_VPERMI2Q = 1025
X86_INS_VPERMIL2PD = 1026
X86_INS_VPERMIL2PS = 1027
X86_INS_VPERMILPD = 1028
X86_INS_VPERMILPS = 1029
X86_INS_VPERMPD = 1030
X86_INS_VPERMPS = 1031
X86_INS_VPERMQ = 1032
X86_INS_VPERMT2D = 1033
X86_INS_VPERMT2PD = 1034
X86_INS_VPERMT2PS = 1035
X86_INS_VPERMT2Q = 1036
X86_INS_VPEXTRB = 1037
X86_INS_VPEXTRD = 1038
X86_INS_VPEXTRQ = 1039
X86_INS_VPEXTRW = 1040
X86_INS_VPGATHERDD = 1041
X86_INS_VPGATHERDQ = 1042
X86_INS_VPGATHERQD = 1043
X86_INS_VPGATHERQQ = 1044
X86_INS_VPHADDBD = 1045
X86_INS_VPHADDBQ = 1046
X86_INS_VPHADDBW = 1047
X86_INS_VPHADDDQ = 1048
X86_INS_VPHADDD = 1049
X86_INS_VPHADDSW = 1050
X86_INS_VPHADDUBD = 1051
X86_INS_VPHADDUBQ = 1052
X86_INS_VPHADDUBW = 1053
X86_INS_VPHADDUDQ = 1054
X86_INS_VPHADDUWD = 1055
X86_INS_VPHADDUWQ = 1056
X86_INS_VPHADDWD = 1057
X86_INS_VPHADDWQ = 1058
X86_INS_VPHADDW = 1059
X86_INS_VPHMINPOSUW = 1060
X86_INS_VPHSUBBW = 1061
X86_INS_VPHSUBDQ = 1062
X86_INS_VPHSUBD = 1063
X86_INS_VPHSUBSW = 1064
X86_INS_VPHSUBWD = 1065
X86_INS_VPHSUBW = 1066
X86_INS_VPINSRB = 1067
X86_INS_VPINSRD = 1068
X86_INS_VPINSRQ = 1069
X86_INS_VPINSRW = 1070
X86_INS_VPLZCNTD = 1071
X86_INS_VPLZCNTQ = 1072
X86_INS_VPMACSDD = 1073
X86_INS_VPMACSDQH = 1074
X86_INS_VPMACSDQL = 1075
X86_INS_VPMACSSDD = 1076
X86_INS_VPMACSSDQH = 1077
X86_INS_VPMACSSDQL = 1078
X86_INS_VPMACSSWD = 1079
X86_INS_VPMACSSWW = 1080
X86_INS_VPMACSWD = 1081
X86_INS_VPMACSWW = 1082
X86_INS_VPMADCSSWD = 1083
X86_INS_VPMADCSWD = 1084
X86_INS_VPMADDUBSW = 1085
X86_INS_VPMADDWD = 1086
X86_INS_VPMASKMOVD = 1087
X86_INS_VPMASKMOVQ = 1088
X86_INS_VPMAXSB = 1089
X86_INS_VPMAXSD = 1090
X86_INS_VPMAXSQ = 1091
X86_INS_VPMAXSW = 1092
X86_INS_VPMAXUB = 1093
X86_INS_VPMAXUD = 1094
X86_INS_VPMAXUQ = 1095
X86_INS_VPMAXUW = 1096
X86_INS_VPMINSB = 1097
X86_INS_VPMINSD = 1098
X86_INS_VPMINSQ = 1099
X86_INS_VPMINSW = 1100
X86_INS_VPMINUB = 1101
X86_INS_VPMINUD = 1102
X86_INS_VPMINUQ = 1103
X86_INS_VPMINUW = 1104
X86_INS_VPMOVDB = 1105
X86_INS_VPMOVDW = 1106
X86_INS_VPMOVMSKB = 1107
X86_INS_VPMOVQB = 1108
X86_INS_VPMOVQD = 1109
X86_INS_VPMOVQW = 1110
X86_INS_VPMOVSDB = 1111
X86_INS_VPMOVSDW = 1112
X86_INS_VPMOVSQB = 1113
X86_INS_VPMOVSQD = 1114
X86_INS_VPMOVSQW = 1115
X86_INS_VPMOVSXBD = 1116
X86_INS_VPMOVSXBQ = 1117
X86_INS_VPMOVSXBW = 1118
X86_INS_VPMOVSXDQ = 1119
X86_INS_VPMOVSXWD = 1120
X86_INS_VPMOVSXWQ = 1121
X86_INS_VPMOVUSDB = 1122
X86_INS_VPMOVUSDW = 1123
X86_INS_VPMOVUSQB = 1124
X86_INS_VPMOVUSQD = 1125
X86_INS_VPMOVUSQW = 1126
X86_INS_VPMOVZXBD = 1127
X86_INS_VPMOVZXBQ = 1128
X86_INS_VPMOVZXBW = 1129
X86_INS_VPMOVZXDQ = 1130
X86_INS_VPMOVZXWD = 1131
X86_INS_VPMOVZXWQ = 1132
X86_INS_VPMULDQ = 1133
X86_INS_VPMULHRSW = 1134
X86_INS_VPMULHUW = 1135
X86_INS_VPMULHW = 1136
X86_INS_VPMULLD = 1137
X86_INS_VPMULLW = 1138
X86_INS_VPMULUDQ = 1139
X86_INS_VPORD = 1140
X86_INS_VPORQ = 1141
X86_INS_VPOR = 1142
X86_INS_VPPERM = 1143
X86_INS_VPROTB = 1144
X86_INS_VPROTD = 1145
X86_INS_VPROTQ = 1146
X86_INS_VPROTW = 1147
X86_INS_VPSADBW = 1148
X86_INS_VPSCATTERDD = 1149
X86_INS_VPSCATTERDQ = 1150
X86_INS_VPSCATTERQD = 1151
X86_INS_VPSCATTERQQ = 1152
X86_INS_VPSHAB = 1153
X86_INS_VPSHAD = 1154
X86_INS_VPSHAQ = 1155
X86_INS_VPSHAW = 1156
X86_INS_VPSHLB = 1157
X86_INS_VPSHLD = 1158
X86_INS_VPSHLQ = 1159
X86_INS_VPSHLW = 1160
X86_INS_VPSHUFB = 1161
X86_INS_VPSHUFD = 1162
X86_INS_VPSHUFHW = 1163
X86_INS_VPSHUFLW = 1164
X86_INS_VPSIGNB = 1165
X86_INS_VPSIGND = 1166
X86_INS_VPSIGNW = 1167
X86_INS_VPSLLDQ = 1168
X86_INS_VPSLLD = 1169
X86_INS_VPSLLQ = 1170
X86_INS_VPSLLVD = 1171
X86_INS_VPSLLVQ = 1172
X86_INS_VPSLLW = 1173
X86_INS_VPSRAD = 1174
X86_INS_VPSRAQ = 1175
X86_INS_VPSRAVD = 1176
X86_INS_VPSRAVQ = 1177
X86_INS_VPSRAW = 1178
X86_INS_VPSRLDQ = 1179
X86_INS_VPSRLD = 1180
X86_INS_VPSRLQ = 1181
X86_INS_VPSRLVD = 1182
X86_INS_VPSRLVQ = 1183
X86_INS_VPSRLW = 1184
X86_INS_VPSUBB = 1185
X86_INS_VPSUBD = 1186
X86_INS_VPSUBQ = 1187
X86_INS_VPSUBSB = 1188
X86_INS_VPSUBSW = 1189
X86_INS_VPSUBUSB = 1190
X86_INS_VPSUBUSW = 1191
X86_INS_VPSUBW = 1192
X86_INS_VPTESTMD = 1193
X86_INS_VPTESTMQ = 1194
X86_INS_VPTESTNMD = 1195
X86_INS_VPTESTNMQ = 1196
X86_INS_VPTEST = 1197
X86_INS_VPUNPCKHBW = 1198
X86_INS_VPUNPCKHDQ = 1199
X86_INS_VPUNPCKHQDQ = 1200
X86_INS_VPUNPCKHWD = 1201
X86_INS_VPUNPCKLBW = 1202
X86_INS_VPUNPCKLDQ = 1203
X86_INS_VPUNPCKLQDQ = 1204
X86_INS_VPUNPCKLWD = 1205
X86_INS_VPXORD = 1206
X86_INS_VPXORQ = 1207
X86_INS_VPXOR = 1208
X86_INS_VRCP14PD = 1209
X86_INS_VRCP14PS = 1210
X86_INS_VRCP14SD = 1211
X86_INS_VRCP14SS = 1212
X86_INS_VRCP28PD = 1213
X86_INS_VRCP28PS = 1214
X86_INS_VRCP28SD = 1215
X86_INS_VRCP28SS = 1216
X86_INS_VRCPPS = 1217
X86_INS_VRCPSS = 1218
X86_INS_VRNDSCALEPD = 1219
X86_INS_VRNDSCALEPS = 1220
X86_INS_VRNDSCALESD = 1221
X86_INS_VRNDSCALESS = 1222
X86_INS_VROUNDPD = 1223
X86_INS_VROUNDPS = 1224
X86_INS_VROUNDSD = 1225
X86_INS_VROUNDSS = 1226
X86_INS_VRSQRT14PD = 1227
X86_INS_VRSQRT14PS = 1228
X86_INS_VRSQRT14SD = 1229
X86_INS_VRSQRT14SS = 1230
X86_INS_VRSQRT28PD = 1231
X86_INS_VRSQRT28PS = 1232
X86_INS_VRSQRT28SD = 1233
X86_INS_VRSQRT28SS = 1234
X86_INS_VRSQRTPS = 1235
X86_INS_VRSQRTSS = 1236
X86_INS_VSCATTERDPD = 1237
X86_INS_VSCATTERDPS = 1238
X86_INS_VSCATTERPF0DPD = 1239
X86_INS_VSCATTERPF0DPS = 1240
X86_INS_VSCATTERPF0QPD = 1241
X86_INS_VSCATTERPF0QPS = 1242
X86_INS_VSCATTERPF1DPD = 1243
X86_INS_VSCATTERPF1DPS = 1244
X86_INS_VSCATTERPF1QPD = 1245
X86_INS_VSCATTERPF1QPS = 1246
X86_INS_VSCATTERQPD = 1247
X86_INS_VSCATTERQPS = 1248
X86_INS_VSHUFPD = 1249
X86_INS_VSHUFPS = 1250
X86_INS_VSQRTPD = 1251
X86_INS_VSQRTPS = 1252
X86_INS_VSQRTSD = 1253
X86_INS_VSQRTSS = 1254
X86_INS_VSTMXCSR = 1255
X86_INS_VSUBPD = 1256
X86_INS_VSUBPS = 1257
X86_INS_VSUBSD = 1258
X86_INS_VSUBSS = 1259
X86_INS_VTESTPD = 1260
X86_INS_VTESTPS = 1261
X86_INS_VUNPCKHPD = 1262
X86_INS_VUNPCKHPS = 1263
X86_INS_VUNPCKLPD = 1264
X86_INS_VUNPCKLPS = 1265
X86_INS_VZEROALL = 1266
X86_INS_VZEROUPPER = 1267
X86_INS_WAIT = 1268
X86_INS_WBINVD = 1269
X86_INS_WRFSBASE = 1270
X86_INS_WRGSBASE = 1271
X86_INS_WRMSR = 1272
X86_INS_XABORT = 1273
X86_INS_XACQUIRE = 1274
X86_INS_XBEGIN = 1275
X86_INS_XCHG = 1276
X86_INS_FXCH = 1277
X86_INS_XCRYPTCBC = 1278
X86_INS_XCRYPTCFB = 1279
X86_INS_XCRYPTCTR = 1280
X86_INS_XCRYPTECB = 1281
X86_INS_XCRYPTOFB = 1282
X86_INS_XEND = 1283
X86_INS_XGETBV = 1284
X86_INS_XLATB = 1285
X86_INS_XRELEASE = 1286
X86_INS_XRSTOR = 1287
X86_INS_XRSTOR64 = 1288
X86_INS_XSAVE = 1289
X86_INS_XSAVE64 = 1290
X86_INS_XSAVEOPT = 1291
X86_INS_XSAVEOPT64 = 1292
X86_INS_XSETBV = 1293
X86_INS_XSHA1 = 1294
X86_INS_XSHA256 = 1295
X86_INS_XSTORE = 1296
X86_INS_XTEST = 1297
X86_INS_ENDING = 1298
# Group of X86 instructions
X86_GRP_INVALID = 0
X86_GRP_3DNOW = 1
X86_GRP_AES = 2
X86_GRP_ADX = 3
X86_GRP_AVX = 4
X86_GRP_AVX2 = 5
X86_GRP_AVX512 = 6
X86_GRP_BMI = 7
X86_GRP_BMI2 = 8
X86_GRP_CMOV = 9
X86_GRP_F16C = 10
X86_GRP_FMA = 11
X86_GRP_FMA4 = 12
X86_GRP_FSGSBASE = 13
X86_GRP_HLE = 14
X86_GRP_MMX = 15
X86_GRP_MODE32 = 16
X86_GRP_MODE64 = 17
X86_GRP_RTM = 18
X86_GRP_SHA = 19
X86_GRP_SSE1 = 20
X86_GRP_SSE2 = 21
X86_GRP_SSE3 = 22
X86_GRP_SSE41 = 23
X86_GRP_SSE42 = 24
X86_GRP_SSE4A = 25
X86_GRP_SSSE3 = 26
X86_GRP_PCLMUL = 27
X86_GRP_XOP = 28
X86_GRP_CDI = 29
X86_GRP_ERI = 30
X86_GRP_TBM = 31
X86_GRP_16BITMODE = 32
X86_GRP_NOT64BITMODE = 33
X86_GRP_SGX = 34
X86_GRP_DQI = 35
X86_GRP_BWI = 36
X86_GRP_PFI = 37
X86_GRP_VLX = 38
X86_GRP_SMAP = 39
X86_GRP_NOVLX = 40
X86_GRP_JUMP = 41
X86_GRP_VM = 42
X86_GRP_INT = 43
X86_GRP_IRET = 44
X86_GRP_CALL = 45
X86_GRP_RET = 46
X86_GRP_ENDING = 47 | 0.333612 | 0.112893 |